#include <FSimEvent.h>
Public Member Functions | |
void | fill (const HepMC::GenEvent &hev, edm::EventID &Id, RandomEngineAndDistribution const *) |
fill the FBaseSimEvent from the current HepMC::GenEvent More... | |
void | fill (const reco::GenParticleCollection &parts, edm::EventID &Id, RandomEngineAndDistribution const *) |
fill the FBaseSimEvent from the current reco::GenParticleCollection More... | |
void | fill (const std::vector< SimTrack > &simTracks, const std::vector< SimVertex > &simVertices) |
fill the FBaseSimEvent from the SimTrack's and SimVert'ices More... | |
FSimEvent (const edm::ParameterSet &kine) | |
Default constructor. More... | |
FSimEvent (const edm::ParameterSet &vtx, const edm::ParameterSet &kine) | |
edm::EventID | id () const |
Method to return the EventId. More... | |
void | load (edm::SimTrackContainer &c, edm::SimTrackContainer &m) const |
Load containers of tracks (and muons) and vertices for the edm::Event. More... | |
void | load (edm::SimVertexContainer &c) const |
void | load (FSimVertexTypeCollection &c) const |
unsigned int | nGenParts () const |
Number of MC particles. More... | |
unsigned int | nTracks () const |
Number of tracks. More... | |
unsigned int | nVertices () const |
Number of vertices. More... | |
float | weight () const |
Method to return the event weight. More... | |
virtual | ~FSimEvent () |
usual virtual destructor More... | |
Public Member Functions inherited from FBaseSimEvent | |
void | addChargedTrack (int id) |
Add an id in the vector of charged tracks id's. More... | |
void | addParticles (const HepMC::GenEvent &hev, RandomEngineAndDistribution const *) |
Add the particles and their vertices to the list. More... | |
void | addParticles (const reco::GenParticleCollection &myGenParticles, RandomEngineAndDistribution const *) |
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 SimTrack & | embdTrack (int i) const |
return embedded track with given id More... | |
const SimVertex & | embdVertex (int i) const |
return embedded vertex with given id More... | |
const FSimVertexType & | embdVertexType (int i) const |
return embedded vertex type with given id More... | |
FBaseSimEvent (const edm::ParameterSet &kine) | |
Default constructor. More... | |
FBaseSimEvent (const edm::ParameterSet &vtx, const edm::ParameterSet &kine) | |
void | fill (const HepMC::GenEvent &hev, RandomEngineAndDistribution const *) |
fill the FBaseSimEvent from the current HepMC::GenEvent More... | |
void | fill (const reco::GenParticleCollection &hev, RandomEngineAndDistribution const *) |
fill the FBaseSimEvent from the current reco::GenParticleCollection More... | |
void | fill (const std::vector< SimTrack > &, const std::vector< SimVertex > &) |
fill the FBaseSimEvent from SimTrack's and SimVert'ices More... | |
const KineParticleFilter & | filter () 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... | |
void | setBeamSpot (const math::XYZPoint &aBeamSpot) |
Set the beam spot position. More... | |
PrimaryVertexGenerator * | thePrimaryVertexGenerator () const |
const HepPDT::ParticleDataTable * | theTable () const |
Get the pointer to the particle data table. More... | |
FSimTrack & | track (int id) const |
Return track with given Id. More... | |
FSimVertex & | vertex (int id) const |
Return vertex with given Id. More... | |
FSimVertexType & | vertexType (int id) const |
Return vertex with given Id. More... | |
~FBaseSimEvent () | |
usual virtual destructor More... | |
Private Attributes | |
edm::EventID | id_ |
double | weight_ |
Additional Inherited Members | |
Protected Member Functions inherited from FBaseSimEvent | |
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... | |
Definition at line 31 of file FSimEvent.h.
FSimEvent::FSimEvent | ( | const edm::ParameterSet & | kine | ) |
Default constructor.
Definition at line 6 of file FSimEvent.cc.
FSimEvent::FSimEvent | ( | const edm::ParameterSet & | vtx, |
const edm::ParameterSet & | kine | ||
) |
Definition at line 10 of file FSimEvent.cc.
|
virtual |
void FSimEvent::fill | ( | const HepMC::GenEvent & | hev, |
edm::EventID & | Id, | ||
RandomEngineAndDistribution const * | random | ||
) |
fill the FBaseSimEvent from the current HepMC::GenEvent
Definition at line 25 of file FSimEvent.cc.
References FBaseSimEvent::fill(), and id_.
Referenced by FamosManager::reconstruct().
void FSimEvent::fill | ( | const reco::GenParticleCollection & | parts, |
edm::EventID & | Id, | ||
RandomEngineAndDistribution const * | random | ||
) |
fill the FBaseSimEvent from the current reco::GenParticleCollection
Definition at line 19 of file FSimEvent.cc.
References FBaseSimEvent::fill(), and id_.
void FSimEvent::fill | ( | const std::vector< SimTrack > & | simTracks, |
const std::vector< SimVertex > & | simVertices | ||
) |
fill the FBaseSimEvent from the SimTrack's and SimVert'ices
Definition at line 31 of file FSimEvent.cc.
References FBaseSimEvent::fill(), and id_.
edm::EventID FSimEvent::id | ( | void | ) | const |
Method to return the EventId.
Definition at line 38 of file FSimEvent.cc.
References id_.
Referenced by CalorimetryManager::reconstruct().
void FSimEvent::load | ( | edm::SimTrackContainer & | c, |
edm::SimTrackContainer & | m | ||
) | const |
Load containers of tracks (and muons) and vertices for the edm::Event.
Definition at line 62 of file FSimEvent.cc.
References funct::abs(), FSimTrack::closestDaughterId(), FBaseSimEvent::embdTrack(), i, CoreSimTrack::momentum(), FSimTrack::mother(), FSimTrack::noEndVertex(), FSimTrack::noMother(), nTracks(), edmStreamStallGrapher::t, FBaseSimEvent::track(), and CoreSimTrack::type().
void FSimEvent::load | ( | edm::SimVertexContainer & | c | ) | const |
Definition at line 85 of file FSimEvent.cc.
References FBaseSimEvent::embdVertex(), i, and nVertices().
void FSimEvent::load | ( | FSimVertexTypeCollection & | c | ) | const |
Definition at line 95 of file FSimEvent.cc.
References FBaseSimEvent::embdVertexType(), i, and nVertices().
unsigned int FSimEvent::nGenParts | ( | ) | const |
Number of MC particles.
Definition at line 57 of file FSimEvent.cc.
References FBaseSimEvent::nGenParts().
Referenced by FamosManager::reconstruct().
unsigned int FSimEvent::nTracks | ( | ) | const |
Number of tracks.
Definition at line 47 of file FSimEvent.cc.
References FBaseSimEvent::nTracks().
Referenced by load(), FamosManager::reconstruct(), CalorimetryManager::reconstruct(), and TrajectoryManager::reconstruct().
unsigned int FSimEvent::nVertices | ( | ) | const |
Number of vertices.
Definition at line 52 of file FSimEvent.cc.
References FBaseSimEvent::nVertices().
Referenced by load(), and FamosManager::reconstruct().
float FSimEvent::weight | ( | void | ) | const |
Method to return the event weight.
Definition at line 42 of file FSimEvent.cc.
References weight_.
Referenced by cuy.ValElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), and FamosManager::reconstruct().
|
private |
Definition at line 74 of file FSimEvent.h.
|
private |
Definition at line 75 of file FSimEvent.h.
Referenced by weight().