FairRoot/PandaRoot
macro/detectors/ftof/eventDisplay.C
Go to the documentation of this file.
1 
2 
4 {
5  // Load basic libraries
6  gROOT->LoadMacro("$VMCWORKDIR/gconfig/rootlogon.C");
7  rootlogon();
8  gSystem->Load("libEve");
9  gSystem->Load("libEventDisplay");
10  gSystem->Load("libFtof");
11 
12  // ----- Reconstruction run -------------------------------------------
13  FairRunAna *fRun= new FairRunAna();
14  fRun->SetInputFile("test.root");//sim_pidC.root");
15  fRun->AddFriend("hit_ftof.root");
16  fRun->SetOutputFile("tst.root");
17 
18 
19 
20  FairRuntimeDb* rtdb = fRun->GetRuntimeDb();
21  FairParRootFileIo* parInput1 = new FairParRootFileIo();
22  parInput1->open("simparams.root");
23 
24  rtdb->setFirstInput(parInput1);
25 
26 
27  FairEventManager *fMan= new FairEventManager();
28  FairMCTracks *Track = new FairMCTracks ("Monte-Carlo Tracks");
29  FairMCPointDraw *PndFTSPoint = new FairMCPointDraw ("FTSPoint",kMagenta, kFullSquare);
30  FairMCPointDraw *FtofPoint = new FairMCPointDraw ("FtofPoint",kYellow, kFullSquare);
31  FairHitDraw *FTSHit = new FairHitDraw("FTSHit");
32  FairHitDraw *FtofHit = new FairHitDraw("FtofHit");
33 
34 
35  fMan->AddTask(Track);
36 
37  fMan->AddTask(PndFTSPoint);
38  fMan->AddTask(FtofPoint);
39  fMan->AddTask(FTSHit);
40  fMan->AddTask(FtofHit);
41 
42  fMan->Init();
43  gGeoManager->SetVisLevel(0);
44 
45  TGeoVolume* top = gGeoManager->GetTopVolume();
46 
47 }
TGeoManager * gGeoManager
TGeoVolume * top
FairRunAna * fRun
Definition: hit_dirc.C:58
FairMCTracks * Track
Definition: drawEveTracks.C:8
FairRuntimeDb * rtdb
Definition: hit_dirc.C:66
FairParRootFileIo * parInput1
Definition: hit_dirc.C:67
FairEventManager * fMan
Definition: drawEveTracks.C:7