FairRoot/PandaRoot
Functions | Variables
run_reco_stt_mix.C File Reference

Go to the source code of this file.

Functions

gROOT LoadMacro ("$VMCWORKDIR/gconfig/rootlogon.C")
 
 rootlogon ()
 
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)
 
mix SetInputBkgFilesName ("dpm_digi_stt.root")
 
fRun AddTask (mix)
 
mvdTrackFinder AddHitBranch ("MVDHitsPixelMix")
 
mvdTrackFinder AddHitBranch ("MVDHitsStripMix")
 
mvdTrackFinder SetVerbose (iVerbose)
 
mvdTrackFinder SetMaxDist (0.05)
 
mvdTrackFinder SetPersistence (kFALSE)
 
fRun AddTask (mvdTrackFinder)
 
sttFindTracks AddHitCollectionName ("STTHit","STTPoint")
 
fRun AddTask (sttFindTracks)
 
SttMvdTracking SetInputBranchName ("STTHitMix","MVDHitsPixelMix","MVDHitsStripMix")
 
fRun AddTask (SttMvdTracking)
 
trackMC0 SetTrackInBranchName ("SttMvdTrack")
 
trackMC0 SetTrackOutBranchName ("SttMvdTrackID")
 
fRun AddTask (trackMC0)
 
SttMvdGemTracking SetPdgFromMC ()
 
fRun AddTask (SttMvdGemTracking)
 
recoKalman SetTrackInBranchName ("SttMvdGemTrack")
 
recoKalman SetTrackOutBranchName ("SttMvdGemGenTrack")
 
recoKalman SetBusyCut (50)
 
recoKalman SetMvdBranchName ("Mix")
 
recoKalman SetCentralTrackerBranchName ("Mix")
 
fRun AddTask (recoKalman)
 
trackMC SetTrackInBranchName ("SttMvdGemGenTrack")
 
trackMC SetTrackOutBranchName ("SttMvdGemGenTrackID")
 
fRun AddTask (trackMC)
 
fRun Init ()
 
fRun Run (0, nEvents)
 
rtdb saveOutput ()
 
rtdb print ()
 
timer Stop ()
 

Variables

TString inDigiFile = "evt_digi_stt.root"
 
TString inSimFile = "evt_points_stt.root"
 
TString parFile = "evt_params_stt.root"
 
TString outFile = "mix_reco_stt.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()
 
PndMixBackgroundEventsmix = new PndMixBackgroundEvents(0)
 
PndMvdRiemannTrackFinderTaskmvdTrackFinder = new PndMvdRiemannTrackFinderTask()
 
PndSttTrackFinderRealsttTrackFinder = new PndSttTrackFinderReal(0, false, true)
 
PndSttFindTrackssttFindTracks = new PndSttFindTracks("Track Finder", "FairTask", sttTrackFinder, iVerbose)
 
PndSttMvdTracking * SttMvdTracking = new PndSttMvdTracking(0,false,false)
 
PndMCTrackAssociator * trackMC0 = new PndMCTrackAssociator()
 
PndSttMvdGemTrackingSttMvdGemTracking = new PndSttMvdGemTracking(0)
 
PndRecoKalmanTaskrecoKalman = new PndRecoKalmanTask()
 
PndMCTrackAssociator * trackMC = new PndMCTrackAssociator()
 
Double_t rtime = timer.RealTime()
 
Double_t ctime = timer.CpuTime()
 

Function Documentation

