FairShip
Loading...
Searching...
No Matches
GenieGenerator Class Reference

#include <GenieGenerator.h>

Inheritance diagram for GenieGenerator:
[legend]
Collaboration diagram for GenieGenerator:
[legend]

Public Member Functions

 GenieGenerator ()
 ~GenieGenerator () override
Bool_t ReadEventGeometryDriver (FairPrimaryGenerator *)
Bool_t ReadEvent (FairPrimaryGenerator *) override
Bool_t Init (const char *, int) override
Bool_t Init (const char *) override
void SetGenerationOption (Int_t GenOption)
Int_t GetNevents ()
void NuOnly ()
void SetPositions (Double_t zTa, Double_t zS=-3400., Double_t zE=2650.)
void AddBox (const TVector3 &dVec, const TVector3 &box)
virtual Bool_t Init (const std::vector< std::string > &inFiles, int startNumber)
virtual Bool_t Init (const std::vector< std::string > &inFiles)
Public Member Functions inherited from SHiP::Generator
 Generator ()=default
 ~Generator () override
virtual void UseExternalFile (std::string x, Int_t i)
virtual void UseExternalFile (std::vector< std::string > &inFiles, Int_t i)
void SetMaxTheta (Double_t thetaX, Double_t thetaY)
Int_t nrOfGeoRejections () const
Long64_t GetCounter (const std::string &name) const
void SetCounter (const std::string &name, Long64_t value)
void IncrementCounter (const std::string &name, Long64_t delta=1)

Protected Attributes

Double_t Yvessel
Double_t Xvessel
Double_t Lvessel
Double_t ztarget
Double_t startZ
Double_t endZ
Double_t Ev
Double_t pxv
Double_t pyv
Double_t pzv
Double_t El
Double_t pxl
Double_t pyl
Double_t pzl
Double_t vtxx
Double_t vtxy
Double_t vtxz
Double_t vtxt
Double_t Ef [500]
Double_t pxf [500]
Double_t pyf [500]
Double_t pzf [500]
Int_t pdgf [500]
std::vector< TVector3 > dVecs
std::vector< TVector3 > m_boxes
Bool_t cc
Bool_t nuel
Int_t nf
Int_t neu
Int_t fGenOption = 0
TFile * fInputFile
TTree * fTree
int fNevents
int fn
bool fFirst
bool fNuOnly
Double_t fznu0
Double_t fznu11
Double_t fXnu11
Double_t fYnu11
Double_t fEntrDz_inner
Double_t fEntrDz_outer
Double_t fEntrZ_inner
Double_t fEntrZ_outer
Double_t fEntrA
Double_t fEntrB
Double_t fL1z
Double_t fScintDz
TH1D * pxhist [3000]
TH1D * pyslice [3000][100]
Protected Attributes inherited from SHiP::Generator
std::optional< std::string > fextFile
Int_t firstEvent = 0
Double_t fMaxThetaX = 0
Double_t fMaxThetaY = 0
bool fUseVesselAcceptance = false
Int_t fnGeoRejects = 0
std::unordered_map< std::string, int64_t > fCounters

Private Member Functions

std::vector< double > Rotate (Double_t x, Double_t y, Double_t z, Double_t px, Double_t py, Double_t pz)

Additional Inherited Members

Protected Member Functions inherited from SHiP::Generator
bool IsInVesselAcceptance (Double_t px, Double_t py, Double_t pz) const

Detailed Description

Definition at line 20 of file GenieGenerator.h.

Constructor & Destructor Documentation

◆ GenieGenerator()

GenieGenerator::GenieGenerator ( )
default

default constructor

◆ ~GenieGenerator()

GenieGenerator::~GenieGenerator ( )
override

destructor

Definition at line 135 of file GenieGenerator.cxx.

135 {
136 if (fInputFile) {
137 fInputFile->Close();
138 fInputFile->Delete();
139 delete fInputFile;
140 }
141}

Member Function Documentation

◆ AddBox()

void GenieGenerator::AddBox ( const TVector3 & dVec,
const TVector3 & box )

Definition at line 143 of file GenieGenerator.cxx.

143 {
144 dVecs.push_back(dVec);
145 m_boxes.push_back(box);
146 cout << "Debug GenieGenerator: " << dVec.X() << " " << box.Z() << endl;
147}
std::vector< TVector3 > m_boxes
std::vector< TVector3 > dVecs

