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

#include <FixedTargetGenerator.h>

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

Public Member Functions

 FixedTargetGenerator ()
 ~FixedTargetGenerator () override
Bool_t ReadEvent (FairPrimaryGenerator *) override
Bool_t Init (const char *inFile) override
Bool_t Init (const char *inFile, int startEvent) override
Bool_t Init () override
Bool_t InitForCharmOrBeauty (const TString &fInName, Int_t nev, Double_t npots=5E13, Int_t nStart=0)
void SetMom (Double_t mom)
void UseRandom1 ()
void UseRandom3 ()
void SetTarget (TString s, Double_t x, Double_t y)
void SetZoffset (Double_t z)
void SetXoffset (Double_t x)
void SetYoffset (Double_t y)
void SetSmearBeam (Double_t sb)
void SetPaintRadius (Double_t r)
void SetTargetCoordinates (Double_t start_z, Double_t end_z)
void SetBoost (Double_t f)
void SetG4only ()
void SetTauOnly ()
void SetJpsiMainly ()
void SetOnlyMuons ()
void SetDrellYan ()
void SetPhotonCollision ()
void WithEvtGen ()
void SetChibb (Double_t x)
void SetChicc (Double_t x)
void SetSeed (Double_t seed)
void SetHeartBeat (Int_t x)
void SetEnergyCut (Float_t emax)
void SetDebug (Bool_t x)
void SetPythiaTune (const TString &tune)
void SetOpt4DP (TNtuple *t)
Double_t GetPotForCharm ()
Pythia8::Pythia * GetPythia ()
Pythia8::Pythia * GetPythiaN ()
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 fMom
Bool_t fUseRandom1
Bool_t fUseRandom3
Double_t fSeed
Double_t EMax
Double_t fBoost
Double_t chicc
Double_t chibb
Double_t wspill
Double_t nrpotspill
Double_t pot
Int_t nEvents
Int_t nEntry
Int_t nDsprim
Int_t ntotprim
Bool_t tauOnly
Bool_t JpsiMainly
Bool_t DrellYan
Bool_t PhotonCollision
Bool_t G4only
Bool_t setByHand
Bool_t Debug
Bool_t withEvtGen
Bool_t OnlyMuons
FairLogger * fLogger
Pythia8::Pythia * fPythiaN
 don't make it persistent, magic ROOT command
Pythia8::Pythia * fPythiaP
Pythia8::EvtGenDecays * evtgenN
Pythia8::EvtGenDecays * evtgenP
Bool_t withNtuple
TNtuple * fNtuple
 special option for Dark Photon physics studies
TString targetName
TString Option
TString fTune
Double_t xOff
Double_t yOff
Double_t zOff
Double_t fsmearBeam
Double_t fPaintBeam
Double_t start [3]
Double_t end [3]
Double_t bparam
Double_t mparam [10]
Double_t startZ
Double_t endZ
Bool_t targetFromGeometry
Double_t maxCrossSection
TFile * fin
TNtuple * nTree
Float_t n_id
Float_t n_px
Float_t n_py
Float_t n_pz
Float_t n_M
Float_t n_E
Float_t n_mpx
Float_t n_mpy
Float_t n_mpz
Float_t n_mE
Float_t n_mid
Float_t ck
Float_t n_hadrons
Bool_t hasHadronCount = kFALSE
Int_t heartbeat
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 Attributes

std::shared_ptr< Pythia8::RndmEngine > fRandomEngine

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 23 of file FixedTargetGenerator.h.

Constructor & Destructor Documentation

◆ FixedTargetGenerator()

FixedTargetGenerator::FixedTargetGenerator ( )

default constructor

Definition at line 67 of file FixedTargetGenerator.cxx.

67 {
68 fUseRandom1 = kFALSE;
69 fUseRandom3 = kTRUE;
70 fSeed = 0;
71 fMom = 400; // proton
72 fLogger = FairLogger::GetLogger();
73 targetName = "cave_1/target_vacuum_box_1/TargetArea_1/HeVolume_1";
74 xOff = 0;
75 yOff = 0;
76 zOff = 0;
77 fsmearBeam = 8 * mm; // default value for smearing beam (8 mm)
78 fPaintBeam = 5 * cm; // default value for painting beam (5 cm)
79 tauOnly = false;
80 JpsiMainly = false;
81 DrellYan = false;
82 PhotonCollision = false;
83 G4only = false;
84 OnlyMuons = false;
85 maxCrossSection = 0.;
86 EMax = 0;
87 fBoost = 1.;
88 withEvtGen = kFALSE;
89 withNtuple = kFALSE;
90 chicc = 1.7e-3; // prob to produce primary ccbar pair/pot on Mo
91 // (cf. python/heavyFlavourScaling.py)
92 chibb = 1.6e-7; // prob to produce primary bbbar pair/pot on Mo
93 nrpotspill = 5.E13; // nr of protons / spill
94 setByHand = kFALSE;
95 Debug = kFALSE;
96 targetFromGeometry = kFALSE;
97 Option = "Primary";
98 wspill = 1.; // event weight == 1 for primary events
99 heartbeat = 1000;
100}
constexpr Double_t cm
constexpr double mm
Definition ShipUnit.h:25

◆ ~FixedTargetGenerator()

FixedTargetGenerator::~FixedTargetGenerator ( )
overridedefault

destructor

Member Function Documentation

◆ GetPotForCharm()

Double_t FixedTargetGenerator::GetPotForCharm ( )
inline

Definition at line 108 of file FixedTargetGenerator.h.

108{ return nrpotspill / wspill; }

◆ GetPythia()

Pythia8::Pythia * FixedTargetGenerator::GetPythia ( )
inline

Definition at line 109 of file FixedTargetGenerator.h.

109{ return fPythiaP; }

◆ GetPythiaN()

Pythia8::Pythia * FixedTargetGenerator::GetPythiaN ( )
inline

Definition at line 110 of file FixedTargetGenerator.h.

110{ return fPythiaN; }
Pythia8::Pythia * fPythiaN
don't make it persistent, magic ROOT command

◆ Init() [1/5]

Bool_t FixedTargetGenerator::Init ( )
override

Definition at line 261 of file FixedTargetGenerator.cxx.

