FairRoot/PandaRoot
Functions | Variables
run_tracking_sttcombi.C File Reference

Go to the source code of this file.

Functions

gROOT LoadMacro ("$VMCWORKDIR/gconfig/rootlogon.C")
 
 rootlogon ()
 
PndFileNameCreator creator (MCFile.Data())
 
timer Start ()
 
fRun SetInputFile (RecoFile)
 
fRun AddFriend (MCFile)
 
fRun AddFriend (DigiFile)
 
fRun RunWithTimeStamps ()
 
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 (kTRUE)
 
fRun AddTask (mvdTrackFinder)
 
sttFindTracks AddHitCollectionName ("STTHit","STTPoint")
 
SttMvdTracking SetPersistence (kFALSE)
 
trackMC SetTrackInBranchName ("SttMvdGemTrack")
 
trackMC SetTrackOutBranchName ("SttMvdGemTrackID")
 
recoKalman SetTrackOutBranchName ("SttMvdGemGenTrack")
 
recoKalman SetBusyCut (50)
 
trackMC2 SetTrackInBranchName ("SttMvdGemGenTrack")
 
trackMC2 SetTrackOutBranchName ("SttMvdGemGenTrackID")
 
trackFts SetRelativeMomentumSmearing (0.02)
 
trackFts SetVertexSmearing (0.02, 0.02, 0.02)
 
trackFts SetTrackingEfficiency (1.)
 
trackFts SetTrackOutput ("FtsIdealTrack")
 
recoKalmanFwd SetTrackInBranchName ("FtsIdealTrack")
 
recoKalmanFwd SetTrackOutBranchName ("FtsIdealGenTrack")
 
trackMC3 SetTrackInBranchName ("FtsIdealGenTrack")
 
trackMC3 SetTrackOutBranchName ("FtsIdealGenTrackID")
 
fRun Init ()
 
fRun Run (0, nEvents)
 
rtdb saveOutput ()
 
rtdb print ()
 
timer Stop ()
 

Variables

TString MCFile = "Mvd_Sim.root"
 
Int_t nEvents = 0
 
TString DigiFile = creator.GetDigiFileName().c_str()
 
TString RecoFile = creator.GetRecoFileName().c_str()
 
TString parFile = creator.GetParFileName().c_str()
 
TString outFile = creator.GetTrackFindingFileName().c_str()
 
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()
 
PndSttTrackFinderRealsttTrackFinder = new PndSttTrackFinderReal(0)
 
PndSttFindTrackssttFindTracks = new PndSttFindTracks("Track Finder", "FairTask", sttTrackFinder, iVerbose)
 