◆ GetNevents()

Int_t GenieGenerator::GetNevents ( )

Definition at line 372 of file GenieGenerator.cxx.

372{ return fNevents; }

◆ Init() [1/4]

Bool_t GenieGenerator::Init ( const char * fileName)
overridevirtual

Implements SHiP::Generator.

Definition at line 37 of file GenieGenerator.cxx.

37{ return Init(fileName, 0); }
Bool_t Init(const char *, int) override

◆ Init() [2/4]

Bool_t GenieGenerator::Init ( const char * fileName,
int startEvent )
overridevirtual

Implements SHiP::Generator.

Definition at line 39 of file GenieGenerator.cxx.

39 {
40 if (fGenOption != 0 && fGenOption != 3) {
41 LOG(fatal) << "Invalid GenieGen Option: " << fGenOption
42 << " Please check the option provided with --GenieOption "
43 << endl;
44 return kFALSE;
45 }
46 fNuOnly = false;
47 LOG(info) << "Opening input file " << fileName;
48 if (startEvent < 0) {
49 LOG(error) << "GenieGenerator: startEvent must be >= 0, got " << startEvent;
50 return kFALSE;
51 }
52 fInputFile = TFile::Open(fileName, "READ");
53 if (!fInputFile) {
54 LOG(error) << "GenieGenerator: error opening input file " << fileName;
55 delete fInputFile;
56 fInputFile = nullptr;
57 return kFALSE;
58 }
59 fTree = dynamic_cast<TTree*>(fInputFile->Get("gst"));
60 if (!fTree) {
61 LOG(error) << "GenieGenerator: cannot find tree gst in file " << fileName;
62 fInputFile->Close();
63 delete fInputFile;
64 fInputFile = nullptr;
65 return kFALSE;
66 }
67 fNevents = fTree->GetEntries();
68 if (startEvent >= fNevents) {
69 LOG(error) << "GenieGenerator: startEvent " << startEvent
70 << " is out of range for " << fNevents << " entries";
71 fInputFile->Close();
72 delete fInputFile;
73 fInputFile = nullptr;
74 fTree = nullptr;
75 return kFALSE;
76 }
77 fn = startEvent;
78 bool ok = true;
79 ok &= (fTree->SetBranchAddress("Ev", &Ev) >= 0);
80 ok &= (fTree->SetBranchAddress("pxv", &pxv) >= 0);
81 ok &= (fTree->SetBranchAddress("pyv", &pyv) >= 0);
82 ok &= (fTree->SetBranchAddress("pzv", &pzv) >= 0);
83 ok &= (fTree->SetBranchAddress("neu", &neu) >= 0);
84 ok &= (fTree->SetBranchAddress("cc", &cc) >= 0);
85 ok &= (fTree->SetBranchAddress("nuel", &nuel) >= 0);
86 ok &= (fTree->SetBranchAddress("vtxx", &vtxx) >= 0);
87 ok &= (fTree->SetBranchAddress("vtxy", &vtxy) >= 0);
88 ok &= (fTree->SetBranchAddress("vtxz", &vtxz) >= 0);
89 ok &= (fTree->SetBranchAddress("vtxt", &vtxt) >= 0);
90 ok &= (fTree->SetBranchAddress("El", &El) >= 0);
91 ok &= (fTree->SetBranchAddress("pxl", &pxl) >= 0);
92 ok &= (fTree->SetBranchAddress("pyl", &pyl) >= 0);
93 ok &= (fTree->SetBranchAddress("pzl", &pzl) >= 0);
94 ok &= (fTree->SetBranchAddress("Ef", &Ef) >= 0);
95 ok &= (fTree->SetBranchAddress("pxf", &pxf) >= 0);
96 ok &= (fTree->SetBranchAddress("pyf", &pyf) >= 0);
97 ok &= (fTree->SetBranchAddress("pzf", &pzf) >= 0);
98 ok &= (fTree->SetBranchAddress("nf", &nf) >= 0);
99 ok &= (fTree->SetBranchAddress("pdgf", &pdgf) >= 0);
100 if (!ok) {
101 LOG(error)
102 << "GenieGenerator: failed to bind one or more required branches";
103 fInputFile->Close();
104 delete fInputFile;
105 fInputFile = nullptr;
106 fTree = nullptr;
107 return kFALSE;
108 }
109 fFirst = kTRUE;
110 return kTRUE;
111}
Double_t pzf[500]
Int_t pdgf[500]
Double_t pxf[500]
Double_t pyf[500]
Double_t Ef[500]

