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

Private Members

float m_eta
float m_phi
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

Private Members

int m_select
float m_minPt
float m_maxPt
float m_etaMax
float m_etaMin
float m_etaWindow
float m_phiWindow

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.

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

Private Members

int m_select
int m_bc_id_start
int m_bc_id_end
float m_etaMax
float m_nPileupAvg
float m_nPileupSigma
float m_nPileupPerBunch
float m_delta_eta
float m_delta_phi
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.

Protected Attributes

float m_eta
float m_phi
float m_energy
float m_energyMin
float m_energyMax
bool m_hasLifetime
bool m_atRest
int m_pdgid
bool m_doRangedEta
float m_etaMin
float m_etaMax
bool m_doRangedPhi
float m_phiMin
float m_phiMax
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.

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()

Private Members

int m_select
float m_etaMax
float m_etaMin
float m_pTminCharged
float m_pTminNeutral
std::vector<const HepMC3::GenParticle*> m_keptPtrs