20 #include "TClonesArray.h"
51 if (NULL == ioman) {Fatal(
"CbmRichMatchRings::Init",
"RootManager not instantiated!");}
54 if (NULL ==
fHits) {Fatal(
"CbmRichMatchRings::Init",
"No RichHit array!");}
57 if (NULL ==
fRings) { Fatal(
"CbmRichMatchRings::Init",
"No RichRing array!");}
60 if (NULL ==
fPoints) {Fatal(
"CbmRichMatchRings::Init",
"No RichPoint array!");}
63 if (NULL ==
fTracks ) {Fatal(
"CbmRichMatchRings::Init",
"No MCTrack array!");}
66 fMatches =
new TClonesArray(
"CbmTrackMatch",100);
77 map<Int_t, Int_t>::iterator
it ;
103 Int_t nRings =
fRings->GetEntriesFast();
104 for (Int_t iRing=0; iRing<nRings; iRing++) {
106 if (NULL == ring)
continue;
118 for (Int_t iHit=0; iHit<nHits; iHit++) {
122 if ( NULL == hit )
continue;
131 if (NULL == point )
continue;
149 if ( it->second > nTrue ) {
150 iMCTrack = it->first;
156 nWrong = nAll - nTrue;
159 new ((*fMatches)[iRing])
CbmTrackMatch(iMCTrack, nTrue, nWrong, nFake, nMCTracks);