◆ Init() [3/4]

virtual Bool_t SHiP::Generator::Init ( const std::vector< std::string > & inFiles)
inlinevirtual

public method ReadEvent

Reimplemented from SHiP::Generator.

Definition at line 33 of file Generator.h.

33 {
34 LOG(warning) << "Multiple input files not implemented for this generator "
35 "- only taking the first!";
36 return Init(inFiles.at(0).c_str(), 0);
37 };

◆ Init() [4/4]

virtual Bool_t SHiP::Generator::Init ( const std::vector< std::string > & inFiles,
int startNumber )
inlinevirtual

public method ReadEvent

Reimplemented from SHiP::Generator.

Definition at line 27 of file Generator.h.

28 {
29 LOG(warning) << "Multiple input files not implemented for this generator "
30 "- only taking the first!";
31 return Init(inFiles.at(0).c_str(), startNumber);
32 };

◆ NuOnly()

void GenieGenerator::NuOnly ( )
inline

Definition at line 36 of file GenieGenerator.h.

36{ fNuOnly = true; }

◆ ReadEvent()

Bool_t GenieGenerator::ReadEvent ( FairPrimaryGenerator * cpg)
override

Definition at line 196 of file GenieGenerator.cxx.

196 {
197 if (fGenOption == 3) return this->ReadEventGeometryDriver(cpg);
198 // Read simple event format from GENIE. Vertex positions need to be
199 // generated here
200 // some start/end positions in z (emulsion to Tracker 1)
201 Double_t start[3] = {0., 0., startZ};
202 Double_t end[3] = {0., 0., endZ};
203 char ts[20];
204 // cout << "Enter GenieGenerator " << endl;
205 // pick histogram: 1100=100 momentum bins, 1200=25 momentum bins.
206 Int_t idbase = 1200;
207 if (fFirst) {
208 Double_t bparam = 0.;
209 Double_t mparam[10];
210 bparam = shipgen::MeanMaterialBudget(start, end, mparam);
211 cout << "Info GenieGenerator: MaterialBudget " << start[2] << " - "
212 << end[2] << endl;
213 cout << "Info GenieGenerator: MaterialBudget " << bparam << endl;
214 cout << "Info GenieGenerator: MaterialBudget 0 " << mparam[0] << endl;
215 cout << "Info GenieGenerator: MaterialBudget 1 " << mparam[1] << endl;
216 cout << "Info GenieGenerator: MaterialBudget 2 " << mparam[2] << endl;
217 cout << "Info GenieGenerator: MaterialBudget 3 " << mparam[3] << endl;
218 cout << "Info GenieGenerator: MaterialBudget 4 " << mparam[4] << endl;
219 cout << "Info GenieGenerator: MaterialBudget 5 " << mparam[5] << endl;
220 cout << "Info GenieGenerator: MaterialBudget 6 " << mparam[6] << endl;
221 cout << "Info GenieGenerator: MaterialBudget " << mparam[0] * mparam[4]
222 << endl;
223 // read the (log10(p),log10(pt)) hists to be able to draw a pt for every
224 // neutrino momentum loop over neutrino types
225 printf("Reading (log10(p),log10(pt)) Hists from file: %s\n",
226 fInputFile->GetName());
227 for (Int_t idnu = 12; idnu < 17; idnu += 2) {
228 for (Int_t idadd = -1; idadd < 2; idadd += 2) {
229 Int_t idhnu = static_cast<int>(idbase + idnu);
230 if (idadd < 0) idhnu += 1000;
231 sprintf(ts, "%d", idhnu);
232 // pickup corresponding (log10(p),log10(pt)) histogram
233 if (fInputFile->FindObjectAny(ts)) {
234 TH2* h2tmp = dynamic_cast<TH2*>(fInputFile->Get(ts));
235 printf("HISTID=%d, Title:%s\n", idhnu, h2tmp->GetTitle());
236 sprintf(ts, "px_%d", idhnu);
237 // make its x-projection, to later be able to convert log10(p) to its
238 // bin-number
239 pxhist[idhnu] = h2tmp->ProjectionX(ts, 1, -1);
240 Int_t nbinx = h2tmp->GetNbinsX();
241 // printf("idhnu=%d ts=%s nbinx=%d\n",idhnu,ts,nbinx);
242 // project all slices on the y-axis
243 for (Int_t k = 1; k < nbinx + 1; k += 1) {
244 sprintf(ts, "h%d%d", idhnu, k);
245 // printf("idnu %d idhnu %d bin%d ts=%s\n",idnu,idhnu,k,ts);
246 pyslice[idhnu][k] = h2tmp->ProjectionY(ts, k, k);
247 }
248 }
249 }
250 }
251 fFirst = kFALSE;
252 }
253
254 if (fn == fNevents) {
255 LOG(warning) << "End of input file. Rewind.";
256 }
257 fTree->GetEntry(fn % fNevents);
258 fn++;
259 if (fn % 100 == 0) {
260 LOG(info) << "Info GenieGenerator: neutrino event-nr " << fn << endl;
261 }
262
263 // Incoming neutrino, get a random px,py
264 Double_t mparam[10];
265 Double_t pout[3] = {0., 0., -1.};
266 Double_t txnu = 0;
267 Double_t tynu = 0;
268 // Does this neutrino fly through material? Otherwise draw another pt..
269 while (pout[2] < 0.) {
270 // get pt of this neutrino from 2D hists.
271 Int_t idhnu = TMath::Abs(neu) + idbase;
272 if (neu < 0) idhnu += 1000;
273 Int_t nbinmx = pxhist[idhnu]->GetNbinsX();
274 Double_t pl10 = log10(pzv);
275 Int_t nbx = pxhist[idhnu]->FindBin(pl10);
276 if (nbx < 1) nbx = 1;
277 if (nbx > nbinmx) nbx = nbinmx;
278 Double_t ptlog10 = pyslice[idhnu][nbx]->GetRandom();
279 // hist was filled with: log10(pt+0.01)
280 Double_t pt = pow(10., ptlog10) - 0.01;
281 // rotate pt in phi:
282 Double_t phi = gRandom->Uniform(0., 2 * TMath::Pi());
283 pout[0] = cos(phi) * pt;
284 pout[1] = sin(phi) * pt;
285 pout[2] = pzv * pzv - pt * pt;
286
287 if (pout[2] >= 0.) {
288 pout[2] = TMath::Sqrt(pout[2]);
289 if (gRandom->Uniform(-1., 1.) < 0.) pout[0] = -pout[0];
290 if (gRandom->Uniform(-1., 1.) < 0.) pout[1] = -pout[1];
291 // xyz at start and end
292 start[0] = (pout[0] / pout[2]) * (start[2] - ztarget);
293 start[1] = (pout[1] / pout[2]) * (start[2] - ztarget);
294 txnu = pout[0] / pout[2];
295 tynu = pout[1] / pout[2];
296 end[0] = txnu * (end[2] - ztarget);
297 end[1] = tynu * (end[2] - ztarget);
298 shipgen::MeanMaterialBudget(start, end, mparam);
299 }
300 }
301 // loop over trajectory between start and end to pick an interaction point
302 Double_t prob2int = -1.;
303 Double_t x = 0.;
304 Double_t y = 0.;
305 Double_t z = 0.;
306 while (prob2int < gRandom->Uniform(0., 1.)) {
307 IncrementCounter("interaction_sampling_trials");
308 // place x,y,z uniform along path
309 z = gRandom->Uniform(start[2], end[2]);
310 x = txnu * (z - ztarget);
311 y = tynu * (z - ztarget);
312 if (mparam[6] < 0.5) {
313 // mparam is number of boundaries along path. mparam[6]=0.: uniform
314 // material budget along path, use present x,y,z
315 prob2int = 2.;
316 } else {
317 // get local material at this point, to calculate probability that
318 // interaction is at this point.
319 TGeoNode* node = gGeoManager->FindNode(x, y, z);
320 TGeoMaterial* mat = nullptr;
321 if (node && !gGeoManager->IsOutside()) {
322 mat = node->GetVolume()->GetMaterial();
323 // relative to Prob largest density along this trajectory, i.e. use
324 // rho(Pt)
325 prob2int = mat->GetDensity() / mparam[7];
326 if (prob2int > 1.)
327 LOG(warning) << " GenieGenerator: prob2int > Maximum density????"
328 << prob2int << " maxrho:" << mparam[7]
329 << " material: " << mat->GetName() << endl;
330 } else {
331 prob2int = 0.;
332 }
333 }
334 }
335
336 Double_t zrelative = z - ztarget;
337 Double_t tof = TMath::Sqrt(x * x + y * y + zrelative * zrelative) /
339 cpg->AddTrack(
340 neu, pout[0], pout[1], pout[2], x, y, z, -1, false,
341 TMath::Sqrt(pout[0] * pout[0] + pout[1] * pout[1] + pout[2] * pout[2]),
342 tof, mparam[0] * mparam[4]);
343 IncrementCounter("generated_events");
344 if (cc) IncrementCounter("cc_events");
345 if (nuel) IncrementCounter("nue_elastic_events");
346 if (!fNuOnly) {
347 // second, outgoing lepton
348 std::vector<double> pp = Rotate(x, y, zrelative, pxl, pyl, pzl);
349 Int_t oLPdgCode = neu;
350 if (cc) {
351 oLPdgCode = copysign(TMath::Abs(neu) - 1, neu);
352 }
353 if (nuel) {
354 oLPdgCode = 11;
355 }
356 cpg->AddTrack(oLPdgCode, pp[0], pp[1], pp[2], x, y, z, 0, true, El, tof,
357 mparam[0] * mparam[4]);
358 IncrementCounter("outgoing_leptons_stored");
359 // last, all others
360 for (int i = 0; i < nf; i++) {
361 pp = Rotate(x, y, zrelative, pxf[i], pyf[i], pzf[i]);
362 cpg->AddTrack(pdgf[i], pp[0], pp[1], pp[2], x, y, z, 0, true, Ef[i], tof,
363 mparam[0] * mparam[4]);
364 IncrementCounter("outgoing_hadrons_stored");
365 // cout << "f " << pdgf[i] << " pz "<< pzf[i] << endl;
366 }
367 // cout << "Info GenieGenerator Return from GenieGenerator" << endl;
368 }
369 return kTRUE;
370}
Bool_t ReadEventGeometryDriver(FairPrimaryGenerator *)
std::vector< double > Rotate(Double_t x, Double_t y, Double_t z, Double_t px, Double_t py, Double_t pz)
TH1D * pxhist[3000]
TH1D * pyslice[3000][100]
void IncrementCounter(const std::string &name, Long64_t delta=1)
Definition Generator.h:65
int i
Definition ShipAna.py:108
constexpr double c_light
Definition ShipUnit.h:44
constexpr double s
Definition ShipUnit.h:31
double MeanMaterialBudget(std::span< const double, 3 > start, std::span< const double, 3 > end, std::span< double, 10 > mparam)