261 {
262 fPythiaP =
263 new Pythia8::Pythia(); // pythia needed also for G4only, to copy 2mu BRs
264 if (Option == "Primary" && !G4only) {
265 fPythiaN = new Pythia8::Pythia();
266 } else if (Option != "charm" && Option != "beauty" && !G4only) {
267 LOG(error) << "Option not known " << Option.Data() << ", abort";
268 return kFALSE;
269 }
270 if (fUseRandom1) fRandomEngine = std::make_shared<PyTr1Rng>();
271 if (fUseRandom3) fRandomEngine = std::make_shared<PyTr3Rng>();
272 std::vector<int> r = {221, 221, 223, 223, 113, 331, 333};
273 std::vector<int> c = {6, 7, 5, 7, 5, 6, 9}; // decay channel mumu mumuX
274
275 // FTFT tune (arXiv:2608.29076), shared with makeCascadePythia8.py
276 TString ftftTuneFile = getenv("FAIRSHIP");
277 ftftTuneFile += "/gconfig/FTFT.cmnd";
278 if (!fTune.IsNull() && fTune != "FTFT") {
279 LOG(fatal)
280 << "FixedTargetGenerator: unknown Pythia8 tune " << fTune.Data()
281 << ", choices are FTFT, default or empty for the Pythia8 default";
282 }
283 if (fTune == "FTFT" && (Option != "Primary" || G4only)) {
284 LOG(warning) << "FixedTargetGenerator: Pythia8 tune " << fTune.Data()
285 << " has no effect without Pythia8 primary interactions";
286 }
287
288 if (Option == "Primary" && !G4only) {
289 fPythiaP->settings.mode("Beams:idB", 2212);
290 fPythiaN->settings.mode("Beams:idB", 2112);
291 } else {
292 fPythiaP->readString("ProcessLevel:all = off");
293 }
294 std::array<Pythia8::Pythia*, 2> plist = {fPythiaP, fPythiaN};
295 Int_t pcount = 0;
296 for (const auto& fPythia : plist) {
297 if (pcount > 0 && (Option != "Primary" || G4only)) {
298 continue;
299 }
300 pcount += 1;
301 fPythia->setRndmEnginePtr(fRandomEngine);
302 fPythia->settings.mode("Random:seed", fSeed);
303 fPythia->settings.mode("Next:numberCount", heartbeat);
304 if (Option == "Primary") {
305 fPythia->settings.mode("Beams:idA", 2212);
306 fPythia->settings.mode("Beams:frameType", 2);
307 fPythia->settings.parm("Beams:eA", fMom); // codespell:ignore parm
308 fPythia->settings.parm("Beams:eB", 0.); // codespell:ignore parm
309 // apply the tune before the process settings below, which Tune:pp
310 // would otherwise reset
311 if (fTune == "FTFT" && !G4only) {
312 if (!fPythia->readFile(ftftTuneFile.Data())) {
313 LOG(fatal) << "FixedTargetGenerator: Pythia8 could not read tune "
314 << "settings from " << ftftTuneFile.Data();
315 }
316 LOG(info) << "FixedTargetGenerator: using Pythia8 tune "
317 << fTune.Data();
318 }
319 }
320 if (JpsiMainly) {
321 // use this for all onia productions
322 fPythia->readString("Onia:all(3S1) = on");
323 fPythia->readString(
324 "443:new J/psi J/psi 3 0 0 3.09692 0.00009 3.09602 "
325 " 3.09782 0. 1 1 0 1 0");
326 fPythia->readString("443:addChannel = 1 1. 0 -13 13");
327 fPythia->readString(
328 "553:new Upsilon Upsilon 3 0 0 9.46030 0.00005 "
329 "9.45980 9.46080 0.00000e+00 0 1 0 1 0");
330 fPythia->readString("553:addChannel = 1 1. 0 -13 13");
331 }
332 if (DrellYan) {
333 fPythia->readString("WeakSingleBoson:ffbar2gmZ = on");
334 // Z0/gamma -> mu+ mu-
335 fPythia->readString("23:onMode = off");
336 fPythia->readString("23:onIfAll = 13 13");
337 fPythia->readString("23:mMin = 0.5");
338 fPythia->readString("PhaseSpace:mHatMin = 0.5");
339 fPythia->readString("PartonLevel:FSR = on");
340 fPythia->readString("PDF:pSet = 4");
341 }
342 if (PhotonCollision) {
343 fPythia->readString("PhotonCollision:gmgm2mumu = on");
344 }
345 if (!DrellYan && !PhotonCollision) {
346 fPythia->readString("SoftQCD:inelastic = on");
347 fPythia->readString("PhotonCollision:gmgm2mumu = on");
348 fPythia->readString("PromptPhoton:all = on");
349 fPythia->readString("WeakBosonExchange:all = on");
350 fPythia->readString("WeakSingleBoson:all = on");
351 }
352 if (tauOnly) {
353 fPythia->readString(
354 "431:new D_s+ D_s- 1 3 0 1.96849 0.00000 0.00000 "
355 "0.00000 1.49900e-01 0 1 0 1 0");
356 fPythia->readString(
357 "431:addChannel = 1 0.0640000 0 -15 16");
358 }
359
360 // D_s -> tau nu_tau: Pythia8 has 6.4%, set the world average and rescale
361 // the other channels, since it sets the tau neutrino yield
362 SetDsToTauNuBR(fPythia, kDsToTauNuBR);
363 // find all long lived particles in pythia
364 Int_t n = 1;
365 while (n != 0) {
366 n = fPythia->particleData.nextId(n);
367 std::shared_ptr<Pythia8::ParticleDataEntry> p =
368 fPythia->particleData.particleDataEntryPtr(n);
369 if (p->tau0() > 1) {
370 std::string particle = std::to_string(n) + ":mayDecay = false";
371 fPythia->readString(particle);
372 LOG(info) << "Made " << p->name().c_str()
373 << " stable for Pythia, should decay in Geant4";
374 }
375 }
376 // boost branching fraction of rare di-muon decays
377 // eta omega rho0 eta' phi
378 if (fBoost != 1.) {
379 LOG(info) << "Rescale BRs of dimuon decays in Pythia: " << fBoost;
380 for (unsigned int i = 0; i < r.size(); ++i) {
381 std::shared_ptr<Pythia8::ParticleDataEntry> V =
382 fPythia->particleData.particleDataEntryPtr(r[i]);
383 Pythia8::DecayChannel ch = V->channel(c[i]);
384 if (TMath::Abs(ch.product(0)) != 13 ||
385 TMath::Abs(ch.product(1)) != 13) {
386 LOG(info) << "this is not the right decay channel: " << r[i] << " "
387 << c[i];
388 } else {
389 TString tmp = "";
390 tmp += r[i];
391 tmp += ":";
392 tmp += c[i];
393 tmp += ":bRatio =";
394 tmp += fBoost * ch.bRatio();
395 fPythia->readString(tmp.Data());
396 }
397 }
398 }
399 fPythia->init();
400 }
401 // Initialize EvtGen.
402 if (withEvtGen) {
403 // Use EVTGENDATA environment variable to find EvtGen data files
404 const char* evtgendata = getenv("EVTGENDATA");
405 if (!evtgendata) {
406 LOG(fatal) << "EVTGENDATA environment variable not set";
407 }
408 TString DecayFile = TString(evtgendata) + "/DECAY.DEC";
409
410 TString ParticleFile = TString(evtgendata) + "/evt.pdl";
411 std::cout << "Using $EVTGENDATA " << evtgendata << std::endl;
412 EvtExternalGenList* extPtr = new EvtExternalGenList();
413 std::list<EvtDecayBase*> models = extPtr->getListOfModels();
414 TString UdecayFile = getenv("FAIRSHIP");
415 UdecayFile += "/gconfig/USERDECAY.DEC";
416 evtgenP = new Pythia8::EvtGenDecays(fPythiaP, DecayFile.Data(),
417 ParticleFile.Data(), extPtr);
418 evtgenP->readDecayFile(
419 UdecayFile.Data()); // will make update of EvtGen with user decay file
420 // use one instance of EvtGen, requires patch to Pythia8Plugins/EvtGen.h
421 if (Option == "Primary") {
422 evtgenN =
423 new Pythia8::EvtGenDecays(fPythiaN, DecayFile.Data(), "", extPtr);
424 }
425 }
426 if (targetFromGeometry) {
427 // Use geometry-based coordinates passed from run_simScript.py
428 start[0] = xOff;
429 start[1] = yOff;
430 start[2] = startZ + zOff;
431 end[0] = xOff;
432 end[1] = yOff;
433 end[2] = endZ;
434 LOG(info) << "FixedTargetGenerator: Using geometry-based target "
435 "coordinates startZ="
436 << startZ << " endZ=" << endZ;
437 // find maximum interaction length
440 } else if (targetName != "") {
441 // Fallback to fragile TGeo navigation for backward compatibility
442 TGeoNavigator* nav = gGeoManager->GetCurrentNavigator();
443 if (nav->CheckPath(targetName)) {
444 nav->cd(targetName);
445 } else {
446 LOG(fatal) << "Invalid target volume specified";
447 }
448 TGeoNode* target = nav->GetCurrentNode();
449 TObjArray* nodes = target->GetVolume()->GetNodes();
450 // Get the first and last node of the target to calculate the material seen
451 TGeoNode* first = static_cast<TGeoNode*>(nodes->At(0));
452 TGeoNode* last = static_cast<TGeoNode*>(nodes->At(nodes->GetLast()));
453 nav->cd(targetName + "/" + first->GetName());
454 TGeoBBox* sha = static_cast<TGeoBBox*>(first->GetVolume()->GetShape());
455 Double_t dz = sha->GetDZ();
456 Double_t origin[3] = {0, 0, -dz};
457 Double_t master[3] = {0, 0, 0};
458 nav->LocalToMaster(origin, master);
459 startZ = master[2];
460 nav->cd(targetName + "/" + last->GetName());
461 sha = static_cast<TGeoBBox*>(last->GetVolume()->GetShape());
462 dz = sha->GetDZ();
463 origin[2] = +dz;
464 nav->LocalToMaster(origin, master);
465 endZ = master[2];
466 start[0] = xOff;
467 start[1] = yOff;
468 start[2] = startZ + zOff;
469 end[0] = xOff;
470 end[1] = yOff;
471 end[2] = endZ;
472 // find maximum interaction length
475 } else {
476 LOG(fatal) << "No target set.";
477 }
478
479 return kTRUE;
480}
Pythia8::EvtGenDecays * evtgenN
Pythia8::EvtGenDecays * evtgenP
std::shared_ptr< Pythia8::RndmEngine > fRandomEngine
int i
Definition ShipAna.py:108
origin(sTree, it)
c
Definition hnl.py:116
double MeanMaterialBudget(std::span< const double, 3 > start, std::span< const double, 3 > end, std::span< double, 10 > mparam)