fRun AddFriend ( inSimFile  )
mvdTrackFinder AddHitBranch ( "MVDHitsPixelMix"  )
mvdTrackFinder AddHitBranch ( "MVDHitsStripMix"  )
sttFindTracks AddHitCollectionName ( "STTHit"  ,
"STTPoint"   
)
fRun AddTask ( Geane  )
fRun AddTask ( mix  )
fRun AddTask ( mvdTrackFinder  )
fRun AddTask ( sttFindTracks  )
fRun AddTask ( SttMvdTracking  )
fRun AddTask ( trackMC0  )
fRun AddTask ( SttMvdGemTracking  )
fRun AddTask ( recoKalman  )
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
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   
)
rtdb saveOutput ( )
recoKalman SetBusyCut ( 50  )
recoKalman SetCentralTrackerBranchName ( "Mix"  )
rtdb setFirstInput ( parInput1  )
mix SetInputBkgFilesName ( "dpm_digi_stt.root"  )
SttMvdTracking SetInputBranchName ( "STTHitMix"  ,
"MVDHitsPixelMix"  ,
"MVDHitsStripMix"   
)
fRun SetInputFile ( inDigiFile  )
mvdTrackFinder SetMaxDist ( 0.  05)
recoKalman SetMvdBranchName ( "Mix"  )
fRun SetOutputFile ( outFile  )
SttMvdGemTracking SetPdgFromMC ( )
mvdTrackFinder SetPersistence ( kFALSE  )
rtdb setSecondInput ( parIo1  )
trackMC0 SetTrackInBranchName ( "SttMvdTrack"  )
recoKalman SetTrackInBranchName ( "SttMvdGemTrack"  )
trackMC SetTrackInBranchName ( "SttMvdGemGenTrack"  )
trackMC0 SetTrackOutBranchName ( "SttMvdTrackID"  )
recoKalman SetTrackOutBranchName ( "SttMvdGemGenTrack"  )
trackMC SetTrackOutBranchName ( "SttMvdGemGenTrackID"  )
mvdTrackFinder SetVerbose ( iVerbose  )
timer Start ( )
timer Stop ( )

Variable Documentation

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

Definition at line 42 of file run_reco_stt_mix.C.

Double_t ctime = timer.CpuTime()

Definition at line 122 of file run_reco_stt_mix.C.

FairRunAna* fRun = new FairRunAna()

Definition at line 33 of file run_reco_stt_mix.C.

FairGeane* Geane = new FairGeane()

Definition at line 37 of file run_reco_stt_mix.C.

TString inDigiFile = "evt_digi_stt.root"

Definition at line 7 of file run_reco_stt_mix.C.

TString inSimFile = "evt_points_stt.root"

Definition at line 8 of file run_reco_stt_mix.C.

Definition at line 57 of file run_reco_stt_mix.C.

Definition at line 62 of file run_reco_stt_mix.C.

Int_t nEvents = 0

Definition at line 17 of file run_reco_stt_mix.C.

TString outFile = "mix_reco_stt.root"

Definition at line 14 of file run_reco_stt_mix.C.

TString parFile = "evt_params_stt.root"

Definition at line 11 of file run_reco_stt_mix.C.

FairParRootFileIo* parInput1 = new FairParRootFileIo()

Definition at line 45 of file run_reco_stt_mix.C.

FairParAsciiFileIo* parIo1 = new FairParAsciiFileIo()

Definition at line 48 of file run_reco_stt_mix.C.

PndRecoKalmanTask* recoKalman = new PndRecoKalmanTask()

Definition at line 94 of file run_reco_stt_mix.C.

FairRuntimeDb* rtdb = fRun->GetRuntimeDb()

Definition at line 44 of file run_reco_stt_mix.C.

Double_t rtime = timer.RealTime()

Definition at line 121 of file run_reco_stt_mix.C.

PndSttFindTracks* sttFindTracks = new PndSttFindTracks("Track Finder", "FairTask", sttTrackFinder, iVerbose)

Definition at line 74 of file run_reco_stt_mix.C.

PndSttMvdGemTracking* SttMvdGemTracking = new PndSttMvdGemTracking(0)

Definition at line 90 of file run_reco_stt_mix.C.

PndSttMvdTracking* SttMvdTracking = new PndSttMvdTracking(0,false,false)

Definition at line 79 of file run_reco_stt_mix.C.

PndSttTrackFinderReal* sttTrackFinder = new PndSttTrackFinderReal(0, false, true)

Definition at line 73 of file run_reco_stt_mix.C.

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

Definition at line 22 of file run_reco_stt_mix.C.

TStopwatch timer

Definition at line 28 of file run_reco_stt_mix.C.

PndMCTrackAssociator* trackMC = new PndMCTrackAssociator()

Definition at line 103 of file run_reco_stt_mix.C.

PndMCTrackAssociator* trackMC0 = new PndMCTrackAssociator()

Definition at line 84 of file run_reco_stt_mix.C.