◆ ReadEventGeometryDriver()

Bool_t GenieGenerator::ReadEventGeometryDriver ( FairPrimaryGenerator * cpg)

Definition at line 149 of file GenieGenerator.cxx.

149 {
150 // Use GENIE geometry driver.
151 // Get event from GENIE TTree. If we reach the end of the file, return
152 // false.
153 if (fTree->GetEntry(fn) == 0) return kFALSE;
154
155 if (fn % 100 == 0) {
156 cout << "Info GenieGenerator: neutrino event-nr " << fn << endl;
157 }
158
159 fn++;
160
161 // Add the neutrino to the MCTrack stack:
162 cpg->AddTrack(neu, // Neutrino PDG
163 pxv, pyv, pzv, // Neutrino momentum
164 vtxx * m, vtxy * m,
165 vtxz * m, // Event vertex [in cm!]
166 -1, // Parent
167 false); // Don't track this particle
168 IncrementCounter("generated_events");
169 if (cc) IncrementCounter("cc_events");
170 if (nuel) IncrementCounter("nue_elastic_events");
171 // Add the outgoing lepton and hadrons, if not in nu-only mode
172 if (!fNuOnly) {
173 // Add final state lepton to the MCTrack stack:
174 int outgoing_lepton_pdg = neu;
175 // CC: |lepton PDG| = |neutrino PDG| - 1, sign preserved
176 // (14 -> 13, -14 -> -13)
177 if (cc) outgoing_lepton_pdg = copysign(TMath::Abs(neu) - 1, neu);
178 if (nuel) outgoing_lepton_pdg = 11;
179
180 bool track_outgoing_lepton = (cc || nuel);
181 cpg->AddTrack(outgoing_lepton_pdg, pxl, pyl, pzl, vtxx * m, vtxy * m,
182 vtxz * m, 0, track_outgoing_lepton);
183 IncrementCounter("outgoing_leptons_stored");
184
185 // Add final state hadrons to the MCTrack stack
186 for (int i_hadron = 0; i_hadron < nf; i_hadron++) {
187 cpg->AddTrack(pdgf[i_hadron], pxf[i_hadron], pyf[i_hadron], pzf[i_hadron],
188 vtxx * m, vtxy * m, vtxz * m, 0, true);
189 IncrementCounter("outgoing_hadrons_stored");
190 }
191 }
192 return kTRUE;
193}
constexpr Double_t m

