CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
FBaseSimEvent Class Reference

#include <FBaseSimEvent.h>

Inheritance diagram for FBaseSimEvent:
FSimEvent

Public Member Functions

void addChargedTrack (int id)
 Add an id in the vector of charged tracks id's. More...
 
void addParticles (const HepMC::GenEvent &hev)
 Add the particles and their vertices to the list. More...
 
int addSimTrack (const RawParticle *p, int iv, int ig=-1, const HepMC::GenVertex *ev=0)
 Add a new track to the Event and to the various lists. More...
 
int addSimVertex (const XYZTLorentzVector &decayVertex, int im=-1, FSimVertexType::VertexType type=FSimVertexType::ANY)
 Add a new vertex to the Event and to the various lists. More...
 
int chargedTrack (int id) const
 return "reconstructed" charged tracks index. More...
 
void clear ()
 clear the FBaseSimEvent content before the next event More...
 
const HepMC::GenParticle * embdGenpart (int i) const
 return MC track with a given id More...
 
const SimTrackembdTrack (int i) const
 return embedded track with given id More...
 
const SimVertexembdVertex (int i) const
 return embedded vertex with given id More...
 
const FSimVertexTypeembdVertexType (int i) const
 return embedded vertex type with given id More...
 
 FBaseSimEvent (const edm::ParameterSet &kine)
 Default constructor. More...
 
void fill (const HepMC::GenEvent &hev)
 fill the FBaseSimEvent from the current HepMC::GenEvent More...
 
void fill (const std::vector< SimTrack > &, const std::vector< SimVertex > &)
 fill the FBaseSimEvent from SimTrack's and SimVert'ices More...
 
const KineParticleFilterfilter () const
 
void initializePdt (const HepPDT::ParticleDataTable *aPdt)
 Initialize the particle data table. More...
 
unsigned int nChargedTracks () const
 Number of "reconstructed" charged tracks. More...
 
unsigned int nGenParts () const
 Number of generator particles. More...
 
unsigned int nTracks () const
 Number of tracks. More...
 
unsigned int nVertices () const
 Number of vertices. More...
 
void print () const
 print the FBaseSimEvent in an intelligible way More...
 
void printMCTruth (const HepMC::GenEvent &hev)
 print the original MCTruth event More...
 
const HepPDT::ParticleDataTabletheTable () const
 Get the pointer to the particle data table. More...
 
FSimTracktrack (int id) const
 Return track with given Id. More...
 
FSimVertexvertex (int id) const
 Return vertex with given Id. More...
 
FSimVertexTypevertexType (int id) const
 Return vertex with given Id. More...
 
 ~FBaseSimEvent ()
 usual virtual destructor More...
 

Protected Member Functions

std::vector
< HepMC::GenParticle * > * 
genparts () const
 The pointer to the vector of GenParticle's. More...
 
std::vector< FSimTrack > * tracks () const
 The pointer to the vector of FSimTrack's. More...
 
std::vector< FSimVertex > * vertices () const
 The pointer to the vector of FSimVertex's. More...
 

Private Attributes

unsigned int initialSize
 
double lateVertexPosition
 
KineParticleFiltermyFilter
 The particle filter. More...
 
unsigned int nChargedParticleTracks
 
unsigned int nGenParticles
 
unsigned int nSimTracks
 
unsigned int nSimVertices
 
const ParticleDataTablepdt
 
double sigmaVerteX
 
double sigmaVerteY
 
double sigmaVerteZ
 
unsigned int theChargedSize
 
std::vector< unsigned > * theChargedTracks
 
FSimVertexTypeCollectiontheFSimVerticesType
 
std::vector
< HepMC::GenParticle * > * 
theGenParticles
 
unsigned int theGenSize
 
std::vector< FSimTrack > * theSimTracks
 
std::vector< FSimVertex > * theSimVertices
 
unsigned int theTrackSize
 
unsigned int theVertexSize
 

Detailed Description

Definition at line 42 of file FBaseSimEvent.h.

Constructor & Destructor Documentation

FBaseSimEvent::FBaseSimEvent ( const edm::ParameterSet kine)

Default constructor.

Definition at line 30 of file FBaseSimEvent.cc.

FBaseSimEvent::~FBaseSimEvent ( )

usual virtual destructor

Definition at line 68 of file FBaseSimEvent.cc.

Member Function Documentation

void FBaseSimEvent::addChargedTrack ( int  id)

Add an id in the vector of charged tracks id's.

Definition at line 721 of file FBaseSimEvent.cc.

void FBaseSimEvent::addParticles ( const HepMC::GenEvent &  hev)

Add the particles and their vertices to the list.

Some internal array to work with.

Definition at line 342 of file FBaseSimEvent.cc.

int FBaseSimEvent::addSimTrack ( const RawParticle p,
int  iv,
int  ig = -1,
const HepMC::GenVertex *  ev = 0 
)

Add a new track to the Event and to the various lists.

Definition at line 533 of file FBaseSimEvent.cc.

int FBaseSimEvent::addSimVertex ( const XYZTLorentzVector decayVertex,
int  im = -1,
FSimVertexType::VertexType  type = FSimVertexType::ANY 
)

Add a new vertex to the Event and to the various lists.

Definition at line 573 of file FBaseSimEvent.cc.

int FBaseSimEvent::chargedTrack ( int  id) const

return "reconstructed" charged tracks index.

Definition at line 731 of file FBaseSimEvent.cc.

void FBaseSimEvent::clear ( void  )
const HepMC::GenParticle * FBaseSimEvent::embdGenpart ( int  i) const

return MC track with a given id

Definition at line 751 of file FBaseSimEvent.cc.

const SimTrack& FBaseSimEvent::embdTrack ( int  i) const
inline

return embedded track with given id

Referenced by FSimEvent::load().

const SimVertex& FBaseSimEvent::embdVertex ( int  i) const
inline

return embedded vertex with given id

Referenced by FSimEvent::load().

const FSimVertexType& FBaseSimEvent::embdVertexType ( int  i) const
inline

return embedded vertex type with given id

Referenced by FSimEvent::load().

void FBaseSimEvent::fill ( const HepMC::GenEvent &  hev)

fill the FBaseSimEvent from the current HepMC::GenEvent

Definition at line 95 of file FBaseSimEvent.cc.

Referenced by FSimEvent::fill().

void FBaseSimEvent::fill ( const std::vector< SimTrack > &  simTracks,
const std::vector< SimVertex > &  simVertices 
)

fill the FBaseSimEvent from SimTrack's and SimVert'ices

Definition at line 106 of file FBaseSimEvent.cc.

const KineParticleFilter& FBaseSimEvent::filter ( ) const
inline

Definition at line 135 of file FBaseSimEvent.h.

References myFilter.

135 { return *myFilter; }
KineParticleFilter * myFilter
The particle filter.
std::vector<HepMC::GenParticle*>* FBaseSimEvent::genparts ( ) const
inlineprotected

The pointer to the vector of GenParticle's.

Definition at line 150 of file FBaseSimEvent.h.

References theGenParticles.

150  {
151  return theGenParticles;
152  }
std::vector< HepMC::GenParticle * > * theGenParticles
void FBaseSimEvent::initializePdt ( const HepPDT::ParticleDataTable aPdt)

Initialize the particle data table.

Definition at line 88 of file FBaseSimEvent.cc.

unsigned int FBaseSimEvent::nChargedTracks ( ) const
inline

Number of "reconstructed" charged tracks.

Definition at line 99 of file FBaseSimEvent.h.

References nChargedParticleTracks.

99  {
100  return nChargedParticleTracks;
101  }
unsigned int nChargedParticleTracks
unsigned int FBaseSimEvent::nGenParts ( ) const
inline

Number of generator particles.

Definition at line 94 of file FBaseSimEvent.h.

References nGenParticles.

Referenced by FSimEvent::nGenParts().

94  {
95  return nGenParticles;
96  }
unsigned int nGenParticles
unsigned int FBaseSimEvent::nTracks ( ) const
inline

Number of tracks.

Definition at line 84 of file FBaseSimEvent.h.

References nSimTracks.

Referenced by FSimEvent::nTracks().

84  {
85  return nSimTracks;
86  }
unsigned int nSimTracks
unsigned int FBaseSimEvent::nVertices ( ) const
inline

Number of vertices.

Definition at line 89 of file FBaseSimEvent.h.

References nSimVertices.

Referenced by FSimEvent::nVertices().

89  {
90  return nSimVertices;
91  }
unsigned int nSimVertices
void FBaseSimEvent::print ( void  ) const

print the FBaseSimEvent in an intelligible way

Definition at line 694 of file FBaseSimEvent.cc.

