FairRoot/PandaRoot
Functions | Variables
run_linking_llbar_evtgen.C File Reference

Go to the source code of this file.

Functions

gROOT Macro ("$VMCWORKDIR/gconfig/rootlogon.C")
 
std::cout<< "MCFile : "
<< MCFile.Data()<< std::endl;std::cout
<< "DigiFile: "
<< DigiFile.Data()<< std::endl;std::cout
<< "RecoFile: "
<< RecoFile.Data()<< std::endl;gSystem-> 
Load ("libMCMatch")
 
gSystem Load ("libMCMatchExamples")
 
timer Start ()
 
fRun SetInputFile (MCFile)
 
fRun AddFriend (DigiFile)
 
fRun AddFriend (RecoFile)
 
fRun SetOutputFile (outFile)
 
parInput1 open (parFile.Data(),"UPDATE")
 
rtdb setFirstInput (parInput1)
 
rtdb setOutput (parInput1)
 
rtdb print ()
 
fRun AddTask (mcMatch)
 
fRun AddTask (hitmatch)
 
fRun Init ()
 
fRun Run (0, nEvents)
 
timer Stop ()
 

Variables

TString MCFile = "llbar_sim_evtgen.root"
 
TString parFile = "llbar_params_evtgen.root"
 
Int_t nEvents = 5000
 
TString DigiFile = "llbar_digi_evtgen.root"
 
TString RecoFile = "llbar_reco_evtgen.root"
 
TString outFile = "llbar_links_evtgen.root"
 
TStopwatch timer
 
FairRunAna * fRun = new FairRunAna()
 
FairRuntimeDb * rtdb = fRun->GetRuntimeDb()
 
FairParRootFileIo * parInput1 = new FairParRootFileIo(kTRUE)
 
Bool_t kParameterMerged =kTRUE
 
PndMCMatchCreatorTask * mcMatch = new PndMCMatchCreatorTask()
 
PndMCTestHitCompare * hitmatch = new PndMCTestHitCompare()
 
Double_t rtime = timer.RealTime()
 
Double_t ctime = timer.CpuTime()
 

Function Documentation

fRun AddFriend ( DigiFile  )
fRun AddFriend ( RecoFile  )
fRun AddTask ( mcMatch  )
fRun AddTask ( hitmatch  )
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: NHitsPerEvent.C:11
TGraph * gProjections
Definition: NHitsPerEvent.C:16
std::cout<< "MCFile : " << MCFile.Data()<< std::endl; std::cout << "DigiFile: " << DigiFile.Data()<< std::endl; std::cout << "RecoFile: " << RecoFile.Data()<< std::endl; gSystem-> Load ( "libMCMatch"  )
gSystem Load ( "libMCMatchExamples"  )
gROOT Macro ( "$VMCWORKDIR/gconfig/rootlogon.C )
parInput1 open ( parFile.  Data(),
"UPDATE"   
)
rtdb print ( )
fRun Run ( ,
nEvents   
)
rtdb setFirstInput ( parInput1  )
fRun SetInputFile ( MCFile  )
rtdb setOutput ( parInput1  )
fRun SetOutputFile ( outFile  )
timer Start ( )
timer Stop ( )

Variable Documentation

Double_t ctime = timer.CpuTime()

Definition at line 90 of file run_linking_llbar_evtgen.C.

TString DigiFile = "llbar_digi_evtgen.root"

Definition at line 13 of file run_linking_llbar_evtgen.C.

FairRunAna* fRun = new FairRunAna()

Definition at line 36 of file run_linking_llbar_evtgen.C.

PndMCTestHitCompare* hitmatch = new PndMCTestHitCompare()

Definition at line 78 of file run_linking_llbar_evtgen.C.

Bool_t kParameterMerged =kTRUE

Definition at line 56 of file run_linking_llbar_evtgen.C.

TString MCFile = "llbar_sim_evtgen.root"

Definition at line 4 of file run_linking_llbar_evtgen.C.

PndMCMatchCreatorTask* mcMatch = new PndMCMatchCreatorTask()

Definition at line 72 of file run_linking_llbar_evtgen.C.

Int_t nEvents = 5000

Definition at line 6 of file run_linking_llbar_evtgen.C.

TString outFile = "llbar_links_evtgen.root"

Definition at line 17 of file run_linking_llbar_evtgen.C.

TString parFile = "llbar_params_evtgen.root"

Definition at line 5 of file run_linking_llbar_evtgen.C.

FairParRootFileIo* parInput1 = new FairParRootFileIo(kTRUE)

Definition at line 52 of file run_linking_llbar_evtgen.C.

TString RecoFile = "llbar_reco_evtgen.root"

Definition at line 14 of file run_linking_llbar_evtgen.C.

FairRuntimeDb* rtdb = fRun->GetRuntimeDb()

Definition at line 50 of file run_linking_llbar_evtgen.C.

Double_t rtime = timer.RealTime()

Definition at line 89 of file run_linking_llbar_evtgen.C.

TStopwatch timer

Definition at line 29 of file run_linking_llbar_evtgen.C.