#include <ALPACAGenerator.h>
Definition at line 11 of file ALPACAGenerator.h.
◆ ALPACAGenerator()
ALPACAGenerator::ALPACAGenerator |
( |
| ) |
|
◆ ~ALPACAGenerator()
ALPACAGenerator::~ALPACAGenerator |
( |
| ) |
|
|
virtual |
◆ ClassDef()
◆ GetNevents()
Int_t ALPACAGenerator::GetNevents |
( |
| ) |
|
Definition at line 92 of file ALPACAGenerator.cxx.
93{
95}
int fNevents
don't make it persistent, magic ROOT command
◆ Init() [1/2]
Bool_t ALPACAGenerator::Init |
( |
const char * |
fileName | ) |
|
|
virtual |
Definition at line 20 of file ALPACAGenerator.cxx.
20 {
21 return Init(fileName, 0);
22}
virtual Bool_t Init(const char *, int)
◆ Init() [2/2]
Bool_t ALPACAGenerator::Init |
( |
const char * |
fileName, |
|
|
int |
firstEvent |
|
) |
| |
|
virtual |
Definition at line 24 of file ALPACAGenerator.cxx.
24 {
25 cout << "Info ALPACAGenerator: Opening input file " << fileName << endl;
28 cout << "-E ALPACAGenerator: Error opening the Signal file" << fileName << endl;
29 }
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);
46 return kTRUE;
47}
◆ ReadEvent()
Bool_t ALPACAGenerator::ReadEvent |
( |
FairPrimaryGenerator * |
cpg | ) |
|
public method ReadEvent
Definition at line 62 of file ALPACAGenerator.cxx.
63{
67 cpg->AddTrack(
pdg,
px,
py,
pz,
x,
y,
z,-1.,
false,
e,
tof,
w);
68 }
71 cpg->AddTrack(
pdg,
px,
py,
pz,
x,
y,
z,0,
true,
e,
tof,
w);
72 }
75 cpg->AddTrack(
pdg,
px,
py,
pz,
x,
y,
z,0,
true,
e,
tof,
w);
76 }
77 else {
78 return kFALSE;
79 }
81 cout <<
"Event Number:"<<
fn/3 <<endl;
82 return kTRUE;
83 }
84 else {
85 cout << "No more input events"<<endl;
86 return kFALSE;
87 }
88}
Float_t ALPACAGenerator::e |
|
protected |
◆ event
Float_t ALPACAGenerator::event |
|
protected |
◆ fInputFile
TFile* ALPACAGenerator::fInputFile |
|
protected |
◆ fLogger
FairLogger* ALPACAGenerator::fLogger |
|
protected |
◆ fn
◆ fNevents
int ALPACAGenerator::fNevents |
|
protected |
◆ fTree
TTree* ALPACAGenerator::fTree |
|
protected |
◆ parent
Float_t ALPACAGenerator::parent |
|
protected |
◆ pdg
Float_t ALPACAGenerator::pdg |
|
protected |
◆ px
Float_t ALPACAGenerator::px |
|
protected |
◆ py
Float_t ALPACAGenerator::py |
|
protected |
◆ pz
Float_t ALPACAGenerator::pz |
|
protected |
◆ tof
Float_t ALPACAGenerator::tof |
|
protected |
◆ track
Float_t ALPACAGenerator::track |
|
protected |
Float_t ALPACAGenerator::w |
|
protected |
Float_t ALPACAGenerator::x |
|
protected |
Float_t ALPACAGenerator::y |
|
protected |
Float_t ALPACAGenerator::z |
|
protected |
The documentation for this class was generated from the following files: