FairRoot/PandaRoot
Functions | Variables
runGEANE2.C File Reference

Go to the source code of this file.

Functions

gROOT LoadMacro ("$VMCWORKDIR/gconfig/basiclibs.C")
 
 basiclibs ()
 
gSystem Load ("libGeoBase")
 
gSystem Load ("libParBase")
 
gSystem Load ("libBase")
 
gSystem Load ("libField")
 
gSystem Load ("libPndData")
 
gSystem Load ("libPassive")
 
gSystem Load ("libTrkBase")
 
gSystem Load ("libGeane")
 
gSystem Load ("libStt")
 
gSystem Load ("libPlane")
 
gSystem Load ("libGen")
 
gSystem Load ("libGeaneEx")
 
fRun SetInputFile ("ex2.root")
 
fRun AddFriend ("ex2d.root")
 
fRun AddFriend ("ex2r.root")
 
fRun SetOutputFile ("ex2g.root")
 
fRun AddTask (tr)
 
parInput1 open ("ex2params.root")
 
rtdb setFirstInput (parInput1)
 
fRun Init ()
 
rtdb print ()
 
Geane SetField (fRun->GetField())
 
timer Start ()
 
fRun Run (0, nEvents)
 
timer Stop ()
 
 printf ("RealTime=%f seconds, CpuTime=%f seconds\n", rtime, ctime)
 

Variables

FairRunAna * fRun = new FairRunAna()
 
FairGeane * Geane = new FairGeane("ex2.root")
 
FairGeaneTrTtr = new FairGeaneTrT()
 
FairRuntimeDb * rtdb = fRun->GetRuntimeDb()
 
FairParRootFileIo * parInput1 = new FairParRootFileIo()
 
TStopwatch timer
 
Int_t nEvents = 1000
 
Double_t rtime = timer.RealTime()
 
Double_t ctime = timer.CpuTime()
 

Function Documentation

fRun AddFriend ( "ex2d.root"  )
fRun AddFriend ( "ex2r.root"  )
fRun AddTask ( tr  )
basiclibs ( )
fRun Init ( )

Initialize the session

Definition at line 20 of file NHitsPerEvent.C.

21 {
22  TFile* f = new TFile("2014-10-27-00-06-02_50_MHz_Filtered_PosCorrected_Event.root", "READ");
23  t = (TTree*)f->Get("pndsim");
24 // t->AddFriend("pndsim", "2014-10-27-00-06-02_50_MHz_Filtered_PosCorrected_Residuals.root");
25 // t->AddFriend("pndsim", "2014-10-27-00-06-02_50_MHz_Filtered_PosCorrected_Track.root");
26 // t->AddFriend("pndsim", "2014-10-27-00-06-02_50_MHz_Filtered_TimeCorrectedSorted_Event.root");
27  t->StartViewer();
28 
29  t->SetBranchAddress("MVDHitsPixelPosCorrected", &mvdHitArray);
30 // t->SetBranchAddress("MvdProjectedHit", &mvdProjectedArray);
31 // t->SetBranchAddress("MvdTrack", &trackArray);
32 
33  gHitPoints->SetLineColor(kRed);
34  gHitPoints->SetMarkerStyle(2);
35  gHitPoints->SetMarkerColor(kRed);
36 
37  gProjections->SetLineColor(kBlue);
38  gProjections->SetMarkerStyle(5);
39  gProjections->SetMarkerColor(kBlue);
40 
41 
42 // mg->Add(gProjections, "Projected");
43  mg->Add(gHitPoints, "Hits");
44  t->GetEntry(0);
45 }
TMultiGraph * mg
Definition: NHitsPerEvent.C:17
TGraph * gHitPoints
Definition: NHitsPerEvent.C:15
TClonesArray * mvdHitArray
Definition: NHitsPerEvent.C:12
TFile * f
Definition: bump_analys.C:12
TTree * t
Definition: bump_analys.C:13
TGraph * gProjections
Definition: NHitsPerEvent.C:16
gSystem Load ( "libGeoBase"  )
gSystem Load ( "libParBase"  )
gSystem Load ( "libBase"  )
gSystem Load ( "libField"  )
gSystem Load ( "libPndData"  )
gSystem Load ( "libPassive"  )
gSystem Load ( "libTrkBase"  )
gSystem Load ( "libGeane"  )
gSystem Load ( "libStt"  )
gSystem Load ( "libPlane"  )
gSystem Load ( "libGen"  )
gSystem Load ( "libGeaneEx"  )
gROOT LoadMacro ( "$VMCWORKDIR/gconfig/basiclibs.C )
parInput1 open ( "ex2params.root"  )
rtdb print ( )
printf ( RealTime = %f seconds)
fRun Run ( ,
nEvents   
)
Geane SetField ( fRun->  GetField())
rtdb setFirstInput ( parInput1  )
fRun SetInputFile ( "ex2.root"  )
fRun SetOutputFile ( "ex2g.root"  )
timer Start ( )
timer Stop ( )

Variable Documentation

Double_t ctime = timer.CpuTime()

Definition at line 67 of file runGEANE2.C.

FairRunAna* fRun = new FairRunAna()

Definition at line 21 of file runGEANE2.C.

FairGeane* Geane = new FairGeane("ex2.root")

Definition at line 29 of file runGEANE2.C.

Int_t nEvents = 1000

Definition at line 61 of file runGEANE2.C.

FairParRootFileIo* parInput1 = new FairParRootFileIo()

Definition at line 43 of file runGEANE2.C.

FairRuntimeDb* rtdb = fRun->GetRuntimeDb()

Definition at line 42 of file runGEANE2.C.

Double_t rtime = timer.RealTime()

Definition at line 66 of file runGEANE2.C.

TStopwatch timer

Definition at line 57 of file runGEANE2.C.

Definition at line 33 of file runGEANE2.C.