FairRoot/PandaRoot
Functions | Variables
detectors/stt/runreco.C File Reference

Go to the source code of this file.

Functions

timer Start ()
 
fRun SetInputFile (inFile)
 
fRun AddFriend (inFile2)
 
fRun SetOutputFile (outFile)
 
parInput1 open (parFile.Data())
 
rtdb setFirstInput (parInput1)
 
cout
<< "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"<< endl;cout
<< "@@@@@@@@@@@@@@@@@@@@@@@ WARNING: @@@@@@@@@@@@@@@@@@@@@@@@@"
<< endl;cout<< "@@ @@"<< endl;cout
<< "@@ this is an old version
of the reconstruction code. @@"
<< endl;cout<< "@@ You should
not use this! @@"<< endl;cout
<< "@@ @@"<< endl;cout
<< "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"<< endl;cout
<< "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"<< endl;PndTrkTracking2
*tracking=new PndTrkTracking2(0,
false, false, false);tracking-> 
NoMvdAloneTracking ()
 
fRun AddTask (tracking)
 
trackMC SetTrackInBranchName ("SttMvdTrack")
 
trackMC SetTrackOutBranchName ("SttMvdTrackID")
 
fRun AddTask (trackMC)
 
fRun Init ()
 
fRun Run (0, nEvents)
 
timer Stop ()
 

Variables

TString inFile = "testrun.root"
 
TString inFile2 = "testdigi.root"
 
Int_t nEvents = 0
 
TString parFile = "testparams.root"
 
TString outFile = "testreco.root"
 
TStopwatch timer
 
FairRunAna * fRun = new FairRunAna()
 
FairRuntimeDb * rtdb = fRun->GetRuntimeDb()
 
FairParRootFileIo * parInput1 = new FairParRootFileIo()
 
PndMCTrackAssociator * trackMC = new PndMCTrackAssociator()
 
Double_t rtime = timer.RealTime()
 
Double_t ctime = timer.CpuTime()
 

Function Documentation

fRun AddFriend ( inFile2  )
fRun AddTask ( tracking  )
fRun AddTask ( trackMC  )
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
cout<< "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" << endl; cout << "@@@@@@@@@@@@@@@@@@@@@@@ WARNING: @@@@@@@@@@@@@@@@@@@@@@@@@" << endl; cout << "@@ @@" << endl; cout << "@@ this is an old version of the reconstruction code. @@" << endl; cout << "@@ You should not use this! @@" << endl; cout << "@@ @@" << endl; cout << "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" << endl; cout << "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" << endl; PndTrkTracking2* tracking = new PndTrkTracking2(0,false,false,false); tracking-> NoMvdAloneTracking ( )
parInput1 open ( parFile.  Data())
fRun Run ( ,
nEvents   
)
rtdb setFirstInput ( parInput1  )
fRun SetInputFile ( inFile  )
fRun SetOutputFile ( outFile  )
trackMC SetTrackInBranchName ( "SttMvdTrack"  )
trackMC SetTrackOutBranchName ( "SttMvdTrackID"  )
timer Start ( )
timer Stop ( )

Variable Documentation

Double_t ctime = timer.CpuTime()

Definition at line 76 of file detectors/stt/runreco.C.

FairRunAna* fRun = new FairRunAna()

Definition at line 32 of file detectors/stt/runreco.C.

TString inFile = "testrun.root"

Definition at line 9 of file detectors/stt/runreco.C.

TString inFile2 = "testdigi.root"

Definition at line 10 of file detectors/stt/runreco.C.

Int_t nEvents = 0

Definition at line 13 of file detectors/stt/runreco.C.

TString outFile = "testreco.root"

Definition at line 19 of file detectors/stt/runreco.C.

TString parFile = "testparams.root"

Definition at line 16 of file detectors/stt/runreco.C.

FairParRootFileIo* parInput1 = new FairParRootFileIo()

Definition at line 38 of file detectors/stt/runreco.C.

FairRuntimeDb* rtdb = fRun->GetRuntimeDb()

Definition at line 37 of file detectors/stt/runreco.C.

Double_t rtime = timer.RealTime()

Definition at line 75 of file detectors/stt/runreco.C.

TStopwatch timer

Definition at line 26 of file detectors/stt/runreco.C.

PndMCTrackAssociator* trackMC = new PndMCTrackAssociator()

Definition at line 60 of file detectors/stt/runreco.C.