FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
eventDisplay.C
Go to the documentation of this file.
2 {
3  //-----User Settings:-----------------------------------------------
4  TString InputFile = "test.root";
5  TString ParFile = "params.root";
6  TString OutFile = "tst.root";
7 
8  // ----- Reconstruction run -------------------------------------------
9  FairRunAna *fRun = new FairRunAna();
10  FairFileSource *fFileSource = new FairFileSource(InputFile);
11  fRun->SetSource(fFileSource);
12  fRun->SetSink(new FairRootFileSink(OutFile.Data()));
13 
14  FairRuntimeDb *rtdb = fRun->GetRuntimeDb();
15  FairParRootFileIo *parInput1 = new FairParRootFileIo();
16  parInput1->open(ParFile.Data());
17  rtdb->setFirstInput(parInput1);
18 
19  FairEventManager *fMan = new FairEventManager();
20 
21  //----------------------Traks and points -------------------------------------
22  FairMCTracksDraw *Track = new FairMCTracksDraw();
23  // FairMCPointDraw *TorinoDetectorPoints = new FairMCPointDraw("FairTestDetectorPoint", kRed, kFullSquare);
24 
25  fMan->AddTask(Track);
26  // fMan->AddTask(TorinoDetectorPoints);
27 
28  fMan->Init();
29 }
list of container factories
Definition: FairRuntimeDb.h:24
void SetSink(FairSink *tempSink)
Definition: FairRun.h:84
void eventDisplay()
Definition: eventDisplay.C:18
virtual void Init(Int_t visopt=1, Int_t vislvl=3, Int_t maxvisnds=10000)
FairRuntimeDb * GetRuntimeDb(void)
Definition: FairRun.h:80
Bool_t open(const Text_t *fname, Option_t *option="READ", const Text_t *ftitle="", Int_t compress=1)
virtual void SetSource(FairSource *tempSource)
Definition: FairRunAna.h:70
void AddTask(FairTask *t)
Bool_t setFirstInput(FairParIo *)