FairRoot/PandaRoot
Functions | Variables
anaMvdTrackFinder.C File Reference

Go to the source code of this file.

Functions

gROOT Macro ("$VMCWORKDIR/gconfig/rootlogon.C")
 
gSystem Load ("libriemann")
 
PndFileNameCreator creator (MCFile.Data())
 
std::cout<< "TrackFinderFile1: "
<< trackFile1.Data()
<< std::endl;std::cout
<< "TrackFinderFile2: "
<< trackFile2.Data()
<< std::endl;TStopwatch timer;timer.Start();CbmRunAna
*fRun=new CbmRunAna();fRun-> 
SetInputFile (trackFile2)
 
fRun AddFriend (trackFile1)
 
fRun SetOutputFile (outFile)
 
parInput1 open (parFile.Data(),"READ")
 
rtdb setFirstInput (parInput1)
 
fRun LoadGeometry ()
 
fRun AddTask (mvdTrackFinderAna)
 
output open (parOutFile.Data())
 
rtdb setOutput (output)
 
rtdb print ()
 
fRun Init ()
 
fRun Run (0, nEvents)
 
rtdb saveOutput ()
 
timer Stop ()
 

Variables

TString MCFile = "Mvd_Test.root"
 
TString parFile = "MvdParamsReco.root"
 
TString parOutFile = "MvdParamsTFinder.root"
 
Int_t nEvents = 10
 
TString trackFile1 = creator.GetTrackFindingFileName(false).c_str()
 
TString trackFile2 = "Mvd_Test_IdealTrackF.root"
 
TString outFile = "Mvd_Dummy_File.root"
 
CbmRuntimeDb * rtdb = fRun->GetRuntimeDb()
 
CbmParRootFileIo * parInput1 = new CbmParRootFileIo()
 
PndMvdTrackFinderAnaTask * mvdTrackFinderAna = new PndMvdTrackFinderAnaTask()
 
CbmParRootFileIo * output =new CbmParRootFileIo(kTRUE)
 
PndMvdGeoPar * geoPar = (PndMvdGeoPar*)(rtdb->getContainer("PndMvdGeoPar"))
 
Double_t rtime = timer.RealTime()
 
Double_t ctime = timer.CpuTime()
 

Function Documentation

fRun AddFriend ( trackFile1  )
fRun AddTask ( mvdTrackFinderAna  )
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"  )
fRun LoadGeometry ( )
gROOT Macro ( "$VMCWORKDIR/gconfig/rootlogon.C )
parInput1 open ( parFile.  Data(),
"READ"   
)
output open ( parOutFile.  Data())
rtdb print ( )
fRun Run ( ,
nEvents   
)
rtdb saveOutput ( )
rtdb setFirstInput ( parInput1  )
std::cout<< "TrackFinderFile1: " << trackFile1.Data()<< std::endl; std::cout << "TrackFinderFile2: " << trackFile2.Data()<< std::endl; TStopwatch timer; timer.Start(); CbmRunAna *fRun= new CbmRunAna(); fRun-> SetInputFile ( trackFile2  )
rtdb setOutput ( output  )
fRun SetOutputFile ( outFile  )
timer Stop ( )

Variable Documentation

Double_t ctime = timer.CpuTime()

Definition at line 92 of file anaMvdTrackFinder.C.

PndMvdGeoPar* geoPar = (PndMvdGeoPar*)(rtdb->getContainer("PndMvdGeoPar"))
TString MCFile = "Mvd_Test.root"

Definition at line 6 of file anaMvdTrackFinder.C.

PndMvdTrackFinderAnaTask* mvdTrackFinderAna = new PndMvdTrackFinderAnaTask()

Definition at line 70 of file anaMvdTrackFinder.C.

Int_t nEvents = 10

Definition at line 12 of file anaMvdTrackFinder.C.

TString outFile = "Mvd_Dummy_File.root"

Definition at line 23 of file anaMvdTrackFinder.C.

CbmParRootFileIo* output =new CbmParRootFileIo(kTRUE)

Definition at line 73 of file anaMvdTrackFinder.C.

TString parFile = "MvdParamsReco.root"

Definition at line 8 of file anaMvdTrackFinder.C.

CbmParRootFileIo* parInput1 = new CbmParRootFileIo()

Definition at line 51 of file anaMvdTrackFinder.C.

TString parOutFile = "MvdParamsTFinder.root"

Definition at line 10 of file anaMvdTrackFinder.C.

CbmRuntimeDb* rtdb = fRun->GetRuntimeDb()

Definition at line 50 of file anaMvdTrackFinder.C.

Double_t rtime = timer.RealTime()

Definition at line 91 of file anaMvdTrackFinder.C.

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

Definition at line 21 of file anaMvdTrackFinder.C.

TString trackFile2 = "Mvd_Test_IdealTrackF.root"

Definition at line 22 of file anaMvdTrackFinder.C.