Go to the source code of this file.
|
TFile * | f = new TFile("hit_emc.root") |
|
TTree * | t =(TTree *) f->Get("pndsim") |
|
TClonesArray * | hit_array =new TClonesArray("PndEmcHit") |
|
double | hit_theta |
|
double | point_theta |
|
TH1F * | h1 = new TH1F("h1","Theta",100,-0.1,0.1) |
|
TCanvas * | c1 = new TCanvas("c1", "", 100, 100, 800, 800) |
|
Definition at line 64 of file NHitsPerEvent.C.
73 std::cout <<
"NHits: " <<
gHitPoints->GetN() << std::endl;
void ExtractData(TClonesArray *array, TGraph *g)
TClonesArray * mvdHitArray
TClonesArray * mvdProjectedArray
Definition at line 20 of file hit_analys.C.
References PndEmcHit::GetPointList(), hit(), and i.
26 TVector3 hit_pos(hit->GetX(),hit->GetY(),hit->GetZ());
30 if (pointList.size()!=0)
32 TVector3 point_pos(pointList[0]->GetX(),pointList[0]->GetY(),pointList[0]->GetZ());
std::vector< PndEmcPoint * > & GetPointList()
represents the deposited energy of one emc crystal from simulation
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)
Definition at line 1 of file outdated/mpiTools/macros/emc/rootlogon.C.
3 gSystem->AddIncludePath(
"-I$VMCWORKDIR/emc");
4 gSystem->AddIncludePath(
"-I$VMCWORKDIR/emc/EmcDigi");
5 gSystem->AddIncludePath(
"-I$VMCWORKDIR/emc/EmcMC");
6 gSystem->AddIncludePath(
"-I$VMCWORKDIR/emc/EmcTools");
7 gSystem->AddIncludePath(
"-I$VMCWORKDIR/emc/EmcReco");
8 gSystem->AddIncludePath(
"-I$VMCWORKDIR/emc/EmcData");
9 gSystem->AddIncludePath(
"-I$VMCWORKDIR/pnddata");
10 gSystem->AddIncludePath(
"-I$VMCWORKDIR/base");
11 gROOT->LoadMacro(
"$VMCWORKDIR/gconfig/basiclibs.C");
14 gSystem->Load(
"libDpmEvtGen.so");
15 gSystem->Load(
"libGeoBase");
16 gSystem->Load(
"libParBase");
17 gSystem->Load(
"libBase");
18 gSystem->Load(
"libTrkBase");
19 gSystem->Load(
"libPndData");
20 gSystem->Load(
"libField");
21 gSystem->Load(
"libPassive");
22 gSystem->Load(
"libGen");
23 gSystem->Load(
"libPGen");
24 gSystem->Load(
"libEmc");
27 gRandom=
new TRandom3(0);
t SetBranchAddress |
( |
"EmcHit" |
, |
|
|
& |
hit_array |
|
) |
| |
TCanvas* c1 = new TCanvas("c1", "", 100, 100, 800, 800) |
TFile* f = new TFile("hit_emc.root") |
TH1F* h1 = new TH1F("h1","Theta",100,-0.1,0.1) |
TClonesArray* hit_array =new TClonesArray("PndEmcHit") |
TTree* t =(TTree *) f->Get("pndsim") |