FairRoot/PandaRoot
Functions | Variables
runMvdKalmanTask.C File Reference

Go to the source code of this file.

Functions

gROOT Macro ("$VMCWORKDIR/gconfig/rootlogon.C")
 
PndFileNameCreator creator (MCFile.Data())
 
std::cout<< "DigiFile: "
<< DigiFile.Data()<< std::endl;std::cout
<< "RecoFile: "
<< RecoFile.Data()<< std::endl;std::cout
<< "TrackFinderFile: "
<< TrackFile.Data()
<< std::endl;std::cout
<< "KalmanFile: "
<< outFile.Data()<< std::endl;TStopwatch
timer;timer.Start();FairRunAna
*fRun=new FairRunAna();fRun-> 
SetInputFile (MCFile)
 
fRun AddFriend (DigiFile)
 
fRun AddFriend (RecoFile)
 
fRun AddFriend (TrackFile)
 
fRun SetOutputFile (outFile)
 
parInput1 open (parFile.Data(),"UPDATE")
 
rtdb setFirstInput (parInput1)
 
fRun LoadGeometry ()
 
lheKalman SetVerbose (iVerbose)
 
lheKalman SetGeane (kTRUE)
 
lheKalman SetSmooth (kFALSE)
 
lheKalman SetNumIterations (3)
 
fRun AddTask (lheKalman)
 
rtdb print ()
 
fRun Init ()
 
Geane SetField (fRun->GetField())
 
fRun Run (0, nEvents)
 
timer Stop ()
 

Variables

TString MCFile = "MvdTpc_Pions.root"
 
TString parFile = "MvdParams.root"
 
Int_t nEvents = 5
 
TString DigiFile = creator.GetDigiFileName(false).c_str()
 
TString RecoFile = creator.GetRecoFileName(false).c_str()
 
TString TrackFile = creator.GetTrackFindingFileName(false).c_str()
 
TString outFile = creator.GetKalmanFileName(false).c_str()
 
FairGeane * Geane = new FairGeane(MCFile)
 
PndEmcMapperemcMap = PndEmcMapper::Instance(2,MCFile)
 
FairRuntimeDb * rtdb = fRun->GetRuntimeDb()
 
FairParRootFileIo * parInput1 = new FairParRootFileIo()
 
PndLheKalmanTask * lheKalman = new PndLheKalmanTask()
 
Double_t rtime = timer.RealTime()
 
Double_t ctime = timer.CpuTime()
 

Function Documentation

fRun AddFriend ( DigiFile  )
fRun AddFriend ( RecoFile  )
fRun AddFriend ( TrackFile  )
fRun AddTask ( lheKalman  )
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
fRun LoadGeometry ( )
gROOT Macro ( "$VMCWORKDIR/gconfig/rootlogon.C )
parInput1 open ( parFile.  Data(),
"UPDATE"   
)
rtdb print ( )
fRun Run ( ,
nEvents   
)
Geane SetField ( fRun->  GetField())
rtdb setFirstInput ( parInput1  )
lheKalman SetGeane ( kTRUE  )
std::cout<< "DigiFile: " << DigiFile.Data()<< std::endl; std::cout << "RecoFile: " << RecoFile.Data()<< std::endl; std::cout << "TrackFinderFile: " << TrackFile.Data()<< std::endl; std::cout << "KalmanFile: " << outFile.Data() << std::endl; TStopwatch timer; timer.Start(); FairRunAna *fRun= new FairRunAna(); fRun-> SetInputFile ( MCFile  )
kalman3 SetNumIterations ( )
fRun SetOutputFile ( outFile  )
lheKalman SetSmooth ( kFALSE  )
lheKalman SetVerbose ( iVerbose  )
timer Stop ( )

Variable Documentation

Double_t ctime = timer.CpuTime()

Definition at line 102 of file runMvdKalmanTask.C.

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

Definition at line 23 of file runMvdKalmanTask.C.

Definition at line 61 of file runMvdKalmanTask.C.

FairGeane* Geane = new FairGeane(MCFile)

Definition at line 60 of file runMvdKalmanTask.C.

PndLheKalmanTask* lheKalman = new PndLheKalmanTask()

Definition at line 76 of file runMvdKalmanTask.C.

Referenced by run_kalman_stt().

TString MCFile = "MvdTpc_Pions.root"

Definition at line 6 of file runMvdKalmanTask.C.

Int_t nEvents = 5

Definition at line 12 of file runMvdKalmanTask.C.

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

Definition at line 26 of file runMvdKalmanTask.C.

TString parFile = "MvdParams.root"

Definition at line 8 of file runMvdKalmanTask.C.

FairParRootFileIo* parInput1 = new FairParRootFileIo()

Definition at line 65 of file runMvdKalmanTask.C.

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

Definition at line 24 of file runMvdKalmanTask.C.

FairRuntimeDb* rtdb = fRun->GetRuntimeDb()

Definition at line 64 of file runMvdKalmanTask.C.

Double_t rtime = timer.RealTime()

Definition at line 101 of file runMvdKalmanTask.C.

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

Definition at line 25 of file runMvdKalmanTask.C.

Referenced by eventDisplay().