filters
Contents of generator/filters
-
namespace generator
-
class FixedRegion : public generator::IAlgorithm
Public Functions
-
FixedRegion(const std::string name)
-
~FixedRegion() = default
-
virtual StatusCode initialize() override
-
virtual StatusCode execute(Event&) override
-
virtual StatusCode finalize() override
-
FixedRegion(const std::string name)
-
class FixedRegion : public generator::IAlgorithm
-
namespace generator
-
class JF17 : public generator::IAlgorithm
Public Functions
-
JF17(const std::string, IGenerator*)
-
~JF17()
-
virtual StatusCode initialize() override
-
virtual StatusCode execute(generator::Event&) override
-
virtual StatusCode finalize() override
-
JF17(const std::string, IGenerator*)
-
class JF17 : public generator::IAlgorithm
Warning
doxygenfile: Found multiple matches for file “LinkDef.h
-
namespace generator
-
class OverlappedEvents : public generator::SingleParticle
- #include <OverlappedEvents.h>
Class for generating boosted electrons For now, this class ony works with Pythia generator.
Public Functions
-
OverlappedEvents(const std::string, IGenerator*)
-
~OverlappedEvents()
-
virtual StatusCode initialize() override
-
virtual StatusCode execute(Event&) override
Executes the overlap injection logic.
Iterates over existing event seeds (primary particles) and injects a new particle nearby (within DeltaR) with a fraction of the seed’s energy. Updates the context with the new “overlapped” seeds.
-
virtual StatusCode finalize() override
Private Functions
-
float dR(float eta1, float phi1, float eta2, float phi2) const
Computes the delta R between two particles.
- Parameters:
eta1 – eta value from particle 1
phi1 – phi value from particle 1
eta2 – eta value from particle 2
phi2 – phi value from particle 2
- Returns:
float The computed delta R
Private Members
-
float m_deltaR
Max deltaR allowed.
-
bool m_hasLifetime
If true, considers that the introduced particle has a lifetime.
-
bool m_atRest
If true, considers that the introduced particle is at rest.
-
int m_pdgid
PDG ID of the particle to be generated.
-
float m_relEnergyMin
Minimum seed energy percentage to generate a particle.
-
float m_relEnergyMax
Maximum seed energy percentage to generate a particle.
-
OverlappedEvents(const std::string, IGenerator*)
-
class OverlappedEvents : public generator::SingleParticle
-
namespace generator
-
class Pileup : public generator::IAlgorithm
Public Functions
-
Pileup(const std::string, IGenerator*)
-
~Pileup()
-
virtual StatusCode initialize() override
-
virtual StatusCode execute(Event&) override
-
virtual StatusCode finalize() override
-
Pileup(const std::string, IGenerator*)
-
class Pileup : public generator::IAlgorithm
-
namespace generator
-
class SingleParticle : public generator::IAlgorithm
Subclassed by generator::OverlappedEvents
Public Functions
-
SingleParticle(const std::string, IGenerator*)
-
~SingleParticle() = default
-
virtual StatusCode initialize() override
-
virtual StatusCode execute(generator::Event&) override
-
virtual StatusCode finalize() override
Protected Functions
-
int fill(Pythia8::Pythia *gun, int id, double energy, double etaIn, double phiIn, bool atRest, bool hasLifetime)
Helper function to inject a particle into the Pythia8 event record.
- Parameters:
gun – Pointer to the Pythia8 instance.
id – PDG ID of the particle.
energy – Particle energy.
etaIn – Pseudorapidity.
phiIn – Azimuthal angle.
atRest – If true, sets momentum to zero.
hasLifetime – If true, applies decay time based on particle lifetime.
- Returns:
int Index of the particle in the Pythia8 event record.
-
SingleParticle(const std::string, IGenerator*)
-
class SingleParticle : public generator::IAlgorithm
-
namespace generator
-
class Zee : public generator::IAlgorithm
Public Functions
-
Zee(const std::string, IGenerator*)
-
~Zee()
-
virtual StatusCode initialize() override
-
virtual StatusCode execute(Event&) override
-
virtual StatusCode finalize() override
Private Members
-
float m_minPt
Minimum pT required for the electron/positron pair.
-
float m_etaMax
Maximum eta allowed for the electron/positron pair.
-
bool m_zeroVertexParticles
If true, includes original pz position (zero) without fluctuations Useful for calibration purposes.
-
bool m_forceForwardElectron
If true, forces one and only one electron/positron to be forward.
-
Zee(const std::string, IGenerator*)
-
class Zee : public generator::IAlgorithm
-
namespace generator
-
namespace ParticleHelper
Functions
-
bool isVisible(const HepMC3::GenParticle*)
-
class ParticleFilter
Public Functions
-
inline ParticleFilter(int selectIn, float etaMaxIn = 50., float etaMinIn = 0., float pTminChargedIn = 0., float pTminNeutralIn = 0.)
-
~ParticleFilter() = default
-
void filter(HepMC3::GenEvent &event)
-
inline int size() const
-
inline const HepMC3::GenParticle *particlePtr(int i)
-
inline const HepMC3::GenParticle &particleRef(int i)
-
inline std::vector<const HepMC3::GenParticle*> &getParticlesRef()
-
inline ParticleFilter(int selectIn, float etaMaxIn = 50., float etaMinIn = 0., float pTminChargedIn = 0., float pTminNeutralIn = 0.)
-
bool isVisible(const HepMC3::GenParticle*)
-
namespace ParticleHelper