Go to the source code of this file.
|
TStopwatch | timer |
|
PndFileNameCreator | namecreator ("../data/Lars/MvdDtsSim.root") |
|
std::string | inFile = namecreator.GetSimFileName(false) |
|
TFile * | f = new TFile(inFile.c_str()) |
|
TTree * | t =(TTree *) f->Get("pndsim") |
|
TClonesArray * | hit_array =new TClonesArray("PndSdsMCPoint") |
|
TClonesArray * | mc_array =new TClonesArray("PndMCTrack") |
|
TH2D * | hisxy = new TH2D("hisxy","MVD MC Points, xy view",100,-5.,5.,100,-5.,5.) |
|
TH2D * | hisrz = new TH2D("hisrz","MVD MC Points, rz view",100,-5.,5.,100,-5.,5.) |
|
TH1D * | hisde = new TH1D("hisde","MVD MC Points, Energyloss",100,0.,0.002) |
|
int | nEvents = 1000 |
|
bool | verbose = false |
|
TVector3 | vecs |
|
TVector3 | veco |
|
TCanvas * | can1 = new TCanvas("can1","MCHit view in MVD",0,0,800,800) |
|
Double_t | rtime = timer.RealTime() |
|
Double_t | ctime = timer.CpuTime() |
|
DrawNice2DHisto |
( |
hisxy |
| ) |
|
DrawNice2DHisto |
( |
hisrz |
| ) |
|
Definition at line 35 of file anaMvdSim.C.
References hit(), i, and mcpdg.
38 if(
verbose) cout<<
"Event No "<<j<<endl;
41 if(
verbose) cout<<
"Point No "<<
i<<endl;
49 vecs.SetXYZ(hit->GetX(), hit->GetY(), hit->GetZ());
50 Int_t layer = Int_t(10.*
vecs->Mag());
55 hisde->Fill(hit->GetEnergyLoss());
int hit(Int_t nEvents=0, TString inFile="sim.root", TString parFile="par.root", TString inDigi="digi.root", TString outFile="hit.root", Int_t timeBased=0)
gROOT LoadMacro |
( |
"../Tools.C" |
| ) |
|
can1 Print |
( |
"outAnaMvdSim.ps" |
| ) |
|
t SetBranchAddress |
( |
"MVDPoint" |
, |
|
|
& |
hit_array |
|
) |
| |
t SetBranchAddress |
( |
"MCTrack" |
, |
|
|
& |
mc_array |
|
) |
| |
TCanvas* can1 = new TCanvas("can1","MCHit view in MVD",0,0,800,800) |
TFile* f = new TFile(inFile.c_str()) |
TH1D* hisde = new TH1D("hisde","MVD MC Points, Energyloss",100,0.,0.002) |
TH2D* hisrz = new TH2D("hisrz","MVD MC Points, rz view",100,-5.,5.,100,-5.,5.) |
TH2D* hisxy = new TH2D("hisxy","MVD MC Points, xy view",100,-5.,5.,100,-5.,5.) |
TClonesArray* hit_array =new TClonesArray("PndSdsMCPoint") |
std::string inFile = namecreator.GetSimFileName(false) |
TClonesArray* mc_array =new TClonesArray("PndMCTrack") |
TTree* t =(TTree *) f->Get("pndsim") |