◆ Init() [2/5]

Bool_t FixedTargetGenerator::Init ( const char * inFile)
inlineoverridevirtual

Implements SHiP::Generator.

Definition at line 33 of file FixedTargetGenerator.h.

33{ return Init(inFile, 0); };

◆ Init() [3/5]

Bool_t FixedTargetGenerator::Init ( const char * inFile,
int startEvent )
inlineoverridevirtual

Implements SHiP::Generator.

Definition at line 35 of file FixedTargetGenerator.h.

35 {
36 LOG(warning) << "Init with files not implemented for FixedTargetGenerator. "
37 "Using default Init() instead";
38 return Init();
39 };

◆ Init() [4/5]

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

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() [5/5]

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

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 };

◆ InitForCharmOrBeauty()

Bool_t FixedTargetGenerator::InitForCharmOrBeauty ( const TString & fInName,
Int_t nev,
Double_t npots = 5E13,
Int_t nStart = 0 )

Definition at line 101 of file FixedTargetGenerator.cxx.

103 {
104 Option = "charm";
105 nEntry = nStart;
106 // open input file with charm or beauty
107 if (nStart < 0) {
108 LOG(error) << "FixedTargetGenerator: startEvent must be >= 0, got "
109 << nStart;
110 return kFALSE;
111 }
112 fin = TFile::Open(fInName, "READ");
113 if (!fin) {
114 LOG(error) << "FixedTargetGenerator: could not open input file "
115 << fInName.Data();
116 delete fin;
117 fin = nullptr;
118 return kFALSE;
119 }
120 nTree = dynamic_cast<TNtuple*>(
121 fin->FindObjectAny("pythia6")); // old format, simple ntuple
122 if (!nTree) {
123 LOG(error) << "FixedTargetGenerator: cannot find tree pythia6 in file "
124 << fInName.Data();
125 fin->Close();
126 delete fin;
127 fin = nullptr;
128 return kFALSE;
129 }
130 nEvents = nTree->GetEntries();
131 if (nStart >= nEvents) {
132 LOG(error) << "FixedTargetGenerator: startEvent " << nStart
133 << " is out of range for " << nEvents << " entries";
134 fin->Close();
135 delete fin;
136 fin = nullptr;
137 nTree = nullptr;
138 return kFALSE;
139 }
140 bool ok = true;
141 ok &= (nTree->SetBranchAddress("id", &n_id) >= 0);
142 ok &= (nTree->SetBranchAddress("px", &n_px) >= 0);
143 ok &= (nTree->SetBranchAddress("py", &n_py) >= 0);
144 ok &= (nTree->SetBranchAddress("pz", &n_pz) >= 0);
145 ok &= (nTree->SetBranchAddress("M", &n_M) >= 0);
146 ok &= (nTree->SetBranchAddress("E", &n_E) >= 0);
147 ok &= (nTree->SetBranchAddress("mid", &n_mid) >= 0);
148 ok &= (nTree->SetBranchAddress("mpx", &n_mpx) >= 0);
149 ok &= (nTree->SetBranchAddress("mpy", &n_mpy) >= 0);
150 ok &= (nTree->SetBranchAddress("mpz", &n_mpz) >= 0);
151 ok &= (nTree->SetBranchAddress("mE", &n_mE) >= 0);
152 if (!ok) {
153 LOG(error)
154 << "FixedTargetGenerator: failed to bind one or more required branches";
155 fin->Close();
156 delete fin;
157 fin = nullptr;
158 nTree = nullptr;
159 return kFALSE;
160 }
161 if (nTree->GetBranch("k")) {
162 LOG(info) << "+++has branch+++";
163 nTree->SetBranchAddress("k", &ck);
164 }
165 hasHadronCount = nTree->GetBranch("n_hadrons") && nTree->GetBranch("k");
166 if (hasHadronCount) {
167 nTree->SetBranchAddress("n_hadrons", &n_hadrons);
168 }
169 // check if we deal with charm or beauty:
170 nTree->GetEvent(0);
171 if (!setByHand && n_M > 5) {
172 chicc = chibb;
173 LOG(info) << "automatic detection of beauty, configured for beauty";
174 LOG(info) << "bb cross section / mbias " << chicc;
175 } else {
176 LOG(info) << "cc cross section / mbias " << chicc;
177 }
178 // convert pot to weight corresponding to one spill of 5e13 pot
179 // get histogram with number of pot to normalise
180 // pot are counted double, i.e. for each signal, i.e. pot/2.
181 // not TH1F: rootUtils, used by makeCascade.py, books a TH1D
182 auto* potHist = dynamic_cast<TH1*>(fin->Get("2"));
183 if (!potHist) {
184 LOG(error) << "FixedTargetGenerator: histogram '2' not found in input file";
185 fin->Close();
186 delete fin;
187 fin = nullptr;
188 nTree = nullptr;
189 return kFALSE;
190 }
191 // number of primary interactions and of events on the file. Without the
192 // hadron count every event is a pair of entries.
193 Double_t nrcpot = std::floor(potHist->GetBinContent(1) / 2.);
194 Double_t nInputEvents = nEvents / 2.;
195 if (hasHadronCount) {
196 // count the events and the primary (depth 1) ones, and move the start to
197 // the first entry of an event
198 nTree->SetBranchStatus("*", 0);
199 nTree->SetBranchStatus("n_hadrons", 1);
200 nTree->SetBranchStatus("k", 1);
201 nrcpot = 0.;
202 nInputEvents = 0.;
203 Int_t firstEntry = nEvents;
204 for (Int_t i = 0; i < nEvents;) {
205 nTree->GetEntry(i);
206 if (firstEntry == nEvents && i >= nStart) {
207 firstEntry = i;
208 }
209 nInputEvents += 1.;
210 if (ck < 1.5) {
211 nrcpot += 1.;
212 }
213 i += std::max(1, static_cast<Int_t>(TMath::Nint(n_hadrons)));
214 }
215 nTree->SetBranchStatus("*", 1);
216 if (firstEntry == nEvents) {
217 LOG(error) << "FixedTargetGenerator: no event starts at or after entry "
218 << nStart;
219 fin->Close();
220 delete fin;
221 fin = nullptr;
222 nTree = nullptr;
223 return kFALSE;
224 }
225 if (firstEntry != nStart) {
226 LOG(info) << "start entry " << nStart
227 << " is inside an event, starting at entry " << firstEntry;
228 }
229 nEntry = firstEntry;
230 } else if (nStart % 2 != 0) {
231 // events are pairs of entries, so an odd start entry is the second hadron
232 // of an event: start at the next event instead of pairing hadrons from
233 // two different events
234 if (nStart + 1 >= nEvents) {
235 LOG(error) << "FixedTargetGenerator: no event starts at or after entry "
236 << nStart;
237 fin->Close();
238 delete fin;
239 fin = nullptr;
240 nTree = nullptr;
241 return kFALSE;
242 }
243 LOG(info) << "start entry " << nStart
244 << " is inside an event, starting at entry " << nStart + 1;
245 nEntry = nStart + 1;
246 }
247 wspill = nrpotspill * chicc / nrcpot * nInputEvents / nev;
248 LOG(info) << "Input file: " << fInName.Data() << " with " << nEvents
249 << " entries, corresponding to nr-pot=" << (nrcpot / chicc);
250 LOG(info) << "weight " << wspill << " corresponding to " << nrpotspill
251 << " p.o.t. per spill for " << nev << " events to process";
252
253 pot = 0.;
254 // Determine fDs on this file for primaries
255 nDsprim = 0;
256 ntotprim = 0;
257
258 return kTRUE;
259}
dict nrcpot
Definition makeDecay.py:79