◆ Rotate()

std::vector< double > GenieGenerator::Rotate ( Double_t x,
Double_t y,
Double_t z,
Double_t px,
Double_t py,
Double_t pz )
private

Definition at line 113 of file GenieGenerator.cxx.

115 {
116 // rotate vector px,py,pz to point at x,y,z at origin.
117 Double_t theta = atan(sqrt(x * x + y * y) / z);
118 Double_t c = cos(theta);
119 Double_t s = sin(theta);
120 // rotate around y-axis
121 Double_t px1 = c * px + s * pz;
122 Double_t pzr = -s * px + c * pz;
123 Double_t phi = atan2(y, x);
124 c = cos(phi);
125 s = sin(phi);
126 // rotate around z-axis
127 Double_t pxr = c * px1 - s * py;
128 Double_t pyr = s * px1 + c * py;
129 // cout << "Info GenieGenerator: rotated" << pxr << " " << pyr << " "
130 // << pzr << " " << x << " " << y << " " << z <<endl;
131 return {pxr, pyr, pzr};
132}
c
Definition hnl.py:116

◆ SetGenerationOption()

void GenieGenerator::SetGenerationOption ( Int_t GenOption)
inline

Definition at line 34 of file GenieGenerator.h.

34{ fGenOption = GenOption; }