void FBaseSimEvent::printMCTruth ( const HepMC::GenEvent &  hev)

print the original MCTruth event

Definition at line 599 of file FBaseSimEvent.cc.

const HepPDT::ParticleDataTable* FBaseSimEvent::theTable ( ) const
inline

Get the pointer to the particle data table.

Definition at line 57 of file FBaseSimEvent.h.

References pdt.

Referenced by FSimTrack::FSimTrack(), and FamosProducer::produce().

57  {
58  return pdt;
59  }
const ParticleDataTable * pdt
FSimTrack& FBaseSimEvent::track ( int  id) const
inline

Return track with given Id.

Referenced by FSimEvent::load().

std::vector<FSimTrack>* FBaseSimEvent::tracks ( void  ) const
inlineprotected

The pointer to the vector of FSimTrack's.

Definition at line 140 of file FBaseSimEvent.h.

References theSimTracks.

140  {
141  return theSimTracks;
142  }
std::vector< FSimTrack > * theSimTracks
FSimVertex& FBaseSimEvent::vertex ( int  id) const
inline

Return vertex with given Id.

Referenced by Tau.Tau::dxy().

FSimVertexType& FBaseSimEvent::vertexType ( int  id) const
inline

Return vertex with given Id.

std::vector<FSimVertex>* FBaseSimEvent::vertices ( ) const
inlineprotected

The pointer to the vector of FSimVertex's.

Definition at line 145 of file FBaseSimEvent.h.

References theSimVertices.

145  {
146  return theSimVertices;
147  }
std::vector< FSimVertex > * theSimVertices

Member Data Documentation

unsigned int FBaseSimEvent::initialSize
private

Definition at line 172 of file FBaseSimEvent.h.

double FBaseSimEvent::lateVertexPosition
private

Definition at line 183 of file FBaseSimEvent.h.

KineParticleFilter* FBaseSimEvent::myFilter
private

The particle filter.

Definition at line 175 of file FBaseSimEvent.h.

Referenced by filter().

unsigned int FBaseSimEvent::nChargedParticleTracks
private

Definition at line 166 of file FBaseSimEvent.h.

Referenced by nChargedTracks().

unsigned int FBaseSimEvent::nGenParticles
private

Definition at line 165 of file FBaseSimEvent.h.

Referenced by nGenParts().

unsigned int FBaseSimEvent::nSimTracks
private

Definition at line 163 of file FBaseSimEvent.h.

Referenced by nTracks().

unsigned int FBaseSimEvent::nSimVertices
private

Definition at line 164 of file FBaseSimEvent.h.

Referenced by nVertices().

const ParticleDataTable* FBaseSimEvent::pdt
private

Definition at line 181 of file FBaseSimEvent.h.

Referenced by theTable().

double FBaseSimEvent::sigmaVerteX
private

Definition at line 177 of file FBaseSimEvent.h.

double FBaseSimEvent::sigmaVerteY
private

Definition at line 178 of file FBaseSimEvent.h.

double FBaseSimEvent::sigmaVerteZ
private

Definition at line 179 of file FBaseSimEvent.h.

unsigned int FBaseSimEvent::theChargedSize
private

Definition at line 171 of file FBaseSimEvent.h.

std::vector<unsigned>* FBaseSimEvent::theChargedTracks
private

Definition at line 161 of file FBaseSimEvent.h.

FSimVertexTypeCollection* FBaseSimEvent::theFSimVerticesType
private

Definition at line 158 of file FBaseSimEvent.h.

std::vector<HepMC::GenParticle*>* FBaseSimEvent::theGenParticles
private

Definition at line 159 of file FBaseSimEvent.h.

Referenced by genparts().

unsigned int FBaseSimEvent::theGenSize
private

Definition at line 170 of file FBaseSimEvent.h.

std::vector<FSimTrack>* FBaseSimEvent::theSimTracks
private

Definition at line 156 of file FBaseSimEvent.h.

Referenced by tracks().

std::vector<FSimVertex>* FBaseSimEvent::theSimVertices
private

Definition at line 157 of file FBaseSimEvent.h.

Referenced by vertices().

unsigned int FBaseSimEvent::theTrackSize
private

Definition at line 168 of file FBaseSimEvent.h.

unsigned int FBaseSimEvent::theVertexSize
private

Definition at line 169 of file FBaseSimEvent.h.