◆ ReadEvent()

Bool_t FixedTargetGenerator::ReadEvent ( FairPrimaryGenerator * cpg)
override

public method ReadEvent

Definition at line 488 of file FixedTargetGenerator.cxx.

488 {
489 // Calculate beam smearing and painting
491
492 if (G4only) {
493 // Geant4 determines the primary interaction point, so skip the expensive
494 // interaction-point sampling below (it would only be discarded).
495 IncrementCounter("generated_events");
496 IncrementCounter("g4only_events");
497 IncrementCounter("stored_tracks");
498 cpg->AddTrack(2212, 0., 0., fMom, (xOff + dx) / cm, (yOff + dy) / cm,
499 start[2], -1, kTRUE, -1., 0., 1.);
500 return kTRUE;
501 }
502
503 // Cascade input: read the first hadron of the event before placing it,
504 // since its cascade depth sets how far into the target it is produced.
505 Int_t nInteractions = 1;
506 if (Option != "Primary") {
507 if (nEntry == nEvents) {
508 LOG(info) << "Rewind input file: " << nEntry;
509 nEntry = 0;
510 }
511 nTree->GetEvent(nEntry);
512 nEntry += 1;
513 if (nTree->GetBranch("k")) {
514 nInteractions = std::max(1, static_cast<Int_t>(TMath::Nint(ck)));
515 }
516 }
517
518 Double_t zinter = 0;
519 Double_t ZoverA = 1.;
520 if (!targetName.IsNull()) {
521 // Interaction point, sampled along the beam line from the interaction
522 // probability in the material (copied from GenieGenerator and adapted to
523 // hadrons). A hadron from cascade depth k is produced in the k-th
524 // interaction: each further interaction point is sampled from the material
525 // after the previous one.
526 constexpr int kMaxTries = 100000;
527 Double_t sigma;
528 Double_t zinterStart = start[2];
529 for (Int_t iInter = 0; iInter < nInteractions; ++iInter) {
530 const Double_t from[3] = {start[0], start[1], zinterStart};
531 Double_t prob2int = -1.;
532 Double_t rndm = 0.;
533 Double_t zTry = zinterStart;
534 int tries = 0;
535 while (prob2int < rndm && tries < kMaxTries) {
536 ++tries;
537 // place x,y,z uniform along path
538 zTry = gRandom->Uniform(zinterStart, end[2]);
539 Double_t point[3] = {xOff, yOff, zTry};
541 Double_t interLength = mparam[8];
542 TGeoNode* node = gGeoManager->FindNode(point[0], point[1], point[2]);
543 TGeoMaterial* mat = nullptr;
544 if (node && !gGeoManager->IsOutside()) {
545 mat = node->GetVolume()->GetMaterial();
546 ZoverA = mat->GetZ() / mat->GetA();
548 prob2int = TMath::Exp(-interLength) * sigma / maxCrossSection;
549 } else {
550 prob2int = 0.;
551 }
552 rndm = gRandom->Uniform(0., 1.);
553 }
554 if (prob2int < rndm) {
555 // no material left downstream: keep the previous interaction point
556 break;
557 }
558 zinter = zTry;
559 zinterStart = zinter;
560 }
561 zinter = zinter * cm;
562 }
563 Pythia8::Pythia* fPythia;
564 if (Option == "Primary") {
565 constexpr int kMaxPythiaRetries = 100;
566 if (gRandom->Uniform(0., 1.) < ZoverA) {
567 int retries = 0;
568 while (!fPythiaP->next()) {
569 if (++retries >= kMaxPythiaRetries) {
570 LOG(error) << "PythiaP failed to generate an event after "
571 << kMaxPythiaRetries << " retries";
572 return kFALSE;
573 }
574 LOG(warning) << "PythiaP failed to generate event, retry " << retries;
575 }
576 if (withEvtGen) {
577 evtgenP->decay();
578 }
579 fPythia = fPythiaP;
580 } else {
581 int retries = 0;
582 while (!fPythiaN->next()) {
583 if (++retries >= kMaxPythiaRetries) {
584 LOG(error) << "PythiaN failed to generate an event after "
585 << kMaxPythiaRetries << " retries";
586 return kFALSE;
587 }
588 LOG(warning) << "PythiaN failed to generate event, retry " << retries;
589 }
590 if (withEvtGen) {
591 evtgenN->decay();
592 }
593 fPythia = fPythiaN;
594 }
595 } else {
596 // the first hadron of the event was read above; reject an event that the
597 // input file cuts short before using any of it
598 const Int_t nHadrons =
599 hasHadronCount ? static_cast<Int_t>(TMath::Nint(n_hadrons)) : 2;
600 if (nEntry + nHadrons - 1 > nEvents) {
601 LOG(error) << "FixedTargetGenerator: input ends inside an event";
602 return kFALSE;
603 }
604 IncrementCounter("charm_input_pairs");
605 // primary: produced by the beam proton, cascade depth 1. Files without
606 // the depth branch tag the beam proton by its zero transverse momentum,
607 // which misses beam protons that scattered elastically before.
608 const Bool_t isPrimary =
609 nTree->GetBranch("k")
610 ? ck < 1.5
611 : n_mid == 2212 && (n_mpx * n_mpx + n_mpy * n_mpy) < 1E-5;
612 // sanity check, count number of p.o.t. on input file.
613 // every event appears twice, i.e.
614 if (isPrimary) {
615 pot += 0.5;
616 ntotprim += 1;
617 }
618 Int_t idabs = static_cast<int>(TMath::Abs(n_id));
619 if (idabs == 431) {
620 nDsprim += 1;
621 }
622 fPythiaP->event.reset();
623 Int_t nID1 = n_id;
624 fPythiaP->event.append(static_cast<int>(n_id), 1, 0, 0, n_px, n_py, n_pz,
625 n_E, n_M, 0., 9.);
626 TMCProcess procID = kPTransportation;
627 if (isPrimary) {
628 procID = kPPrimary;
629 }
630 cpg->AddTrack(static_cast<int>(n_mid), n_mpx, n_mpy, n_mpz,
631 (xOff + dx) * cm, (yOff + dy) * cm, zinter * cm, -1, kFALSE,
632 n_mE, 0., wspill, procID);
633 IncrementCounter("stored_tracks");
634 // the other heavy-flavour hadrons of the event
635 for (Int_t iHadron = 1; iHadron < nHadrons; ++iHadron) {
636 nTree->GetEvent(nEntry);
637 if (nHadrons == 2 && nID1 * n_id > 0) {
638 LOG(info) << "same sign charm: " << nEntry << ", " << nID1 << ", "
639 << n_id;
640 }
641 nEntry += 1;
642 fPythiaP->event.append(static_cast<int>(n_id), 1, 0, 0, n_px, n_py, n_pz,
643 n_E, n_M, 0., 9.);
644 }
645 fPythiaP->next();
646 fPythia = fPythiaP;
647 }
648 if (withEvtGen) {
649 fPythia->moreDecays();
650 } // let the very short lived resonances decay via Pythia8
651 if (Debug) {
652 fPythia->event.list();
653 }
654 TMCProcess procID;
655 for (Int_t ii = 1; ii < fPythia->event.size(); ii++) {
656 Double_t e = fPythia->event[ii].e();
657 Double_t m = fPythia->event[ii].m();
658 Double_t pz = fPythia->event[ii].pz();
659 Int_t id = fPythia->event[ii].id();
660 Bool_t wanttracking = kTRUE;
661 if (e - m < EMax || !fPythia->event[ii].isFinal() || pz < 0) {
662 wanttracking = kFALSE;
663 }
665 // don't track underlying event
666 if (fabs(id) != 13) {
667 wanttracking = kFALSE;
668 }
669 }
670 Double_t z = fPythia->event[ii].zProd() * mm + zinter * cm;
671 Double_t x = fPythia->event[ii].xProd() * mm + xOff * cm + dx * cm;
672 Double_t y = fPythia->event[ii].yProd() * mm + yOff * cm + dy * cm;
673 Double_t tof = PythiaTimeToS(fPythia->event[ii].tProd());
674 Double_t px = fPythia->event[ii].px();
675 Double_t py = fPythia->event[ii].py();
676 Int_t im = fPythia->event[ii].mother1() - 1;
677 procID = kPPrimary;
678 if (Option != "Primary") {
679 procID = kPDecay;
680 im += 1;
681 if (ii == 1) {
682 procID = kPHadronic;
683 }
684 } else {
685 if (ii < 3) {
686 im = -1;
687 }
688 }
689 IncrementCounter("stored_tracks");
690 if (wanttracking) {
691 IncrementCounter("tracked_final_state_particles");
692 } else {
693 IncrementCounter("skipped_final_state_particles");
694 }
695 cpg->AddTrack(id, px, py, pz, x * cm, y * cm, z * cm, im, wanttracking, e,
696 tof, wspill, procID);
697 if (withNtuple) {
698 int idabs = TMath::Abs(id);
699 if (idabs < 10) {
700 continue;
701 }
702 if (idabs < 18 || idabs == 22 || idabs == 111 || idabs == 221 ||
703 idabs == 223 || idabs == 331 || idabs == 211 || idabs == 113 ||
704 idabs == 333 || idabs == 321 || idabs == 2212) {
705 Int_t moID = fPythia->event[im + 1].id();
706 fNtuple->Fill(0, id, px, py, pz, e, x * cm, y * cm, z * cm, moID);
707 }
708 }
709 }
710 IncrementCounter("generated_events");
711 return kTRUE;
712}
std::pair< Double_t, Double_t > CalculateBeamOffset(Double_t smearBeam, Double_t paintBeam)
constexpr double PythiaTimeToS(double t)
A Pythia8 time (mm/c) in VMC units (s).
Definition PythiaUnits.h:20
constexpr Double_t m
TNtuple * fNtuple
special option for Dark Photon physics studies
void IncrementCounter(const std::string &name, Long64_t delta=1)
Definition Generator.h:65
double NuclearCrossSection_mbarn(const TGeoMaterial &material)

