Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtParticleDecayList.hh
Show All 23 Lines | |||||
#include "EvtGenBase/EvtParticleDecay.hh" | #include "EvtGenBase/EvtParticleDecay.hh" | ||||
typedef EvtParticleDecay* EvtParticleDecayPtr; | typedef EvtParticleDecay* EvtParticleDecayPtr; | ||||
class EvtParticleDecayList { | class EvtParticleDecayList { | ||||
public: | public: | ||||
EvtParticleDecayList() | EvtParticleDecayList() | ||||
{ | { | ||||
_decaylist = 0; | m_decaylist = 0; | ||||
_nmode = 0; | m_nmode = 0; | ||||
_rawbrfrsum = 0; | m_rawbrfrsum = 0; | ||||
} | } | ||||
EvtParticleDecayList( const EvtParticleDecayList& o ); | EvtParticleDecayList( const EvtParticleDecayList& o ); | ||||
~EvtParticleDecayList(); | ~EvtParticleDecayList(); | ||||
EvtParticleDecayList& operator=( const EvtParticleDecayList& o ); | EvtParticleDecayList& operator=( const EvtParticleDecayList& o ); | ||||
int getNMode() const { return _nmode; } | int getNMode() const { return m_nmode; } | ||||
void setNMode( int nmode ); | void setNMode( int nmode ); | ||||
EvtDecayBase* getDecayModel( EvtParticle* p ); | EvtDecayBase* getDecayModel( EvtParticle* p ); | ||||
EvtDecayBase* getDecayModel( int imode ); | EvtDecayBase* getDecayModel( int imode ); | ||||
EvtParticleDecay& getDecay( int nchannel ) const; | EvtParticleDecay& getDecay( int nchannel ) const; | ||||
double getRawBrfrSum() { return _rawbrfrsum; } | double getRawBrfrSum() { return m_rawbrfrsum; } | ||||
void setRawBrfrSum( double rawbrfrsum ) { _rawbrfrsum = rawbrfrsum; } | void setRawBrfrSum( double rawbrfrsum ) { m_rawbrfrsum = rawbrfrsum; } | ||||
void makeChargeConj( EvtParticleDecayList* conjDecayList ); | void makeChargeConj( EvtParticleDecayList* conjDecayList ); | ||||
void removeDecay(); | void removeDecay(); | ||||
void alocateDecay( int nmode ) | void alocateDecay( int nmode ) | ||||
{ | { | ||||
_decaylist = new EvtParticleDecayPtr[nmode]; | m_decaylist = new EvtParticleDecayPtr[nmode]; | ||||
} | } | ||||
void removeMode( EvtDecayBase* decay ); | void removeMode( EvtDecayBase* decay ); | ||||
void addMode( EvtDecayBase* decay, double brfr, double massmin ); | void addMode( EvtDecayBase* decay, double brfr, double massmin ); | ||||
void finalize(); | void finalize(); | ||||
void printSummary(); | void printSummary(); | ||||
bool isJetSet() const; | bool isJetSet() const; | ||||
private: | private: | ||||
EvtParticleDecayPtr* _decaylist; | EvtParticleDecayPtr* m_decaylist; | ||||
double _rawbrfrsum; | double m_rawbrfrsum; | ||||
int _nmode; | int m_nmode; | ||||
}; | }; | ||||
#endif | #endif |