|
ATLAS Offline Software
|
Go to the documentation of this file.
58 #ifndef GENERATORMODULESCOSMICGEN_H
59 #define GENERATORMODULESCOSMICGEN_H
63 #include "CLHEP/Vector/LorentzVector.h"
97 static constexpr
float m_GeV = 1000.f;
98 static constexpr
float m_mm = 10.f;
106 IntegerProperty
m_dsid{
this,
"Dsid", 999999,
"Dataset ID number"};
115 FloatProperty
m_IPx{
this,
"IPx", 0.f};
116 FloatProperty
m_IPy{
this,
"IPy", 0.f};
117 FloatProperty
m_IPz{
this,
"IPz", 0.f};
119 FloatProperty
m_zpos{
this,
"Zposition", 14500.f};
122 BooleanProperty
m_cavOpt{
this,
"OptimizeForCavern",
false};
126 BooleanProperty
m_muonECOpt{
this,
"OptimizeForMuonEndCap",
false};
136 StringProperty
m_infile{
this,
"eventfile",
"NONE"};
146 bool exzCut(
const CLHEP::Hep3Vector&
pos,
const CLHEP::HepLorentzVector&
p);
151 FloatProperty
m_rmax{
this,
"RMax", 10000000.f};
Scalar phi() const
phi method
DoubleProperty m_pixelplanemaxx
BooleanProperty m_doPathlengthCut
std::vector< int > m_pdgCode
DoubleProperty m_ysurface
Scalar theta() const
theta method
static CLHEP::HepRandomEngine * COSMIC_RANDOM_ENGINE
Static pointer to random number generator for use by.
BooleanProperty m_srOnePixECOpt
Cosmic generator. The output will be stored in the transient event store so it can be passed to the s...
bool pointsAtPixels(double xgen, double ygen, double zgen, double theta, double phi)
std::vector< CLHEP::HepLorentzVector > m_fourMom
DoubleProperty m_pixelplanemaxz
IntegerProperty m_printEvent
Base class for common behaviour of generator interfaces.
std::vector< CLHEP::HepLorentzVector > m_fourPos
BooleanProperty m_swapYZAxis
DoubleProperty m_energyCutThreshold
BooleanProperty m_doAimedAtPixelsCut
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode fillEvt(HepMC::GenEvent *evt)
For filling the HepMC event object.
CLHEP::Hep3Vector m_center
BooleanProperty m_doReweighting
CLHEP::HepLorentzVector generateVertex(void)
IntegerProperty m_srOneOpt
std::vector< HepMC::Polarization > m_polarization
virtual StatusCode genFinalize()
For finalising the generator, if required.
CLHEP::HepLorentzVector generateVertexReweighted(void)
IntegerProperty m_printMod
DoubleProperty m_rvertmax
static constexpr float m_GeV
virtual StatusCode callGenerator()
For calling the generator on each iteration of the event loop.
bool exzCut(const CLHEP::Hep3Vector &pos, const CLHEP::HepLorentzVector &p)
virtual ~CosmicGenerator()=default
static constexpr float m_mm
BooleanProperty m_muonECOpt
CosmicGenerator(const std::string &name, ISvcLocator *pSvcLocator)
double pathLengthInRock(double xgen, double ygen, double zgen, double theta, double phi)
virtual StatusCode genInitialize()
For initializing the generator, if required.