FairRoot/PandaRoot
Functions | Variables
run_reco_sttnew.C File Reference

Go to the source code of this file.

Functions

timer Start ()
 
fRun SetInputFile (inDigiFile)
 
fRun AddFriend (inSimFile)
 
fRun SetOutputFile (outFile)
 
fRun AddTask (Geane)
 
parInput1 open (parFile.Data())
 
parIo1 open (allDigiFile.Data(),"in")
 
rtdb setFirstInput (parInput1)
 
rtdb setSecondInput (parIo1)
 
mvdTrackFinder SetVerbose (iVerbose)
 
mvdTrackFinder SetMaxDist (0.05)
 
mvdTrackFinder SetPersistence (kFALSE)
 
fRun AddTask (mvdTrackFinder)
 
tracking SetInputBranchName ("STTHit","MVDHitsPixel","MVDHitsStrip")
 
tracking NoMvdAloneTracking ()
 
fRun AddTask (tracking)
 
fRun AddTask (SttMvdGemTracking)
 
trackMC SetTrackInBranchName ("SttMvdGemTrack")
 
trackMC SetTrackOutBranchName ("SttMvdGemTrackID")
 
fRun AddTask (trackMC)
 
recoKalman SetTrackOutBranchName ("SttMvdGemGenTrack")
 
recoKalman SetBusyCut (50)
 
fRun AddTask (recoKalman)
 
trackMC2 SetTrackInBranchName ("SttMvdGemGenTrack")
 
trackMC2 SetTrackOutBranchName ("SttMvdGemGenTrackID")
 
fRun AddTask (trackMC2)
 
trackFts SetRelativeMomentumSmearing (0.02)
 
trackFts SetVertexSmearing (0.02, 0.02, 0.02)
 
trackFts SetTrackingEfficiency (1.)
 
trackFts SetTrackOutput ("FtsIdealTrack")
 
fRun AddTask (trackFts)
 
recoKalmanFwd SetTrackInBranchName ("FtsIdealTrack")
 
recoKalmanFwd SetTrackOutBranchName ("FtsIdealGenTrack")
 
fRun AddTask (recoKalmanFwd)
 
trackMC3 SetTrackInBranchName ("FtsIdealGenTrack")
 
trackMC3 SetTrackOutBranchName ("FtsIdealGenTrackID")
 
fRun AddTask (trackMC3)
 
fRun Init ()
 
fRun Run (0, nEvents)
 
rtdb saveOutput ()
 
rtdb print ()
 
timer Stop ()
 

Variables

TString inDigiFile = "digi_sttcombi.root"
 
TString inSimFile = "points_sttcombi.root"
 
TString parFile = "params_sttcombi.root"
 
TString outFile = "reco_sttcombi.root"
 
Int_t nEvents = 0
 
TString sysFile = gSystem->Getenv("VMCWORKDIR")
 
TStopwatch timer
 
FairRunAna * fRun = new FairRunAna()
 
FairGeane * Geane = new FairGeane()
 
TString allDigiFile = sysFile+"/macro/params/all.par"
 
FairRuntimeDb * rtdb = fRun->GetRuntimeDb()
 
FairParRootFileIo * parInput1 = new FairParRootFileIo()
 
FairParAsciiFileIo * parIo1 = new FairParAsciiFileIo()
 
PndMvdRiemannTrackFinderTaskmvdTrackFinder = new PndMvdRiemannTrackFinderTask()
 
PndTrkTracking * tracking = new PndTrkTracking(0,false,false,false)
 
PndSttMvdGemTrackingSttMvdGemTracking = new PndSttMvdGemTracking(0)
 
PndMCTrackAssociator * trackMC = new PndMCTrackAssociator()
 
PndRecoKalmanTaskrecoKalman = new PndRecoKalmanTask()
 
PndMCTrackAssociator * trackMC2 = new PndMCTrackAssociator()
 
PndFtsTrackerIdealtrackFts = new PndFtsTrackerIdeal()
 
PndRecoKalmanTaskrecoKalmanFwd = new PndRecoKalmanTask()
 
PndMCTrackAssociator * trackMC3 = new PndMCTrackAssociator()
 
Double_t rtime = timer.RealTime()
 
Double_t ctime = timer.CpuTime()
 

Function Documentation

