FairRoot/PandaRoot
|
#include <map>
#include <vector>
Go to the source code of this file.
Functions | |
basiclibs () | |
gSystem | Load ("libGeoBase") |
gSystem | Load ("libParBase") |
gSystem | Load ("libBase") |
gSystem | Load ("libPndData") |
gSystem | Load ("libField") |
gSystem | Load ("libGen") |
gSystem | Load ("libPassive") |
gSystem | Load ("libMvd") |
gStyle | SetPalette (1) |
timer | Start () |
t | SetBranchAddress ("MVDPoint",&hit_array) |
t | SetBranchAddress ("RadLen",&radlen_array) |
t | SetBranchAddress ("MCTrack",&mc_array) |
for (Int_t j=startEvent;j<(nEvents+startEvent)&&j< t->GetEntriesFast();j++) | |
hisRadLen2D | Divide (hisRadLenCount) |
hisTrackP2D | Divide (hisTrackPCount) |
can1 | Divide (2, 2) |
can1 | cd (1) |
hisRadLen | DrawCopy () |
can1 | cd (2) |
hisRadLen2D | DrawCopy ("colz") |
can1 | cd (3) |
can1 | cd (4) |
timer | Stop () |
Variables | |
TStopwatch | timer |
PndFileNameCreator | namecreator ("Mvd_DPM_Test.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 * | radlen_array = new TClonesArray("FairRadLenPoint") |
TClonesArray * | mc_array =new TClonesArray("PndMCTrack") |
TH1D * | hisRadLen = new TH1D("hisRadLen","Radiation Length", 1000,0,100) |
TH2D * | hisRadLen2D = new TH2D("hisRadLen2D","Radiation Length 2D", 100,-1,1,100, -TMath::Pi(), TMath::Pi()) |
TH2D * | hisRadLenCount = new TH2D("hisRadLenCount","hisRadLenCount",100,-1,1,100, -TMath::Pi(), TMath::Pi()) |
TH1D * | hisTrackP = new TH1D("hisTrackP","Hits per Track", 51,-0.5,50.5) |
TH2D * | hisTrackP2D = new TH2D("hisTrackP2D","Hits per Track 2D", 100,-1,1,100, -TMath::Pi(), TMath::Pi()) |
TH2D * | hisTrackPCount = new TH2D("hisTrackPCount","hisTrackPCount", 100,-1,1,100, -TMath::Pi(), TMath::Pi()) |
int | nEvents = 1000 |
int | startEvent = 0 |
bool | verbose = false |
TVector3 | vecs |
TVector3 | veco |
std::map< int, int > | trackHitMap |
TCanvas * | can1 = new TCanvas() |
Double_t | rtime = timer.RealTime() |
Double_t | ctime = timer.CpuTime() |
basiclibs | ( | ) |
can1 cd | ( | 1 | ) |
can1 cd | ( | 2 | ) |
can1 cd | ( | 3 | ) |
can1 cd | ( | 4 | ) |
hisRadLen2D Divide | ( | hisRadLenCount | ) |
hisTrackP2D Divide | ( | hisTrackPCount | ) |
can1 Divide | ( | 2 | , |
2 | |||
) |
hisRadLen DrawCopy | ( | ) |
hisTrackP2D DrawCopy | ( | "colz" | ) |
for | ( | ) |
Definition at line 61 of file anaMvdRadLength.C.
gSystem Load | ( | "libGeoBase" | ) |
gSystem Load | ( | "libParBase" | ) |
gSystem Load | ( | "libBase" | ) |
gSystem Load | ( | "libPndData" | ) |
gSystem Load | ( | "libField" | ) |
gSystem Load | ( | "libGen" | ) |
gSystem Load | ( | "libPassive" | ) |
gSystem Load | ( | "libMvd" | ) |
t SetBranchAddress | ( | "MVDPoint" | , |
& | hit_array | ||
) |
t SetBranchAddress | ( | "RadLen" | , |
& | radlen_array | ||
) |
t SetBranchAddress | ( | "MCTrack" | , |
& | mc_array | ||
) |
gStyle SetPalette | ( | 1 | ) |
timer Start | ( | ) |
timer Stop | ( | ) |
TCanvas* can1 = new TCanvas() |
Definition at line 116 of file anaMvdRadLength.C.
Double_t ctime = timer.CpuTime() |
Definition at line 131 of file anaMvdRadLength.C.
TFile* f = new TFile(inFile.c_str()) |
Definition at line 34 of file anaMvdRadLength.C.
TH1D* hisRadLen = new TH1D("hisRadLen","Radiation Length", 1000,0,100) |
Definition at line 46 of file anaMvdRadLength.C.
TH2D* hisRadLen2D = new TH2D("hisRadLen2D","Radiation Length 2D", 100,-1,1,100, -TMath::Pi(), TMath::Pi()) |
Definition at line 47 of file anaMvdRadLength.C.
TH2D* hisRadLenCount = new TH2D("hisRadLenCount","hisRadLenCount",100,-1,1,100, -TMath::Pi(), TMath::Pi()) |
Definition at line 48 of file anaMvdRadLength.C.
TH1D* hisTrackP = new TH1D("hisTrackP","Hits per Track", 51,-0.5,50.5) |
Definition at line 50 of file anaMvdRadLength.C.
TH2D* hisTrackP2D = new TH2D("hisTrackP2D","Hits per Track 2D", 100,-1,1,100, -TMath::Pi(), TMath::Pi()) |
Definition at line 51 of file anaMvdRadLength.C.
TH2D* hisTrackPCount = new TH2D("hisTrackPCount","hisTrackPCount", 100,-1,1,100, -TMath::Pi(), TMath::Pi()) |
Definition at line 52 of file anaMvdRadLength.C.
TClonesArray* hit_array =new TClonesArray("PndSdsMCPoint") |
Definition at line 37 of file anaMvdRadLength.C.
std::string inFile = namecreator.GetSimFileName(false) |
Definition at line 32 of file anaMvdRadLength.C.
TClonesArray* mc_array =new TClonesArray("PndMCTrack") |
Definition at line 43 of file anaMvdRadLength.C.
PndFileNameCreator namecreator("Mvd_DPM_Test.root") |
int nEvents = 1000 |
Definition at line 54 of file anaMvdRadLength.C.
TClonesArray* radlen_array = new TClonesArray("FairRadLenPoint") |
Definition at line 40 of file anaMvdRadLength.C.
Referenced by anaRadLength().
Double_t rtime = timer.RealTime() |
Definition at line 130 of file anaMvdRadLength.C.
int startEvent = 0 |
Definition at line 55 of file anaMvdRadLength.C.
Definition at line 35 of file anaMvdRadLength.C.
TStopwatch timer |
Definition at line 21 of file anaMvdRadLength.C.
std::map<int,int> trackHitMap |
Definition at line 59 of file anaMvdRadLength.C.
Referenced by anaRadLength().
TVector3 veco |
Definition at line 58 of file anaMvdRadLength.C.
TVector3 vecs |
Definition at line 58 of file anaMvdRadLength.C.
bool verbose = false |
Definition at line 56 of file anaMvdRadLength.C.