◆ SetBoost()

void FixedTargetGenerator::SetBoost ( Double_t f)
inline

Definition at line 70 of file FixedTargetGenerator.h.

70 {
71 fBoost = f;
72 } // boost factor for rare di-muon decays

◆ SetChibb()

void FixedTargetGenerator::SetChibb ( Double_t x)
inline

Definition at line 87 of file FixedTargetGenerator.h.

87 {
88 chibb = x;
89 } // chibb = bbbar over mbias cross section

◆ SetChicc()

void FixedTargetGenerator::SetChicc ( Double_t x)
inline

Definition at line 90 of file FixedTargetGenerator.h.

90 {
91 chicc = x;
92 } // chicc = ccbar over mbias cross section

◆ SetDebug()

void FixedTargetGenerator::SetDebug ( Bool_t x)
inline

Definition at line 98 of file FixedTargetGenerator.h.

98{ Debug = x; }

◆ SetDrellYan()

void FixedTargetGenerator::SetDrellYan ( )
inline

Definition at line 79 of file FixedTargetGenerator.h.

79{ DrellYan = true; } // only generate prompt Z0* processes

◆ SetEnergyCut()

void FixedTargetGenerator::SetEnergyCut ( Float_t emax)
inline

Definition at line 95 of file FixedTargetGenerator.h.

