15 Float_t raderror,phierror;
20 Float_t timepos,padpos,timesigma,padsigma;
21 Float_t peakheight, charge;
23 Int_t padlength,timelength;
44 Int_t row,sec, padlength, timelength;
45 Float_t peakheight, charge;
47 Float_t padpos, timepos;
48 Float_t padpossigma, timepossigma;
55 Float_t globResX,globResY,globResPhi,globResR;
56 Float_t primResX,primResY,primResPhi,primResR;
91 void print_TCluster(TString eingabe)
94 TBranch *bhit, *bevent, *bcluster;
95 TBranch *bthit, *btcluster, *btevent;
96 TBranch *btrevent, *btrack,*btrvertex;
97 TDirectory *histdir, *vertexdir;
104 cout<<
"Clusters on Tracks Analysis started..."<<endl;
107 TFile *f=
new TFile(eingabe+
".root");
122 dtrtree=(TTree*) f->Get(
"tr");
123 btrevent=dtrtree->GetBranch(
"event");
124 btrevent->SetAddress(&trevent);
125 btrack=dtrtree->GetBranch(
"track");
126 btrack->SetAddress(&track);
127 btrvertex=dtrtree->GetBranch(
"vertex");
128 btrvertex->SetAddress(&mvertex);
130 dttree=(TTree*) f->Get(
"clot");
131 btcluster=dttree->GetBranch(
"cluster");
132 btcluster->SetAddress(&tcluster);
133 bthit=dttree->GetBranch(
"hit");
134 bthit->SetAddress(&thit);
135 btevent=dttree->GetBranch(
"event");
136 btevent->SetAddress(&tevent);
138 Int_t maxentries1 = (Int_t)btcluster->GetEntries();
139 cout<<
"Process Cluster-on-Track-Tree with "<<maxentries1<<
" clusters..."<<endl;
148 for (
int k=0;k<=maxentries1;k++)
150 btcluster->GetEntry(k);
152 btevent->GetEntry(k);
154 nevent = tevent.nevent;
156 cout<<
"Event "<<nevent<<endl;
159 if (tevent.nevent != nevent)
162 nevent = tevent.nevent;
164 cout<<
"Event "<<nevent<<endl;
166 if (tevent.nevent==nevent)
168 if (tcluster.ntracks != ntracksold)
174 cout<<
"ntrack = "<<tcluster.ntracks<<
" cluster "<<i<<
" padpos "<<tcluster.padpos<<
" timepos "<<tcluster.timepos<<
" x,y,z = "<<thit.x<<
" "<<thit.y<<
" "<<thit.z<<endl;
178 ntracksold=tcluster.ntracks;