4#include "FairPrimaryGenerator.h"
6#include "TDatabasePDG.h"
9const Double_t
cm = 10.;
21 return Init(fileName, 0);
25 cout <<
"Info ALPACAGenerator: Opening input file " << fileName << endl;
28 cout <<
"-E ALPACAGenerator: Error opening the Signal file" << fileName << endl;
38 fTree->SetBranchAddress(
"e",&
e);
39 fTree->SetBranchAddress(
"w",&
w);
40 fTree->SetBranchAddress(
"x",&
x);
41 fTree->SetBranchAddress(
"y",&
y);
42 fTree->SetBranchAddress(
"z",&
z);
43 fTree->SetBranchAddress(
"px",&
px);
44 fTree->SetBranchAddress(
"py",&
py);
45 fTree->SetBranchAddress(
"pz",&
pz);
67 cpg->AddTrack(
pdg,
px,
py,
pz,
x,
y,
z,-1.,
false,
e,
tof,
w);
71 cpg->AddTrack(
pdg,
px,
py,
pz,
x,
y,
z,0,
true,
e,
tof,
w);
75 cpg->AddTrack(
pdg,
px,
py,
pz,
x,
y,
z,0,
true,
e,
tof,
w);
81 cout <<
"Event Number:"<<
fn/3 <<endl;
85 cout <<
"No more input events"<<endl;
int fNevents
don't make it persistent, magic ROOT command
virtual Bool_t Init(const char *, int)
virtual ~ALPACAGenerator()
Bool_t ReadEvent(FairPrimaryGenerator *)
ClassImp(ecalContFact) ecalContFact