FairRoot/PandaRoot
Functions | Variables
anaMvdEvent.C File Reference

Go to the source code of this file.

Functions

gROOT Macro ("$VMCWORKDIR/gconfig/rootlogon.C")
 
PndFileNameCreator creator (MCFile.Data())
 
std::cout<< "MCFile : "
<< MCFile.Data()<< std::endl;std::cout
<< "DigiFile: "
<< DigiFile.Data()<< std::endl;std::cout
<< "RecoFile: "
<< RecoFile.Data()<< std::endl;std::cout
<< "RiemannFile: "
<< RiemannFile.Data()
<< std::endl;TStopwatch timer;timer.Start();CbmRunAna
*fRun=new CbmRunAna();fRun-> 
SetInputFile (MCFile)
 
fRun AddFriend (DigiFile)
 
fRun AddFriend (RecoFile)
 
fRun AddFriend (RiemannFile)
 
fRun SetOutputFile (outFile)
 
parInput1 open (parFile.Data(),"UPDATE")
 
rtdb setFirstInput (parInput1)
 
eventAna SetVerbose (iVerbose)
 
fRun AddTask (eventAna)
 
rtdb setOutput (parInput1)
 
rtdb print ()
 
fRun Init ()
 
fRun Run (startEvent, stopEvent)
 
c1 Divide (3, 4)
 
c1 cd (1)
 
eventAna DrawTracksPerEvent ()
 
c1 cd (2)
 
eventAna DrawHitsPerTrack ()
 
c1 cd (3)
 
eventAna DrawEnergyPerHit ()
 
c1 cd (4)
 
eventAna DrawPointRes ()
 
eventAna DrawPointResS ("same")
 
eventAna DrawPointResD ("same")
 
eventAna DrawPointResM ("same")
 
c1 cd (5)
 
eventAna DrawEnergyRes ()
 
c1 cd (6)
 
eventAna DrawDigisPerCluster ()
 
eventAna DrawPointResStrip ("same")
 
eventAna DrawEnergyResStrip ("same")
 
eventAna DrawDigisPerClusterStrip ("same")
 
c1 cd (10)
 
eventAna DrawPtRes ()
 
c1 cd (11)
 
eventAna DrawPRes ()
 
c1 cd (7)
 
eventAna DrawRiemannRes ()
 
eventAna DrawRiemannFakes ("same")
 
c1 cd (8)
 
eventAna DrawRiemannTracksPerTrack ()
 
eventAna DrawRiemannTracksPerTrackAdd ("same")
 
timer Stop ()
 

Variables

TString MCFile = "Mvd_Pions_0GeV1_1.root"
 
TString parFile = "Mvd_Pions_0GeV1_1Param.root"
 
TString parOutFile = parFile
 
Int_t startEvent = 0
 
Int_t stopEvent = 300
 
TString DigiFile = creator.GetDigiFileName(false).c_str()
 
TString RecoFile = creator.GetRecoFileName(false).c_str()
 
TString RiemannFile = creator.GetTrackFindingFileName(false).c_str()
 
TString outFile = "Dummy.root"
 
CbmRuntimeDb * rtdb = fRun->GetRuntimeDb()
 
CbmParRootFileIo * parInput1 = new CbmParRootFileIo(kTRUE)
 
Bool_t kParameterMerged =kTRUE
 
PndMvdEventAnaTaskeventAna = new PndMvdEventAnaTask()
 
TCanvas * c1 = new TCanvas()
 
Double_t rtime = timer.RealTime()
 
Double_t ctime = timer.CpuTime()
 

Function Documentation

fRun AddFriend ( DigiFile  )
fRun AddFriend ( RecoFile  )
fRun AddFriend ( RiemannFile  )
fRun AddTask ( eventAna  )
c1 cd ( )
c1 cd ( )
c1 cd ( )
c1 cd ( )
c1 cd ( )
c1 cd ( )
c1 cd ( 10  )
c1 cd ( 11  )
c1 cd ( )
c1 cd ( )
PndFileNameCreator creator ( MCFile.  Data())
c1 Divide ( ,
 
)
eventAna DrawDigisPerCluster ( )
eventAna DrawDigisPerClusterStrip ( "same"  )
eventAna DrawEnergyPerHit ( )
eventAna DrawEnergyRes ( )
eventAna DrawEnergyResStrip ( "same"  )
eventAna DrawHitsPerTrack ( )
eventAna DrawPointRes ( )
eventAna DrawPointResD ( "same"  )
eventAna DrawPointResM ( "same"  )
eventAna DrawPointResS ( "same"  )
eventAna DrawPointResStrip ( "same"  )
eventAna DrawPRes ( )
eventAna DrawPtRes ( )
eventAna DrawRiemannFakes ( "same"  )
eventAna DrawRiemannRes ( )
eventAna DrawRiemannTracksPerTrack ( )
eventAna DrawRiemannTracksPerTrackAdd ( "same"  )
eventAna DrawTracksPerEvent ( )
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: bump_analys.C:13
TGraph * gProjections
Definition: NHitsPerEvent.C:16
gROOT Macro ( "$VMCWORKDIR/gconfig/rootlogon.C )
parInput1 open ( parFile.  Data(),
"UPDATE"   
)
rtdb print ( )
fRun Run ( startEvent  ,
stopEvent   
)
rtdb setFirstInput ( parInput1  )
std::cout<< "MCFile : " << MCFile.Data()<< std::endl; std::cout << "DigiFile: " << DigiFile.Data()<< std::endl; std::cout << "RecoFile: " << RecoFile.Data()<< std::endl; std::cout << "RiemannFile: " << RiemannFile.Data() << std::endl; TStopwatch timer; timer.Start(); CbmRunAna *fRun= new CbmRunAna(); fRun-> SetInputFile ( MCFile  )
rtdb setOutput ( parInput1  )
fRun SetOutputFile ( outFile  )
eventAna SetVerbose ( iVerbose  )
timer Stop ( )

Variable Documentation

TCanvas* c1 = new TCanvas()

Definition at line 101 of file anaMvdEvent.C.

Double_t ctime = timer.CpuTime()

Definition at line 141 of file anaMvdEvent.C.

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

Definition at line 21 of file anaMvdEvent.C.

Definition at line 86 of file anaMvdEvent.C.

Bool_t kParameterMerged =kTRUE

Definition at line 69 of file anaMvdEvent.C.

TString MCFile = "Mvd_Pions_0GeV1_1.root"

Definition at line 7 of file anaMvdEvent.C.

TString outFile = "Dummy.root"

Definition at line 24 of file anaMvdEvent.C.

TString parFile = "Mvd_Pions_0GeV1_1Param.root"

Definition at line 9 of file anaMvdEvent.C.

CbmParRootFileIo* parInput1 = new CbmParRootFileIo(kTRUE)

Definition at line 63 of file anaMvdEvent.C.

TString parOutFile = parFile

Definition at line 11 of file anaMvdEvent.C.

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

Definition at line 22 of file anaMvdEvent.C.

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

Definition at line 23 of file anaMvdEvent.C.

CbmRuntimeDb* rtdb = fRun->GetRuntimeDb()

Definition at line 61 of file anaMvdEvent.C.

Double_t rtime = timer.RealTime()

Definition at line 140 of file anaMvdEvent.C.

Int_t startEvent = 0

Definition at line 13 of file anaMvdEvent.C.

Int_t stopEvent = 300

Definition at line 14 of file anaMvdEvent.C.