1 #ifndef FastSimulation_Event_FBaseSimEvent_H 2 #define FastSimulation_Event_FBaseSimEvent_H 60 void fill(
const std::vector<SimTrack>&,
const std::vector<SimVertex>&);
75 void addChargedTrack(
int id);
78 inline unsigned int nTracks()
const {
return nSimTracks; }
81 inline unsigned int nVertices()
const {
return nSimVertices; }
84 inline unsigned int nGenParts()
const {
return nGenParticles; }
87 inline unsigned int nChargedTracks()
const {
return nChargedParticleTracks; }
99 int chargedTrack(
int id)
const;
102 inline const SimTrack& embdTrack(
int i)
const;
105 inline const SimVertex& embdVertex(
int i)
const;
114 int addSimTrack(
const RawParticle*
p,
int iv,
int ig = -1,
const HepMC::GenVertex*
ev =
nullptr);
125 inline std::vector<FSimTrack>*
tracks()
const {
return theSimTracks; }
128 inline std::vector<FSimVertex>*
vertices()
const {
return theSimVertices; }
131 inline std::vector<HepMC::GenParticle*>*
genparts()
const {
return theGenParticles; }
166 #include "FastSimulation/Event/interface/FBaseSimEvent.icc" 168 #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