6 gROOT->LoadMacro(
"$VMCWORKDIR/gconfig/rootlogon.C");
8 gSystem->Load(
"libEve");
9 gSystem->Load(
"libEventDisplay");
10 gSystem->Load(
"libFtof");
13 FairRunAna *
fRun=
new FairRunAna();
14 fRun->SetInputFile(
"test.root");
15 fRun->AddFriend(
"hit_ftof.root");
16 fRun->SetOutputFile(
"tst.root");
20 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
21 FairParRootFileIo*
parInput1 =
new FairParRootFileIo();
22 parInput1->open(
"simparams.root");
24 rtdb->setFirstInput(parInput1);
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");
37 fMan->AddTask(PndFTSPoint);
38 fMan->AddTask(FtofPoint);
39 fMan->AddTask(FTSHit);
40 fMan->AddTask(FtofHit);
TGeoManager * gGeoManager
int eventDisplay(TString inFile="sim.root", TString parFile="simparams.root", TString outid="n")
FairParRootFileIo * parInput1