genkernel

Contents of generator/genkernel

namespace generator
class Event

Public Functions

inline Event()

Constructor

~Event() = default

Destructor

inline void push_back(Seed seed)

Add the seed into the current event.

Parameters:

seed – The seed to be inserted

inline void setAvgmu(float avgmu)

Set the average mu/pileup.

Parameters:

avgmu

inline void setTotmu(float totmu)
inline float avgmu() const

Get the average mu/pileup.

Returns:

float

inline float totmu() const
inline void setEventNumber(int eventNumber)

Set the Event Number.

Parameters:

eventNumber

inline int eventNumber() const

Get the event number.

Returns:

int

inline std::vector<Seed> &operator*()
inline Seed &operator[](unsigned idx)
inline int size() const

Protected Attributes

float m_avgmu

Average mu/pileup.

float m_totmu
int m_eventNumber

Event number.

std::vector<Seed> m_seeds

Event Seeds.

struct particle_t
#include <Event.h>

Particle struct used to dump the info into the ntuple.

Public Members

int isMain
int bc_id
int pdg_id
float px
float py
float pz
float eta
float phi
float xProd
float yProd
float zProd
float tProd
float e
float eT
class Seed

Public Functions

inline Seed(float eta, float phi)

Constructor

~Seed() = default

Destructor

inline void push_back(const particle_t p)

Adds the particle into the seed.

Parameters:

p

inline float eta() const

Get eta value.

Returns:

float

inline float phi() const

Get phi value.

Returns:

float

inline void setEta(float eta)

Set eta value.

Parameters:

eta

inline void setPhi(float phi)

Set phi value.

Parameters:

phi

inline std::vector<particle_t> &operator*()
inline float etot() const
inline float ettot() const
inline void emplace_back(int isMain, int bc_id, int pdg_id, float px, float py, float pz, float eta, float phi, float xProd, float yProd, float zProd, float tProd, float e, float eT)

Pushes a new particle into the seed.

Parameters:
  • isMain

  • bc_id

  • pdg_id – PDGID of the particle

  • px – X axis momentum

  • py – Y axis momentum

  • pz – Z axis momentum

  • eta – Eta value

  • phi – Phi value

  • xProd – X axis production vertex

  • yProd – Y axis production vertex

  • zProd – Z axis production vertex

  • tProd – Time of production

  • e – Energy

  • eT – Transverse energy

Private Members

float m_eta

Eta value.

float m_phi

Phi value.

std::vector<particle_t> m_particles

Particles inside the seed.

float m_etot

Total energy value.

float m_ettot

Total transverse energy value.

namespace generator
class EventTape : public MsgService, public Gaugi::PropertyService

Public Functions

EventTape()
~EventTape()
StatusCode initialize()
StatusCode execute()
StatusCode finalize()
void push_back(IAlgorithm *alg)

Private Functions

void dump(Event&)
void clear()

Clear the ntuple

Private Members

TTree *m_tree
std::vector<IAlgorithm*> m_algs
SG::StoreGate *m_store
std::string m_outputFile
int m_outputLevel
float m_nEvent
int m_runNumber

Ntuple output

std::vector<int> m_eventNumbers
int m_eventNumber
float m_avg_mu
float m_tot_mu
std::vector<int> *m_p_isMain
std::vector<int> *m_p_pdg_id
std::vector<int> *m_p_bc_id
std::vector<int> *m_p_seed_id
std::vector<float> *m_p_px
std::vector<float> *m_p_py
std::vector<float> *m_p_pz
std::vector<float> *m_p_prod_x
std::vector<float> *m_p_prod_y
std::vector<float> *m_p_prod_z
std::vector<float> *m_p_prod_t
std::vector<float> *m_p_eta
std::vector<float> *m_p_phi
std::vector<float> *m_p_e
std::vector<float> *m_p_et

Warning

doxygenfile: Found multiple matches for file “IAlgorithm.h

namespace generator
class IGenerator : public MsgService, public Gaugi::PropertyService

Subclassed by generator::Pythia8Gen, generator::RootReader

Public Functions

inline IGenerator()

Constructor

inline virtual ~IGenerator()

Destructor

virtual StatusCode initialize() = 0
virtual StatusCode execute(HepMC3::GenEvent&) = 0
virtual StatusCode finalize() = 0
virtual float random_flat() = 0
virtual float random_gauss() = 0
virtual void clear() = 0
const std::string &name() const

Warning

doxygenfile: Found multiple matches for file “LinkDef.h

namespace generator
class AbortPrematurely : public std::exception

Private Functions

inline virtual const char *what() const
class EndOfFile : public std::exception

Private Functions

inline virtual const char *what() const
class NotInterestingEvent : public std::exception

Private Functions

inline virtual const char *what() const