95 {
96 EMax = emax;
97 } // min energy to be copied to Geant4

◆ SetG4only()

void FixedTargetGenerator::SetG4only ( )
inline

Definition at line 73 of file FixedTargetGenerator.h.

73 {
74 G4only = true;
75 } // only run Geant4, no pythia primary interaction

◆ SetHeartBeat()

void FixedTargetGenerator::SetHeartBeat ( Int_t x)
inline

Definition at line 94 of file FixedTargetGenerator.h.

94{ heartbeat = x; }

◆ SetJpsiMainly()

void FixedTargetGenerator::SetJpsiMainly ( )
inline

Definition at line 77 of file FixedTargetGenerator.h.

77{ JpsiMainly = true; } // let all Jpsi decay to mumu

◆ SetMom()

void FixedTargetGenerator::SetMom ( Double_t mom)
inline

Definition at line 46 of file FixedTargetGenerator.h.

46{ fMom = mom; };

◆ SetOnlyMuons()

void FixedTargetGenerator::SetOnlyMuons ( )
inline

Definition at line 78 of file FixedTargetGenerator.h.

78{ OnlyMuons = true; } // only transport muons

◆ SetOpt4DP()

void FixedTargetGenerator::SetOpt4DP ( TNtuple * t)
inline

Definition at line 104 of file FixedTargetGenerator.h.

104 {
105 withNtuple = kTRUE;
106 fNtuple = t;
107 }

◆ SetPaintRadius()