◆ SetPositions()

void GenieGenerator::SetPositions ( Double_t zTa,
Double_t zS = -3400.,
Double_t zE = 2650. )
inline

Definition at line 37 of file GenieGenerator.h.

37 {
38 ztarget = zTa;
39 startZ = zS;
40 endZ = zE;
41 }

Member Data Documentation

◆ cc

Bool_t GenieGenerator::cc
protected

Definition at line 56 of file GenieGenerator.h.

◆ dVecs

std::vector<TVector3> GenieGenerator::dVecs
protected

Definition at line 54 of file GenieGenerator.h.

◆ Ef

Double_t GenieGenerator::Ef[500]
protected

Definition at line 52 of file GenieGenerator.h.

◆ El

Double_t GenieGenerator::El
protected

Definition at line 51 of file GenieGenerator.h.

◆ endZ

Double_t GenieGenerator::endZ
protected

Definition at line 50 of file GenieGenerator.h.

◆ Ev

Double_t GenieGenerator::Ev
protected

Definition at line 51 of file GenieGenerator.h.

◆ fEntrA

Double_t GenieGenerator::fEntrA
protected

Definition at line 65 of file GenieGenerator.h.

◆ fEntrB

Double_t GenieGenerator::fEntrB
protected

Definition at line 66 of file GenieGenerator.h.

◆ fEntrDz_inner

Double_t GenieGenerator::fEntrDz_inner
protected

Definition at line 65 of file GenieGenerator.h.

◆ fEntrDz_outer

Double_t GenieGenerator::fEntrDz_outer
protected

Definition at line 65 of file GenieGenerator.h.

◆ fEntrZ_inner

Double_t GenieGenerator::fEntrZ_inner
protected

Definition at line 65 of file GenieGenerator.h.

◆ fEntrZ_outer

Double_t GenieGenerator::fEntrZ_outer
protected

Definition at line 65 of file GenieGenerator.h.

◆ fFirst

bool GenieGenerator::fFirst
protected

Definition at line 63 of file GenieGenerator.h.

◆ fGenOption

Int_t GenieGenerator::fGenOption = 0
protected

Definition at line 58 of file GenieGenerator.h.

◆ fInputFile

TFile* GenieGenerator::fInputFile
protected

Definition at line 59 of file GenieGenerator.h.

◆ fL1z