PndSttMvdTracking * SttMvdTracking = new PndSttMvdTracking(0, 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 ( MCFile  )
fRun AddFriend ( DigiFile  )
sttTrackMatcher AddHitCollectionName ( "STTHit"  ,
"STTPoint"   
)
fRun AddTask ( Geane  )
fRun AddTask ( mvdTrackFinder  )
PndFileNameCreator creator ( MCFile.  Data())
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
gROOT LoadMacro ( "$VMCWORKDIR/gconfig/rootlogon.C )
parInput1 open ( parFile.  Data())
parIo1 open ( allDigiFile.  Data(),
"in"   
)
rtdb print ( )
rootlogon ( )

Definition at line 1 of file outdated/mpiTools/macros/emc/rootlogon.C.

2 {
3  gSystem->AddIncludePath("-I$VMCWORKDIR/emc");
4  gSystem->AddIncludePath("-I$VMCWORKDIR/emc/EmcDigi");
5  gSystem->AddIncludePath("-I$VMCWORKDIR/emc/EmcMC");
6  gSystem->AddIncludePath("-I$VMCWORKDIR/emc/EmcTools");
7  gSystem->AddIncludePath("-I$VMCWORKDIR/emc/EmcReco");
8  gSystem->AddIncludePath("-I$VMCWORKDIR/emc/EmcData");
9  gSystem->AddIncludePath("-I$VMCWORKDIR/pnddata");
10  gSystem->AddIncludePath("-I$VMCWORKDIR/base");
11  gROOT->LoadMacro("$VMCWORKDIR/gconfig/basiclibs.C");
12  basiclibs();
13 
14  gSystem->Load("libDpmEvtGen.so");
15  gSystem->Load("libGeoBase");
16  gSystem->Load("libParBase");
17  gSystem->Load("libBase");
18  gSystem->Load("libTrkBase");
19  gSystem->Load("libPndData");
20  gSystem->Load("libField");
21  gSystem->Load("libPassive");
22  gSystem->Load("libGen");
23  gSystem->Load("libPGen");
24  gSystem->Load("libEmc");
25 
26  delete gRandom;
27  gRandom=new TRandom3(0);
28 }
basiclibs()
fRun Run ( ,
nEvents   
)
fRun RunWithTimeStamps ( )
rtdb saveOutput ( )
recoKalmanFwd SetBusyCut ( 50  )
rtdb setFirstInput ( parInput1  )
fRun SetInputFile ( RecoFile  )
mvdTrackFinder SetMaxDist ( 0.  05)
fRun SetOutputFile ( outFile  )
mvdTrackFinder SetPersistence ( kTRUE  )
SttMvdTracking SetPersistence ( kFALSE  )
trackFts SetRelativeMomentumSmearing ( 0.  02)
rtdb setSecondInput ( parIo1  )
recoKalman 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 44 of file run_tracking_sttcombi.C.

Double_t ctime = timer.CpuTime()

Definition at line 139 of file run_tracking_sttcombi.C.

TString DigiFile = creator.GetDigiFileName().c_str()

Definition at line 17 of file run_tracking_sttcombi.C.

FairRunAna* fRun = new FairRunAna()

Definition at line 33 of file run_tracking_sttcombi.C.

FairGeane* Geane = new FairGeane()

Definition at line 39 of file run_tracking_sttcombi.C.

TString MCFile = "Mvd_Sim.root"

Definition at line 7 of file run_tracking_sttcombi.C.

Int_t nEvents = 0

Definition at line 10 of file run_tracking_sttcombi.C.

TString outFile = creator.GetTrackFindingFileName().c_str()

Definition at line 20 of file run_tracking_sttcombi.C.

TString parFile = creator.GetParFileName().c_str()

Definition at line 19 of file run_tracking_sttcombi.C.

FairParRootFileIo* parInput1 = new FairParRootFileIo()

Definition at line 47 of file run_tracking_sttcombi.C.

FairParAsciiFileIo* parIo1 = new FairParAsciiFileIo()

Definition at line 50 of file run_tracking_sttcombi.C.

TString RecoFile = creator.GetRecoFileName().c_str()

Definition at line 18 of file run_tracking_sttcombi.C.

PndRecoKalmanTask* recoKalman = new PndRecoKalmanTask()
PndRecoKalmanTask* recoKalmanFwd = new PndRecoKalmanTask()
FairRuntimeDb* rtdb = fRun->GetRuntimeDb()

Definition at line 46 of file run_tracking_sttcombi.C.

Double_t rtime = timer.RealTime()

Definition at line 138 of file run_tracking_sttcombi.C.

PndSttFindTracks* sttFindTracks = new PndSttFindTracks("Track Finder", "FairTask", sttTrackFinder, iVerbose)
PndSttMvdGemTracking* SttMvdGemTracking = new PndSttMvdGemTracking(0)
PndSttMvdTracking* SttMvdTracking = new PndSttMvdTracking(0, false, false)
PndSttTrackFinderReal* sttTrackFinder = new PndSttTrackFinderReal(0)
TString sysFile = gSystem->Getenv("VMCWORKDIR")

Definition at line 22 of file run_tracking_sttcombi.C.

TStopwatch timer

Definition at line 28 of file run_tracking_sttcombi.C.

PndMCTrackAssociator * trackMC = new PndMCTrackAssociator()
PndMCTrackAssociator* trackMC2 = new PndMCTrackAssociator()
PndMCTrackAssociator* trackMC3 = new PndMCTrackAssociator()