Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtHepMCEvent.hh
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | enum HepMCStatus | ||||
STABLE = 1, | STABLE = 1, | ||||
DECAYED = 2, | DECAYED = 2, | ||||
HISTORY = 3 | HISTORY = 3 | ||||
}; | }; | ||||
void constructEvent( EvtParticle* baseParticle ); | void constructEvent( EvtParticle* baseParticle ); | ||||
void constructEvent( EvtParticle* baseParticle, EvtVector4R& translation ); | void constructEvent( EvtParticle* baseParticle, EvtVector4R& translation ); | ||||
GenEvent* getEvent() { return _theEvent; } | GenEvent* getEvent() { return m_theEvent; } | ||||
// Methods used to create GenParticles and FourVectors of vertices. | // Methods used to create GenParticles and FourVectors of vertices. | ||||
// Make these public so that other classes may call them if they use EvtHepMCEvent. | // Make these public so that other classes may call them if they use EvtHepMCEvent. | ||||
// Create a GenParticle using info from the EvtParticle, specifying what frame | // Create a GenParticle using info from the EvtParticle, specifying what frame | ||||
// the 4-momentum is from. | // the 4-momentum is from. | ||||
GenParticlePtr createGenParticle( EvtParticle* theParticle, int frameType ); | GenParticlePtr createGenParticle( EvtParticle* theParticle, int frameType ); | ||||
// Find out the decay vertex position for the given EvtParticle. | // Find out the decay vertex position for the given EvtParticle. | ||||
FourVector getVertexCoord( EvtParticle* theParticle ); | FourVector getVertexCoord( EvtParticle* theParticle ); | ||||
protected: | protected: | ||||
private: | private: | ||||
// Delete the event structure (called by destructor) | // Delete the event structure (called by destructor) | ||||
void deleteEvent(); | void deleteEvent(); | ||||
// Add a vertex to the event. This is called by the constructEvent function | // Add a vertex to the event. This is called by the constructEvent function | ||||
// and is recursive, i.e. it loops through all possible daughter particles and | // and is recursive, i.e. it loops through all possible daughter particles and | ||||
// their descendents. | // their descendents. | ||||
void addVertex( EvtParticle* inEvtParticle, GenParticlePtr inGenParticle ); | void addVertex( EvtParticle* inEvtParticle, GenParticlePtr inGenParticle ); | ||||
GenEvent* _theEvent; | GenEvent* m_theEvent; | ||||
EvtVector4R _translation; | EvtVector4R m_translation; | ||||
}; | }; | ||||
#endif | #endif |