Go to the source code of this file.
|
| TStopwatch | timer |
| |
| TFile * | inFile = new TFile("../data/MvdMC_Pid_10k.root","READ") |
| |
| TTree * | tree = (TTree *)inFile->Get("pndsim") |
| |
| TClonesArray * | pointlist =new TClonesArray("PndSdsMCPoint") |
| |
| TH2D * | hist10 = new TH2D("specEnergyLossVsP","dE/dx(p)",200,0.0,1,200,0,0.0005) |
| |
| TVector3 | vecFront |
| |
| TVector3 | vecBack |
| |
| TVector3 | vecP |
| |
| Int_t | nEvents = 5000 |
| |
| Double_t | dx |
| |
| Double_t | dE |
| |
| Double_t | p |
| |
| Double_t | dEdX |
| |
| TCanvas * | can1 = new TCanvas("test","Energy in MVD",20,20,800,600) |
| |
| Double_t | rtime = timer.RealTime() |
| |
| Double_t | ctime = timer.CpuTime() |
| |
Definition at line 40 of file piddraw.C.
References dx, PndSdsMCPoint::GetPxOut(), PndSdsMCPoint::GetPyOut(), PndSdsMCPoint::GetPzOut(), PndSdsMCPoint::GetXOut(), PndSdsMCPoint::GetYOut(), PndSdsMCPoint::GetZOut(), i, point, and vecFront.
47 vecFront.SetXYZ(point->GetX(),point->GetY(),point->GetZ());
52 dE=point->GetEnergyLoss();
Double_t GetPyOut() const
Double_t GetPxOut() const
Double_t GetPzOut() const
| gStyle SetBarOffset |
( |
10 |
| ) |
|
| tree SetBranchAddress |
( |
"MVDPoint" |
, |
|
|
& |
pointlist |
|
) |
| |
| gStyle SetCanvasColor |
( |
0 |
| ) |
|
| gStyle SetHistFillColor |
( |
9 |
| ) |
|
| gStyle SetLabelSize |
( |
0. |
025, |
|
|
"X" |
|
|
) |
| |
| gStyle SetLabelSize |
( |
0. |
025, |
|
|
"Y" |
|
|
) |
| |
| gStyle SetOptFit |
( |
1111 |
| ) |
|
| gStyle SetPalette |
( |
1 |
, |
|
|
0 |
|
|
) |
| |
| gStyle SetTitleOffset |
( |
1 |
, |
|
|
"X" |
|
|
) |
| |
| gStyle SetTitleOffset |
( |
1. |
55, |
|
|
"Y" |
|
|
) |
| |
| gStyle SetTitleSize |
( |
0. |
03, |
|
|
"Y" |
|
|
) |
| |
| gStyle SetTitleSize |
( |
0. |
03, |
|
|
"X" |
|
|
) |
| |
| TCanvas* can1 = new TCanvas("test","Energy in MVD",20,20,800,600) |
| TH2D* hist10 = new TH2D("specEnergyLossVsP","dE/dx(p)",200,0.0,1,200,0,0.0005) |
| TFile* inFile = new TFile("../data/MvdMC_Pid_10k.root","READ") |
| TClonesArray* pointlist =new TClonesArray("PndSdsMCPoint") |