#include <Generator.h>
|
| | Generator ()=default |
| | ~Generator () override |
| virtual Bool_t | Init (const char *, int)=0 |
| virtual Bool_t | Init (const char *)=0 |
| virtual Bool_t | Init (const std::vector< std::string > &inFiles, int startNumber) |
| virtual Bool_t | Init (const std::vector< std::string > &inFiles) |
| 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) |
Definition at line 19 of file Generator.h.
◆ Generator()
| SHiP::Generator::Generator |
( |
| ) |
|
|
default |
◆ ~Generator()
| SHiP::Generator::~Generator |
( |
| ) |
|
|
overridedefault |
◆ GetCounter()
| Long64_t SHiP::Generator::GetCounter |
( |
const std::string & | name | ) |
const |
|
inline |
Definition at line 58 of file Generator.h.
58 {
60 return it ==
fCounters.end() ? 0 : it->second;
61 }
std::unordered_map< std::string, int64_t > fCounters
◆ IncrementCounter()
| void SHiP::Generator::IncrementCounter |
( |
const std::string & | name, |
|
|
Long64_t | delta = 1 ) |
|
inline |
◆ Init() [1/4]
| virtual Bool_t SHiP::Generator::Init |
( |
const char * | | ) |
|
|
pure virtual |
Implemented in CosmicsGenerator, DPPythia8Generator, EvtCalcGenerator, FixedTargetGenerator, GenieGenerator, HNLPythia8Generator, MuDISGenerator, MuonBackGenerator, NewMuDISGenerator, NtupleGenerator, ParticleGunGenerator, Pythia8Generator, SHiP::TTreeGenerator, and tPythia6Generator.
◆ Init() [2/4]
| virtual Bool_t SHiP::Generator::Init |
( |
const char * | , |
|
|
int | ) |
|
pure virtual |
Implemented in CosmicsGenerator, DPPythia8Generator, EvtCalcGenerator, FixedTargetGenerator, GenieGenerator, HNLPythia8Generator, MuDISGenerator, MuonBackGenerator, NewMuDISGenerator, NtupleGenerator, ParticleGunGenerator, Pythia8Generator, SHiP::TTreeGenerator, and tPythia6Generator.
◆ Init() [3/4]
| virtual Bool_t SHiP::Generator::Init |
( |
const std::vector< std::string > & | inFiles | ) |
|
|
inlinevirtual |
Reimplemented in CosmicsGenerator, DPPythia8Generator, EvtCalcGenerator, FixedTargetGenerator, GenieGenerator, HNLPythia8Generator, MuDISGenerator, MuonBackGenerator, NewMuDISGenerator, NtupleGenerator, ParticleGunGenerator, Pythia8Generator, SHiP::TTreeGenerator, and tPythia6Generator.
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 };
virtual Bool_t Init(const char *, int)=0
◆ Init() [4/4]
| virtual Bool_t SHiP::Generator::Init |
( |
const std::vector< std::string > & | inFiles, |
|
|
int | startNumber ) |
|
inlinevirtual |
Reimplemented in CosmicsGenerator, DPPythia8Generator, EvtCalcGenerator, FixedTargetGenerator, GenieGenerator, HNLPythia8Generator, MuDISGenerator, MuonBackGenerator, NewMuDISGenerator, NtupleGenerator, ParticleGunGenerator, Pythia8Generator, SHiP::TTreeGenerator, and tPythia6Generator.
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 };
◆ IsInVesselAcceptance()
| bool SHiP::Generator::IsInVesselAcceptance |
( |
Double_t | px, |
|
|
Double_t | py, |
|
|
Double_t | pz ) const |
|
inlineprotected |
Definition at line 70 of file Generator.h.
70 {
72 if (pz <= 0) return false;
74 }
bool fUseVesselAcceptance
◆ nrOfGeoRejections()
| Int_t SHiP::Generator::nrOfGeoRejections |
( |
| ) |
const |
|
inline |
◆ SetCounter()
| void SHiP::Generator::SetCounter |
( |
const std::string & | name, |
|
|
Long64_t | value ) |
|
inline |
◆ SetMaxTheta()
| void SHiP::Generator::SetMaxTheta |
( |
Double_t | thetaX, |
|
|
Double_t | thetaY ) |
|
inline |
Set maximum allowed slopes |px/pz| and |py/pz| for vessel acceptance. Parameters are tan(theta), not angle in radians.
Definition at line 52 of file Generator.h.
◆ UseExternalFile() [1/2]
| virtual void SHiP::Generator::UseExternalFile |
( |
std::string | x, |
|
|
Int_t | i ) |
|
inlinevirtual |
Definition at line 39 of file Generator.h.
39 {
42 };
std::optional< std::string > fextFile
◆ UseExternalFile() [2/2]
| virtual void SHiP::Generator::UseExternalFile |
( |
std::vector< std::string > & | inFiles, |
|
|
Int_t | i ) |
|
inlinevirtual |
Definition at line 44 of file Generator.h.
44 {
45 LOG(warning) << "Multiple external files not implemented for this "
46 "generator - only taking the first!";
48 }
virtual void UseExternalFile(std::string x, Int_t i)
◆ fCounters
| std::unordered_map<std::string, int64_t> SHiP::Generator::fCounters |
|
protected |
◆ fextFile
| std::optional<std::string> SHiP::Generator::fextFile |
|
protected |
◆ firstEvent
| Int_t SHiP::Generator::firstEvent = 0 |
|
protected |
◆ fMaxThetaX
| Double_t SHiP::Generator::fMaxThetaX = 0 |
|
protected |
◆ fMaxThetaY
| Double_t SHiP::Generator::fMaxThetaY = 0 |
|
protected |
◆ fnGeoRejects
| Int_t SHiP::Generator::fnGeoRejects = 0 |
|
protected |
◆ fUseVesselAcceptance
| bool SHiP::Generator::fUseVesselAcceptance = false |
|
protected |
The documentation for this class was generated from the following files: