Go to the source code of this file.
Definition at line 1 of file simanalys.C.
References c1, f, file_name, h1, i, and n.
3 gSystem->Load(
"./PWO25SimEvent.so");
5 TH1F *
h1=
new TH1F(
"h1",
"",200,0.7,1.05);
6 h1->SetTitle(
"Energy distribution in 25 crystals, E=1 GeV");
7 h1->GetXaxis()->SetTitle(
"Energy, GeV");
12 TTree *eventT =(TTree *)
f.Get(
"Events");
14 PWO25Event =
new PWO25SimEvent();
15 eventT->SetBranchAddress(
"crystal",&PWO25Event);
19 int ientries = eventT->GetEntries();
21 for (
int i=0;
i<ientries;
i++)
25 int n=PWO25Event->GetEntries();
26 fHits =PWO25Event->GetHits();
29 fHits=PWO25Event->GetHits();
30 PWO25SimHit* aHit = (PWO25SimHit*) ((*fHits)[j]);
36 h1->SetBinContent(1,0);
38 c1 =
new TCanvas(
"c1",
"1",100,10,700,500);