FairRoot/PandaRoot
Functions
eventDisplayMvdTpc.C File Reference

Go to the source code of this file.

Functions

 eventDisplayMvdTpc ()
 

Function Documentation

eventDisplayMvdTpc ( )

Definition at line 3 of file eventDisplayMvdTpc.C.

References fMan, fRun, MCFile, RecoFile, Track, and TString.

4 {
5 // gROOT->Macro("$VMCWORKDIR/gconfig/rootlogon.C");
6  gROOT->Macro("$VMCWORKDIR/gconfig/rootlogon.C");
7 
8 
9  gROOT->Macro("$VMCWORKDIR/gconfig/rootlogon.C");
10 /* gROOT->LoadMacro("$VMCWORKDIR/gconfig/basiclibs.C");
11  basiclibs();
12 
13  gSystem->Load("libGeoBase");
14  gSystem->Load("libParBase");
15  gSystem->Load("libBase");
16  gSystem->Load("libMCStack");
17  gSystem->Load("libGen");
18  gSystem->Load("libField");
19  gSystem->Load("libPassive");
20  gSystem->Load("libStt");
21  gSystem->Load("libMuo");
22  gSystem->Load("libEmc");
23  gSystem->Load("libTof");
24  gSystem->Load("libDrcProp");
25  gSystem->Load("libDrc");
26  gSystem->Load("libtpc");
27 // gSystem->Load("libDch");
28  gSystem->Load("libMvd");
29  gSystem->Load("libMvdReco");
30  gSystem->Load("libHyp");
31 // gSystem->Load("libDsk");*/
32  gSystem->Load("libEve");
33  gSystem->Load("libEventDisplay");
34  gSystem->Load("libGeom");
35 
36  // ----- Reconstruction run -------------------------------------------
37  CbmRunAna *fRun= new CbmRunAna();
38 
39  TString MCFile = "/home/stockman/fairroot/cbmsoft/pandaroot/macro/data/MvdTpc_D+D-_2Disks/Combined.mc.root";
40  TString RecoFile = "/home/stockman/fairroot/cbmsoft/pandaroot/macro/data/MvdTpc_D+D-_2Disks/digiMVD/recoMVD/Combined.reco.root";
41  TString RecoFileTPC = "/home/stockman/fairroot/cbmsoft/pandaroot/macro/data/MvdTpc_D+D-_2Disks/digiTPC/recoTPC/mergeTPC/Combined.merged.root";
42  TString TFindFile = "/home/stockman/fairroot/cbmsoft/pandaroot/macro/data/MvdTpc_D+D-_2Disks/digiMVD/recoMVD/riemannMVD/Combined.riemann.root";
43  TString TFindFileComb = "/home/stockman/fairroot/cbmsoft/pandaroot/macro/data/MvdTpc_D+D-_2Disks/digiMVD/recoMVD/riemannMVD/combinedmergedMVDTPC/Combined.combined.root";
44 
45 // PndFileNameCreator creator(MCFile.Data());
46 // TString RecoFile = creator.GetRecoFileName(false).c_str();
47 // TString TFindFile = creator.GetTrackFindingFileName(false).c_str();
48 
49  fRun->SetInputFile(MCFile.Data());
50  fRun->AddFriend(RecoFile.Data());
51  fRun->AddFriend(RecoFileTPC.Data());
52  fRun->AddFriend(TFindFile.Data());
53  fRun->AddFriend(TFindFileComb.Data());
54  //fRun->SetInputFile("../dsk/sim_dsk.root");
55  // fRun->SetInputFile("../dsk/sim_dsk.g4native.root");
56  fRun->SetOutputFile("test.root");
57  fRun->LoadGeometry();
58 
59  FairEventManager *fMan= new FairEventManager();
60  FairMCTracks *Track = new FairMCTracks ("Monte-Carlo Tracks");
61  FairMCPointDraw *MvdMCPoints = new FairMCPointDraw ("MVDPoint", 1,7);
62  FairRecoPointDraw *MvdRecoPoints = new FairRecoPointDraw ("MVDHitsPixel",3);
63  FairRecoPointDraw *MvdStripRecoPoints = new FairRecoPointDraw("MVDHitsStrip",3);
64  FairTPCRecoPointDraw *TPCRecoPoints = new FairTPCRecoPointDraw("PndTpcClusterMerged",3);
65  FairTrackCandDraw* MvdTrackCand = new FairTrackCandDraw("MVDRiemannTrackCand", 3);
66  FairTrackCandDraw* CombinedTrackCand = new FairTrackCandDraw("MVD_TPC_CombinedRiemannTrack", 3);
67 // FairMCPointDraw *EMCPoints = new FairMCPointDraw ("EmcPoint");
68 // FairMCPointDraw *TofPoint = new FairMCPointDraw ("TofPoint");
69 // FairMCPointDraw *TofSciFPoint= new FairMCPointDraw ("TofSciFPoint");
70 // FairMCPointDraw *MuoPoint = new FairMCPointDraw ("MuoPoint");
71 // FairMCPointDraw *PndDrcPoint = new FairMCPointDraw ("PndDrcPoint");
72 // FairMCPointDraw *PndDchPoint = new FairMCPointDraw ("PndDchPoint");
73  FairMCPointDraw *PndTpcPoint = new FairMCPointDraw ("PndTpcPoint",2,7);
74  // FairMCPointDraw *PndSTTPoint = new FairMCPointDraw ("STTPoint");
75 
76 
77  fMan->AddTask(Track);
78 
79  fMan->AddTask(MvdMCPoints);
80  fMan->AddTask(MvdRecoPoints);
81  fMan->AddTask(MvdStripRecoPoints);
82  fMan->AddTask(TPCRecoPoints);
83  fMan->AddTask(MvdTrackCand);
84  fMan->AddTask(CombinedTrackCand);
85 // fMan->AddTask(EMCPoints);
86 // fMan->AddTask(TofPoint);
87 // fMan->AddTask( TofSciFPoint);
88 // fMan->AddTask( MuoPoint);
89 // fMan->AddTask( PndDrcPoint);
90  // fMan->AddTask( PndDchPoint);
91  fMan->AddTask( PndTpcPoint);
92  // fMan->AddTask( PndSTTPoint);
93 
94 
95  fMan->Init();
96  gStyle->SetPalette(1);
97 
98 
99 }
TString RecoFile
FairRunAna * fRun
Definition: hit_dirc.C:58
FairMCTracks * Track
Definition: drawEveTracks.C:8
FairEventManager * fMan
Definition: drawEveTracks.C:7
TString MCFile