7 TString InputFile =
"sim_complete.root";
9 TString RecoFile =
"2014-10-27-00-06-02_50_MHz_Filtered_PosCorrected_Event.root";
10 TString TrackFile =
"2014-10-27-00-06-02_50_MHz_Filtered_PosCorrected_Tracks.root";
11 TString ParFile =
"simparams.root";
13 Bool_t enablePointDraw = kTRUE;
14 Bool_t enableHitDraw = kTRUE;
15 Bool_t enableTrackDraw = kTRUE;
19 FairRunAna *
fRun=
new FairRunAna();
20 fRun->SetInputFile(RecoFile.Data());
21 fRun->SetOutputFile(
"tst.root");
24 testFile =
new TFile(TrackFile.Data());
25 if (!testFile->IsZombie()){
26 fRun->AddFriend(TrackFile.Data());
33 testFile =
new TFile(InputFile.Data());
34 if (!testFile->IsZombie()){
35 fRun->AddFriend(InputFile.Data());
40 enableHitDraw = kFALSE;
44 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
45 FairParRootFileIo*
parInput1 =
new FairParRootFileIo();
46 parInput1->open(ParFile.Data());
47 rtdb->setFirstInput(parInput1);
48 FairEventManager *
fMan=
new FairEventManager();
52 if (enablePointDraw) {
53 FairMCTracks *
Track =
new FairMCTracks (
"Monte-Carlo Tracks");
54 FairMCPointDraw *
MvdPoints =
new FairMCPointDraw (
"MVDPoint",kBlue, kFullSquare);
55 FairHitDraw *EMCPoints =
new FairHitDraw (
"EmcHit");
57 EMCPoints->SetBoxDimensions(2.,2.,2.);
58 EMCPoints2->SetBoxDimensions(2.,2.,2.);
59 FairMCPointDraw *TofSciFPoint=
new FairMCPointDraw (
"SciTPoint",kTeal, kFullSquare);
60 FairMCPointDraw *MdtPoint =
new FairMCPointDraw (
"MdtPoint",kAzure, kFullSquare);
61 FairMCPointDraw *
PndDrcBarPoint =
new FairMCPointDraw (
"DrcBarPoint",kGreen, kFullSquare);
62 FairMCPointDraw *
PndDrcPDPoint =
new FairMCPointDraw (
"DrcPDPoint",kViolet, kFullSquare);
63 FairMCPointDraw *
PndDskParticle =
new FairMCPointDraw (
"DskParticle",kYellow, kFullSquare);
64 FairMCPointDraw *
PndDskFLGHit =
new FairMCPointDraw (
"PndDskFLGHit",kPink, kFullSquare);
65 FairMCPointDraw *PndSTTPoint =
new FairMCPointDraw (
"STTPoint",kMagenta, kFullSquare);
66 FairMCPointDraw *PndGEMPoint =
new FairMCPointDraw (
"GEMPoint",kRed, kFullSquare);
67 FairMCPointDraw *PndFTSPoint =
new FairMCPointDraw (
"FTSPoint",kMagenta, kFullSquare);
68 FairMCPointDraw *
PndFtofPoint =
new FairMCPointDraw (
"FtofPoint",kGreen, kFullSquare);
74 fMan->AddTask(EMCPoints);
75 fMan->AddTask(EMCPoints2);
76 fMan->AddTask( TofSciFPoint);
77 fMan->AddTask( MdtPoint);
78 fMan->AddTask( PndDrcBarPoint);
79 fMan->AddTask( PndDrcPDPoint);
80 fMan->AddTask( PndDskParticle);
81 fMan->AddTask( PndDskFLGHit);
82 fMan->AddTask( PndSTTPoint);
83 fMan->AddTask( PndGEMPoint);
84 fMan->AddTask( PndFTSPoint);
85 fMan->AddTask( PndFtofPoint);
86 fMan->AddTask(EmcHitCalo);
93 FairHitDraw *MvdRecoHit =
new FairHitDraw (
"MVDHitsPixelPosCorrected");
94 MvdRecoHit->SetBoxDimensions(0.01,0.01,0.01);
95 FairHitDraw *MvdRecoStrip =
new FairHitDraw (
"MVDHitsStrip");
96 FairHitDraw *STTHits =
new FairHitDraw (
"STTHit");
99 FairHitDraw *SciTHit =
new FairHitDraw(
"SciTHit");
100 FairHitDraw *MdtHit =
new FairHitDraw(
"MdtHit");
101 FairHitDraw *DrcHit =
new FairHitDraw(
"DrcHit");
102 FairHitDraw *DrcPDHit =
new FairHitDraw(
"DrcPDHit");
103 FairHitDraw *GEMHit =
new FairHitDraw(
"GEMHit");
104 FairHitDraw *FTSHit =
new FairHitDraw(
"FTSHit");
105 FairHitDraw *FtofHit =
new FairHitDraw(
"FtofHit");
107 EmcBump->SetBoxDimensions(4.0,4.0,4.0);
108 fMan->AddTask(MvdRecoHit);
109 fMan->AddTask(MvdRecoStrip);
110 fMan->AddTask(STTHits);
111 fMan->AddTask(STTIsochrone);
112 fMan->AddTask(SciTHit);
113 fMan->AddTask(MdtHit);
114 fMan->AddTask(DrcHit);
115 fMan->AddTask(DrcPDHit);
116 fMan->AddTask(GEMHit);
117 fMan->AddTask(FTSHit);
118 fMan->AddTask(FtofHit);
119 fMan->AddTask(EmcBump);
122 if (enableTrackDraw) {
128 MvdTrackCand->SetBoxDimensions(0.02, 0.02, 0.02);
129 fMan->AddTask(SttMvdTrack);
130 fMan->AddTask(SttMvdGemTrack);
131 fMan->AddTask(SttMvdGemGenTrack);
132 fMan->AddTask(FtsIdealTrack);
133 fMan->AddTask(MvdTrackCand);
FairMCPointDraw * MvdPoints
FairParRootFileIo * parInput1
int testFile(TString nome, TString type)
virtual InitStatus Init()