forked from mcoquet642/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheventDisplay.C
More file actions
40 lines (33 loc) · 1.26 KB
/
eventDisplay.C
File metadata and controls
40 lines (33 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#if !defined(__CLING__) || defined(__ROOTCLING__)
#include "TString.h"
#include "FairRunAna.h"
#include "FairFileSource.h"
#include "FairEventManager.h"
#include "FairRuntimeDb.h"
#include "FairParRootFileIo.h"
#include "FairMCTracks.h"
#include "FairMCPointDraw.h"
#endif
void eventDisplay()
{
//-----User Settings:-----------------------------------------------
TString InputFile = "test.root";
TString ParFile = "params.root";
TString OutFile = "tst.root";
// ----- Reconstruction run -------------------------------------------
FairRunAna* fRun = new FairRunAna();
FairFileSource* fFileSource = new FairFileSource(InputFile.Data());
fRun->SetSource(fFileSource);
fRun->SetOutputFile(OutFile.Data());
FairRuntimeDb* rtdb = fRun->GetRuntimeDb();
FairParRootFileIo* parInput1 = new FairParRootFileIo();
parInput1->open(ParFile.Data());
rtdb->setFirstInput(parInput1);
FairEventManager* fMan = new FairEventManager();
//----------------------Traks and points -------------------------------------
FairMCTracks* Track = new FairMCTracks("Monte-Carlo Tracks");
FairMCPointDraw* TorinoDetectorPoints = new FairMCPointDraw("FairTestDetectorPoint", kRed, kFullSquare);
fMan->AddTask(Track);
fMan->AddTask(TorinoDetectorPoints);
fMan->Init();
}