The present commit corresponds to an important change in the way the
[u/mrichter/AliRoot.git] / EVE / alice-macros / trd_qaRec.C
CommitLineData
e0d63214 1void trd_qaRec()
2{
3 gSystem->Load("libANALYSIS.so");
4 gSystem->Load("libTRDqaRec.so");
5
6 if(!TFile::Open("TRD.DebugInfoGen.root")){
7 printf("No debug file for InfoGen task.\n");
8 return;
9 }
10 TTree *t = (TTree*)gFile->Get("trackInfo");
e69303af 11 AliTRDtrackInfo *fTrackInfo = 0x0;
e0d63214 12 t->SetBranchAddress("TrackInfo.", &fTrackInfo);
13 gROOT->cd();
14
15 AliCDBManager *cdb = AliCDBManager::Instance();
16 cdb->SetDefaultStorage("local://$ALICE_ROOT");
17 cdb->SetRun(0);
18 AliEveEventManager::AssertGeometry();
12896fe5 19
20 AliTRDReconstructor *reco = new AliTRDReconstructor();
21 reco->SetRecoParam(AliTRDrecoParam::GetLowFluxParam());
22
e0d63214 23 AliEveTRDTrackList *tracks = new AliEveTRDTrackList("TRD QA Tracks");
24
25
26
e69303af 27 AliTRDtrackV1 *fTrack = 0x0, *track = 0x0;
e0d63214 28 for (Int_t it=0; it<t->GetEntries(); it++){
29 if(!t->GetEntry(it)) continue;
30 if(!fTrackInfo) continue;
e69303af 31 if(!(fTrack = fTrackInfo->GetTrack())) continue;
e0d63214 32
e69303af 33 track = new AliTRDtrackV1(*fTrack);
34 track->SetOwner();
35 track->SetReconstructor(reco);
36 tracks->AddElement(new AliEveTRDTrack(track));
37 printf("Trk[%3d] ESD[%d] Ncls[%d]\n", it, fTrackInfo->GetESDinfo()->GetId(), fTrack->GetNumberOfClusters());
38 if(it>= 100) break;
e0d63214 39 }
40 gEve->AddElement(tracks);
41 gEve->Redraw3D();
f7a1cc68 42}