4 TClonesArray* tracks =
new TClonesArray(
"TGeoTrack");
5 TClonesArray*
hits =
new TClonesArray(
"PndSdsMCPoint");
6 t->SetBranchAddress(
"MVDPoint",&hits);
7 t->SetBranchAddress(
"GeoTracks", &tracks);
10 map<int,int> trackIDCount;
12 for (
int i = 0;
i < hits->GetEntriesFast();
i++){
14 trackIDCount[myPoint->GetTrackID()]++;
19 for (map<int,int>::const_iterator ci = trackIDCount.begin(); ci!= trackIDCount.end(); ci++){
20 TGeoTrack* myTrack = (TGeoTrack*)(tracks->At(ci->first));
21 std::cout <<
"Track " << ci->first <<
" : " << ci->second << std::endl;
26 map<int,int>::const_iterator
c2 = trackIDCount.begin();
27 for (
int j = 0; j <
track; j++){
30 TGeoTrack* myTrack = (TGeoTrack*)(tracks->At(c2->first));
31 std::cout <<
"Track " << c2->first <<
" : " << c2->second << std::endl;
int drawTracks(int eventNr, TTree *t, int track=-1)
virtual void Print(const Option_t *opt=0) const