1 #ifndef FastSimulation_Event_FBaseSimEvent_H 2 #define FastSimulation_Event_FBaseSimEvent_H 62 void fill(
const HepMC::GenEvent& hev);
65 void fill(
const std::vector<SimTrack>&,
const std::vector<SimVertex>&);
68 void printMCTruth(
const HepMC::GenEvent& hev);
71 void addParticles(
const HepMC::GenEvent& hev);
81 void addChargedTrack(
int id);
100 return nChargedParticleTracks;
113 int chargedTrack(
int id)
const;
116 inline const SimTrack & embdTrack(
int i)
const;
119 inline const SimVertex & embdVertex(
int i)
const;
128 int addSimTrack(
const RawParticle*
p,
int iv,
int ig=-1,
129 const HepMC::GenVertex*
ev=
nullptr);
140 inline std::vector<FSimTrack>*
tracks()
const {
146 return theSimVertices;
150 inline std::vector<HepMC::GenParticle*>*
genparts()
const {
151 return theGenParticles;
189 #include "FastSimulation/Event/interface/FBaseSimEvent.icc" 191 #endif // FBaseSimEvent_H const ParticleDataTable * pdt
double lateVertexPosition
HepPDT::ParticleDataTable ParticleDataTable
std::vector< FSimTrack > * theSimTracks
std::vector< unsigned > * theChargedTracks
unsigned int theTrackSize
unsigned int theVertexSize
KineParticleFilter * myFilter
The particle filter.
const HepPDT::ParticleDataTable * theTable() const
Get the pointer to the particle data table.
std::vector< FSimVertex > * vertices() const
The pointer to the vector of FSimVertex's.
S & print(S &os, JobReport::InputFile const &f)
unsigned int nChargedTracks() const
Number of "reconstructed" charged tracks.
unsigned int nVertices() const
Number of vertices.
std::vector< FSimTrack > * tracks() const
The pointer to the vector of FSimTrack's.
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
unsigned int nTracks() const
Number of tracks.
unsigned int nSimVertices
A FSimVertexType hold the information on the vertex origine.
std::vector< FSimVertexType > FSimVertexTypeCollection
collection of FSimVertexType objects
unsigned int nGenParticles
std::vector< FSimVertex > * theSimVertices
unsigned int theChargedSize
unsigned int nChargedParticleTracks
unsigned int nGenParts() const
Number of generator particles.
std::vector< HepMC::GenParticle * > * genparts() const
The pointer to the vector of GenParticle's.
const KineParticleFilter & filter() const
std::vector< HepMC::GenParticle * > * theGenParticles
math::XYZTLorentzVector XYZTLorentzVector
FSimVertexTypeCollection * theFSimVerticesType