void FixedTargetGenerator::SetPaintRadius ( Double_t r)
inline

Definition at line 64 of file FixedTargetGenerator.h.

64{ fPaintBeam = r; };

◆ SetPhotonCollision()

void FixedTargetGenerator::SetPhotonCollision ( )
inline

Definition at line 80 of file FixedTargetGenerator.h.

80 {
81 PhotonCollision = true;
82 } // only generate prompt photon processes

◆ SetPythiaTune()

void FixedTargetGenerator::SetPythiaTune ( const TString & tune)
inline

Definition at line 101 of file FixedTargetGenerator.h.

101 {
102 fTune = (tune == "default") ? "" : tune;
103 }

◆ SetSeed()

void FixedTargetGenerator::SetSeed ( Double_t seed)
inline

Definition at line 93 of file FixedTargetGenerator.h.

◆ SetSmearBeam()

void FixedTargetGenerator::SetSmearBeam ( Double_t sb)
inline

Definition at line 63 of file FixedTargetGenerator.h.

63{ fsmearBeam = sb; };

◆ SetTarget()

void FixedTargetGenerator::SetTarget ( TString s,
Double_t x,
Double_t y )
inline

Definition at line 55 of file FixedTargetGenerator.h.

55 {
56 targetName = std::move(s);
57 xOff = x;
58 yOff = y;
59 };

◆ SetTargetCoordinates()

void FixedTargetGenerator::SetTargetCoordinates ( Double_t start_z,
Double_t end_z )
inline

Definition at line 65 of file FixedTargetGenerator.h.

65 {
66 startZ = start_z;
67 endZ = end_z;
68 targetFromGeometry = true;
69 };

◆ SetTauOnly()

void FixedTargetGenerator::SetTauOnly ( )
inline

Definition at line 76 of file FixedTargetGenerator.h.

76{ tauOnly = true; } // only have Ds decay to tau

◆ SetXoffset()

void FixedTargetGenerator::SetXoffset ( Double_t x)
inline

Definition at line 61 of file FixedTargetGenerator.h.

61{ xOff = x; };

◆ SetYoffset()

void FixedTargetGenerator::SetYoffset ( Double_t y)
inline

Definition at line 62 of file FixedTargetGenerator.h.

62{ yOff = y; };

◆ SetZoffset()

void FixedTargetGenerator::SetZoffset ( Double_t z)
inline

Definition at line 60 of file FixedTargetGenerator.h.

60{ zOff = z; };

◆ UseRandom1()

void FixedTargetGenerator::UseRandom1 ( )
inline

Definition at line 47 of file FixedTargetGenerator.h.

47 {
48 fUseRandom1 = kTRUE;
49 fUseRandom3 = kFALSE;
50 };

◆ UseRandom3()

void FixedTargetGenerator::UseRandom3 ( )
inline

Definition at line 51 of file FixedTargetGenerator.h.

51 {
52 fUseRandom1 = kFALSE;
53 fUseRandom3 = kTRUE;
54 };

◆ WithEvtGen()

void FixedTargetGenerator::WithEvtGen ( )
inline

Definition at line 83 of file FixedTargetGenerator.h.

83 {
84 withEvtGen = true;
85 } // use EvtGen as external decayer to Pythia, experimental phase, only works

Member Data Documentation

◆ bparam

Double_t FixedTargetGenerator::bparam
protected

Definition at line 140 of file FixedTargetGenerator.h.

◆ chibb

Double_t FixedTargetGenerator::chibb
protected

Definition at line 119 of file FixedTargetGenerator.h.

◆ chicc

Double_t FixedTargetGenerator::chicc
protected

Definition at line 119 of file FixedTargetGenerator.h.

◆ ck

Float_t FixedTargetGenerator::ck
protected

Definition at line 149 of file FixedTargetGenerator.h.

◆ Debug

Bool_t FixedTargetGenerator::Debug
protected

Definition at line 123 of file FixedTargetGenerator.h.

◆ DrellYan

Bool_t FixedTargetGenerator::DrellYan
protected

Definition at line 122 of file FixedTargetGenerator.h.

◆ EMax

Double_t FixedTargetGenerator::EMax
protected

Definition at line 119 of file FixedTargetGenerator.h.

◆ end

Double_t FixedTargetGenerator::end[3]
protected

Definition at line 139 of file FixedTargetGenerator.h.

◆ endZ

Double_t FixedTargetGenerator::endZ
protected

Definition at line 143 of file FixedTargetGenerator.h.

◆ evtgenN

Pythia8::EvtGenDecays* FixedTargetGenerator::evtgenN
protected

Definition at line 127 of file FixedTargetGenerator.h.

◆ evtgenP

Pythia8::EvtGenDecays* FixedTargetGenerator::evtgenP
protected

Definition at line 128 of file FixedTargetGenerator.h.

◆ fBoost

Double_t FixedTargetGenerator::fBoost
protected

Definition at line 119 of file FixedTargetGenerator.h.

◆ fin

TFile* FixedTargetGenerator::fin
protected

Definition at line 146 of file FixedTargetGenerator.h.

◆ fLogger

FairLogger* FixedTargetGenerator::fLogger
protected

Definition at line 124 of file FixedTargetGenerator.h.

◆ fMom

Double_t FixedTargetGenerator::fMom
protected

Definition at line 116 of file FixedTargetGenerator.h.

◆ fNtuple

TNtuple* FixedTargetGenerator::fNtuple
protected

special option for Dark Photon physics studies

Definition at line 130 of file FixedTargetGenerator.h.

◆ fPaintBeam

Double_t FixedTargetGenerator::fPaintBeam
protected

Definition at line 137 of file FixedTargetGenerator.h.

◆ fPythiaN

Pythia8::Pythia* FixedTargetGenerator::fPythiaN
protected

don't make it persistent, magic ROOT command

Definition at line 125 of file FixedTargetGenerator.h.

◆ fPythiaP

Pythia8::Pythia* FixedTargetGenerator::fPythiaP
protected

Definition at line 126 of file FixedTargetGenerator.h.

◆ fRandomEngine

std::shared_ptr<Pythia8::RndmEngine> FixedTargetGenerator::fRandomEngine
private

Definition at line 113 of file FixedTargetGenerator.h.

◆ fSeed