Double_t GenieGenerator::fL1z
protected

Definition at line 66 of file GenieGenerator.h.

◆ fn

int GenieGenerator::fn
protected

Definition at line 62 of file GenieGenerator.h.

◆ fNevents

int GenieGenerator::fNevents
protected

Definition at line 61 of file GenieGenerator.h.

◆ fNuOnly

bool GenieGenerator::fNuOnly
protected

Definition at line 63 of file GenieGenerator.h.

◆ fScintDz

Double_t GenieGenerator::fScintDz
protected

Definition at line 66 of file GenieGenerator.h.

◆ fTree

TTree* GenieGenerator::fTree
protected

Definition at line 60 of file GenieGenerator.h.

◆ fXnu11

Double_t GenieGenerator::fXnu11
protected

Definition at line 64 of file GenieGenerator.h.

◆ fYnu11

Double_t GenieGenerator::fYnu11
protected

Definition at line 64 of file GenieGenerator.h.

◆ fznu0

Double_t GenieGenerator::fznu0
protected

Definition at line 64 of file GenieGenerator.h.

◆ fznu11

Double_t GenieGenerator::fznu11
protected

Definition at line 64 of file GenieGenerator.h.

◆ Lvessel

Double_t GenieGenerator::Lvessel
protected

Definition at line 50 of file GenieGenerator.h.

◆ m_boxes

std::vector<TVector3> GenieGenerator::m_boxes
protected

Definition at line 55 of file GenieGenerator.h.

◆ neu

Int_t GenieGenerator::neu
protected

Definition at line 57 of file GenieGenerator.h.

◆ nf

Int_t GenieGenerator::nf
protected

Definition at line 57 of file GenieGenerator.h.

◆ nuel

Bool_t GenieGenerator::nuel
protected

Definition at line 56 of file GenieGenerator.h.

◆ pdgf

Int_t GenieGenerator::pdgf[500]
protected

Definition at line 53 of file GenieGenerator.h.

◆ pxf

Double_t GenieGenerator::pxf[500]
protected

Definition at line 52 of file GenieGenerator.h.

◆ pxhist

TH1D* GenieGenerator::pxhist[3000]
protected

Definition at line 67 of file GenieGenerator.h.

◆ pxl

Double_t GenieGenerator::pxl
protected

Definition at line 51 of file GenieGenerator.h.

◆ pxv

Double_t GenieGenerator::pxv
protected

Definition at line 51 of file GenieGenerator.h.

◆ pyf

Double_t GenieGenerator::pyf[500]
protected

Definition at line 52 of file GenieGenerator.h.

◆ pyl

Double_t GenieGenerator::pyl
protected

Definition at line 51 of file GenieGenerator.h.

◆ pyslice

TH1D* GenieGenerator::pyslice[3000][100]
protected

Definition at line 68 of file GenieGenerator.h.

◆ pyv

Double_t GenieGenerator::pyv
protected

Definition at line 51 of file GenieGenerator.h.

◆ pzf

Double_t GenieGenerator::pzf[500]
protected

Definition at line 52 of file GenieGenerator.h.

◆ pzl

Double_t GenieGenerator::pzl
protected

Definition at line 51 of file GenieGenerator.h.

◆ pzv

Double_t GenieGenerator::pzv
protected

Definition at line 51 of file GenieGenerator.h.

◆ startZ

Double_t GenieGenerator::startZ
protected

Definition at line 50 of file GenieGenerator.h.

◆ vtxt

Double_t GenieGenerator::vtxt
protected

Definition at line 51 of file GenieGenerator.h.

◆ vtxx

Double_t GenieGenerator::vtxx
protected

Definition at line 51 of file GenieGenerator.h.

◆ vtxy

Double_t GenieGenerator::vtxy
protected

Definition at line 51 of file GenieGenerator.h.

◆ vtxz

Double_t GenieGenerator::vtxz
protected

Definition at line 51 of file GenieGenerator.h.

◆ Xvessel

Double_t GenieGenerator::Xvessel
protected

Definition at line 50 of file GenieGenerator.h.

◆ Yvessel

Double_t GenieGenerator::Yvessel
protected

Definition at line 50 of file GenieGenerator.h.

◆ ztarget

Double_t GenieGenerator::ztarget
protected

Definition at line 50 of file GenieGenerator.h.


The documentation for this class was generated from the following files: