FairRoot/PandaRoot
Functions | Variables
runMvdLHETrackFinder.C File Reference

Go to the source code of this file.

Functions

gROOT LoadMacro ("$VMCWORKDIR/gconfig/rootlogon.C")
 
 rootlogon ()
 
gROOT Macro ("$VMCWORKDIR/gconfig/rootlogon.C")
 
gSystem Load ("libriemann")
 
PndFileNameCreator creator (MCFile.Data())
 
std::cout<< "DigiFile: "
<< DigiFile.Data()<< std::endl;std::cout
<< "RecoFile: "
<< RecoFile.Data()<< std::endl;std::cout
<< "TrackFinderFile: "
<< outFile.Data()<< std::endl;TStopwatch
timer;timer.Start();FairRunAna
*fRun=new FairRunAna();fRun-> 
SetInputFile (MCFile)
 
fRun AddFriend (DigiFile)
 
fRun AddFriend (RecoFile)
 
fRun SetOutputFile (outFile)
 
parInput1 open (parFile.Data(),"UPDATE")
 
rtdb setFirstInput (parInput1)
 
trackMS SetTpcMode (2)
 
trackMS SetMvdMode (2)
 
trackMS SetVerbose (3)
 
fRun AddTask (trackMS)
 
fRun AddTask (trackFinder)
 
fRun AddTask (trackFitter)
 
pidMaker SetGeanePro (kFALSE)
 
pidMaker SetDebugMode (kTRUE)
 
fRun AddTask (pidMaker)
 
rtdb setOutput (parInput1)
 
rtdb print ()
 
fRun Init ()
 
fRun Run (0, nEvents)
 
rtdb saveOutput ()
 
timer Stop ()
 

Variables

TString MCFile = "Mvd_D+D-_10G.root"
 
TString parFile = "MvdParams.root"
 
TString parOutFile = "MvdParams.root"
 
Int_t nEvents = 1000
 
TString DigiFile = creator.GetDigiFileName(false).c_str()
 
TString RecoFile = creator.GetRecoFileName(false).c_str()
 
TString outFile = creator.GetTrackFindingFileName(false).c_str()
 
FairRuntimeDb * rtdb = fRun->GetRuntimeDb()
 
FairParRootFileIo * parInput1 = new FairParRootFileIo(kTRUE)
 
Bool_t kParameterMerged =kTRUE
 
PndLheHitsMaker * trackMS = new PndLheHitsMaker("Tracking routine")
 
PndLheTrackFinder * trackFinder = new PndLheTrackFinder()
 
PndLheTrackFitter * trackFitter = new PndLheTrackFitter("fitting")
 
PndLhePidMaker * pidMaker = new PndLhePidMaker("pid")
 
PndMvdGeoPar * geoPar = (PndMvdGeoPar*)(rtdb->getContainer("PndMvdGeoPar"))
 
Double_t rtime = timer.RealTime()
 
Double_t ctime = timer.CpuTime()
 

Function Documentation

fRun AddFriend ( DigiFile  )
fRun AddFriend ( RecoFile  )
fRun AddTask ( trackMS  )
fRun AddTask ( trackFinder  )
fRun AddTask ( trackFitter  )
fRun AddTask ( pidMaker  )
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
gSystem Load ( "libriemann"  )
gROOT LoadMacro ( "$VMCWORKDIR/gconfig/rootlogon.C )
gROOT Macro ( "$VMCWORKDIR/gconfig/rootlogon.C )
parInput1 open ( parFile.  Data(),
"UPDATE"   
)
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 ( )
pidMaker SetDebugMode ( kTRUE  )
rtdb setFirstInput ( parInput1  )
pidMaker SetGeanePro ( kFALSE  )
std::cout<< "DigiFile: " << DigiFile.Data()<< std::endl; std::cout << "RecoFile: " << RecoFile.Data()<< std::endl; std::cout << "TrackFinderFile: " << outFile.Data()<< std::endl; TStopwatch timer; timer.Start(); FairRunAna *fRun= new FairRunAna(); fRun-> SetInputFile ( MCFile  )
trackMS SetMvdMode ( )
rtdb setOutput ( parInput1  )
fRun SetOutputFile ( outFile  )
trackMS SetTpcMode ( )
trackMS SetVerbose ( )
timer Stop ( )

Variable Documentation

Double_t ctime = timer.CpuTime()

Definition at line 117 of file runMvdLHETrackFinder.C.

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

Definition at line 25 of file runMvdLHETrackFinder.C.

PndMvdGeoPar* geoPar = (PndMvdGeoPar*)(rtdb->getContainer("PndMvdGeoPar"))

Definition at line 103 of file runMvdLHETrackFinder.C.

Bool_t kParameterMerged =kTRUE

Definition at line 65 of file runMvdLHETrackFinder.C.

TString MCFile = "Mvd_D+D-_10G.root"

Definition at line 6 of file runMvdLHETrackFinder.C.

Int_t nEvents = 1000

Definition at line 12 of file runMvdLHETrackFinder.C.

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

Definition at line 27 of file runMvdLHETrackFinder.C.

TString parFile = "MvdParams.root"

Definition at line 8 of file runMvdLHETrackFinder.C.

FairParRootFileIo* parInput1 = new FairParRootFileIo(kTRUE)

Definition at line 59 of file runMvdLHETrackFinder.C.

TString parOutFile = "MvdParams.root"

Definition at line 10 of file runMvdLHETrackFinder.C.

PndLhePidMaker* pidMaker = new PndLhePidMaker("pid")

Definition at line 87 of file runMvdLHETrackFinder.C.

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

Definition at line 26 of file runMvdLHETrackFinder.C.

FairRuntimeDb* rtdb = fRun->GetRuntimeDb()

Definition at line 57 of file runMvdLHETrackFinder.C.

Double_t rtime = timer.RealTime()

Definition at line 116 of file runMvdLHETrackFinder.C.

PndLheTrackFinder* trackFinder = new PndLheTrackFinder()
PndLheTrackFitter* trackFitter = new PndLheTrackFitter("fitting")

Definition at line 84 of file runMvdLHETrackFinder.C.

PndLheHitsMaker* trackMS = new PndLheHitsMaker("Tracking routine")

Definition at line 74 of file runMvdLHETrackFinder.C.