Double_t FixedTargetGenerator::fSeed
protected

Definition at line 119 of file FixedTargetGenerator.h.

◆ fsmearBeam

Double_t FixedTargetGenerator::fsmearBeam
protected

Definition at line 136 of file FixedTargetGenerator.h.

◆ fTune

TString FixedTargetGenerator::fTune
protected

Definition at line 132 of file FixedTargetGenerator.h.

◆ fUseRandom1

Bool_t FixedTargetGenerator::fUseRandom1
protected

Definition at line 117 of file FixedTargetGenerator.h.

◆ fUseRandom3

Bool_t FixedTargetGenerator::fUseRandom3
protected

Definition at line 118 of file FixedTargetGenerator.h.

◆ G4only

Bool_t FixedTargetGenerator::G4only
protected

Definition at line 122 of file FixedTargetGenerator.h.

◆ hasHadronCount

Bool_t FixedTargetGenerator::hasHadronCount = kFALSE
protected

Definition at line 152 of file FixedTargetGenerator.h.

◆ heartbeat

Int_t FixedTargetGenerator::heartbeat
protected

Definition at line 153 of file FixedTargetGenerator.h.

◆ JpsiMainly

Bool_t FixedTargetGenerator::JpsiMainly
protected

Definition at line 122 of file FixedTargetGenerator.h.

◆ maxCrossSection

Double_t FixedTargetGenerator::maxCrossSection
protected

Definition at line 145 of file FixedTargetGenerator.h.

◆ mparam

Double_t FixedTargetGenerator::mparam[10]
protected

Definition at line 141 of file FixedTargetGenerator.h.

◆ n_E

Float_t FixedTargetGenerator::n_E
protected

Definition at line 148 of file FixedTargetGenerator.h.

◆ n_hadrons

Float_t FixedTargetGenerator::n_hadrons
protected

Definition at line 149 of file FixedTargetGenerator.h.

◆ n_id

Float_t FixedTargetGenerator::n_id
protected

Definition at line 148 of file FixedTargetGenerator.h.

◆ n_M

Float_t FixedTargetGenerator::n_M
protected

Definition at line 148 of file FixedTargetGenerator.h.

◆ n_mE

Float_t FixedTargetGenerator::n_mE
protected

Definition at line 148 of file FixedTargetGenerator.h.

◆ n_mid

Float_t FixedTargetGenerator::n_mid
protected

Definition at line 148 of file FixedTargetGenerator.h.

◆ n_mpx

Float_t FixedTargetGenerator::n_mpx
protected

Definition at line 148 of file FixedTargetGenerator.h.

◆ n_mpy

Float_t FixedTargetGenerator::n_mpy
protected

Definition at line 148 of file FixedTargetGenerator.h.

◆ n_mpz

Float_t FixedTargetGenerator::n_mpz
protected

Definition at line 148 of file FixedTargetGenerator.h.

◆ n_px

Float_t FixedTargetGenerator::n_px
protected

Definition at line 148 of file FixedTargetGenerator.h.

◆ n_py

Float_t FixedTargetGenerator::n_py
protected

Definition at line 148 of file FixedTargetGenerator.h.

◆ n_pz

Float_t FixedTargetGenerator::n_pz
protected

Definition at line 148 of file FixedTargetGenerator.h.

◆ nDsprim

Int_t FixedTargetGenerator::nDsprim
protected

Definition at line 121 of file FixedTargetGenerator.h.

◆ nEntry

Int_t FixedTargetGenerator::nEntry
protected

Definition at line 121 of file FixedTargetGenerator.h.

◆ nEvents

Int_t FixedTargetGenerator::nEvents
protected

Definition at line 121 of file FixedTargetGenerator.h.

◆ nrpotspill

Double_t FixedTargetGenerator::nrpotspill
protected

Definition at line 119 of file FixedTargetGenerator.h.

◆ ntotprim

Int_t FixedTargetGenerator::ntotprim
protected

Definition at line 121 of file FixedTargetGenerator.h.

◆ nTree

TNtuple* FixedTargetGenerator::nTree
protected

Definition at line 147 of file FixedTargetGenerator.h.

◆ OnlyMuons

Bool_t FixedTargetGenerator::OnlyMuons
protected

Definition at line 123 of file FixedTargetGenerator.h.

◆ Option

TString FixedTargetGenerator::Option
protected

Definition at line 131 of file FixedTargetGenerator.h.

◆ PhotonCollision

Bool_t FixedTargetGenerator::PhotonCollision
protected

Definition at line 122 of file FixedTargetGenerator.h.

◆ pot

Double_t FixedTargetGenerator::pot
protected

Definition at line 120 of file FixedTargetGenerator.h.

◆ setByHand

Bool_t FixedTargetGenerator::setByHand
protected

Definition at line 122 of file FixedTargetGenerator.h.

◆ start

Double_t FixedTargetGenerator::start[3]
protected

Definition at line 138 of file FixedTargetGenerator.h.

◆ startZ

Double_t FixedTargetGenerator::startZ
protected

Definition at line 142 of file FixedTargetGenerator.h.

◆ targetFromGeometry

Bool_t FixedTargetGenerator::targetFromGeometry
protected

Definition at line 144 of file FixedTargetGenerator.h.

◆ targetName

TString FixedTargetGenerator::targetName
protected

Definition at line 131 of file FixedTargetGenerator.h.

◆ tauOnly

Bool_t FixedTargetGenerator::tauOnly
protected

Definition at line 122 of file FixedTargetGenerator.h.

◆ withEvtGen

Bool_t FixedTargetGenerator::withEvtGen
protected

Definition at line 123 of file FixedTargetGenerator.h.

◆ withNtuple

Bool_t FixedTargetGenerator::withNtuple
protected

Definition at line 129 of file FixedTargetGenerator.h.

◆ wspill

Double_t FixedTargetGenerator::wspill
protected

Definition at line 119 of file FixedTargetGenerator.h.

◆ xOff

Double_t FixedTargetGenerator::xOff
protected

Definition at line 133 of file FixedTargetGenerator.h.

◆ yOff

Double_t FixedTargetGenerator::yOff
protected

Definition at line 134 of file FixedTargetGenerator.h.

◆ zOff

Double_t FixedTargetGenerator::zOff
protected

Definition at line 135 of file FixedTargetGenerator.h.


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