fRun AddFriend ( inSimFile  )
fRun AddTask ( Geane  )
fRun AddTask ( mvdTrackFinder  )
fRun AddTask ( tracking  )
fRun AddTask ( SttMvdGemTracking  )
fRun AddTask ( trackMC  )
fRun AddTask ( recoKalman  )
fRun AddTask ( trackMC2  )
fRun AddTask ( trackFts  )
fRun AddTask ( recoKalmanFwd  )
fRun AddTask ( trackMC3  )
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
tracking NoMvdAloneTracking ( )
parInput1 open ( parFile.  Data())
parIo1 open ( allDigiFile.  Data(),
"in"   
)
rtdb print ( )
fRun Run ( ,
nEvents   
)
rtdb saveOutput ( )
recoKalman SetBusyCut ( 50  )
rtdb setFirstInput ( parInput1  )
tracking SetInputBranchName ( "STTHit"  ,
"MVDHitsPixel"  ,
"MVDHitsStrip"   
)
fRun SetInputFile ( inDigiFile  )
mvdTrackFinder SetMaxDist ( 0.  05)
fRun SetOutputFile ( outFile  )
mvdTrackFinder SetPersistence ( kFALSE  )
trackFts SetRelativeMomentumSmearing ( 0.  02)
rtdb setSecondInput ( parIo1  )
trackMC SetTrackInBranchName ( "SttMvdGemTrack"  )
trackMC2 SetTrackInBranchName ( "SttMvdGemGenTrack"  )
recoKalmanFwd SetTrackInBranchName ( "FtsIdealTrack"  )
trackMC3 SetTrackInBranchName ( "FtsIdealGenTrack"  )
trackFts SetTrackingEfficiency ( 1.  )
trackMC SetTrackOutBranchName ( "SttMvdGemTrackID"  )
recoKalman SetTrackOutBranchName ( "SttMvdGemGenTrack"  )
trackMC2 SetTrackOutBranchName ( "SttMvdGemGenTrackID"  )
recoKalmanFwd SetTrackOutBranchName ( "FtsIdealGenTrack"  )
trackMC3 SetTrackOutBranchName ( "FtsIdealGenTrackID"  )
trackFts SetTrackOutput ( "FtsIdealTrack"  )
mvdTrackFinder SetVerbose ( iVerbose  )
trackFts SetVertexSmearing ( 0.  02,
0.  02,
0.  02 
)
timer Start ( )
timer Stop ( )

Variable Documentation

TString allDigiFile = sysFile+"/macro/params/all.par"

Definition at line 42 of file run_reco_sttnew.C.

Double_t ctime = timer.CpuTime()

Definition at line 132 of file run_reco_sttnew.C.

FairRunAna* fRun = new FairRunAna()

Definition at line 33 of file run_reco_sttnew.C.

FairGeane* Geane = new FairGeane()

Definition at line 37 of file run_reco_sttnew.C.

TString inDigiFile = "digi_sttcombi.root"

Definition at line 7 of file run_reco_sttnew.C.

TString inSimFile = "points_sttcombi.root"

Definition at line 8 of file run_reco_sttnew.C.

Definition at line 55 of file run_reco_sttnew.C.

Int_t nEvents = 0

Definition at line 17 of file run_reco_sttnew.C.

TString outFile = "reco_sttcombi.root"

Definition at line 14 of file run_reco_sttnew.C.

TString parFile = "params_sttcombi.root"

Definition at line 11 of file run_reco_sttnew.C.

FairParRootFileIo* parInput1 = new FairParRootFileIo()

Definition at line 45 of file run_reco_sttnew.C.

FairParAsciiFileIo* parIo1 = new FairParAsciiFileIo()

Definition at line 48 of file run_reco_sttnew.C.

PndRecoKalmanTask* recoKalman = new PndRecoKalmanTask()

Definition at line 83 of file run_reco_sttnew.C.

PndRecoKalmanTask* recoKalmanFwd = new PndRecoKalmanTask()

Definition at line 104 of file run_reco_sttnew.C.

FairRuntimeDb* rtdb = fRun->GetRuntimeDb()

Definition at line 44 of file run_reco_sttnew.C.

Double_t rtime = timer.RealTime()

Definition at line 131 of file run_reco_sttnew.C.

PndSttMvdGemTracking* SttMvdGemTracking = new PndSttMvdGemTracking(0)

Definition at line 74 of file run_reco_sttnew.C.

TString sysFile = gSystem->Getenv("VMCWORKDIR")

Definition at line 22 of file run_reco_sttnew.C.

TStopwatch timer

Definition at line 28 of file run_reco_sttnew.C.

Definition at line 97 of file run_reco_sttnew.C.

PndTrkTracking* tracking = new PndTrkTracking(0,false,false,false)
PndMCTrackAssociator* trackMC = new PndMCTrackAssociator()

Definition at line 78 of file run_reco_sttnew.C.

PndMCTrackAssociator* trackMC2 = new PndMCTrackAssociator()

Definition at line 92 of file run_reco_sttnew.C.

PndMCTrackAssociator* trackMC3 = new PndMCTrackAssociator()

Definition at line 113 of file run_reco_sttnew.C.