Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtPartProp.hh
Show All 27 Lines | |||||
#include <memory> | #include <memory> | ||||
#include <string> | #include <string> | ||||
class EvtPartProp { | class EvtPartProp { | ||||
public: | public: | ||||
EvtPartProp(); | EvtPartProp(); | ||||
EvtPartProp( const EvtPartProp& x ); | EvtPartProp( const EvtPartProp& x ); | ||||
double getMass() { return _lineShape->getMass(); } | double getMass() { return m_lineShape->getMass(); } | ||||
double getMassMin() { return _lineShape->getMassMin(); } | double getMassMin() { return m_lineShape->getMassMin(); } | ||||
double getMassMax() { return _lineShape->getMassMax(); } | double getMassMax() { return m_lineShape->getMassMax(); } | ||||
double getMaxRange() { return _lineShape->getMaxRange(); } | double getMaxRange() { return m_lineShape->getMaxRange(); } | ||||
double getWidth() { return _lineShape->getWidth(); } | double getWidth() { return m_lineShape->getWidth(); } | ||||
double getRandMass( EvtId* parId, int nDaug, EvtId* dauId, EvtId* othDauId, | double getRandMass( EvtId* parId, int nDaug, EvtId* dauId, EvtId* othDauId, | ||||
double maxMass, double* dauMasses ) | double maxMass, double* dauMasses ) | ||||
{ | { | ||||
return _lineShape->getRandMass( parId, nDaug, dauId, othDauId, maxMass, | return m_lineShape->getRandMass( parId, nDaug, dauId, othDauId, maxMass, | ||||
dauMasses ); | dauMasses ); | ||||
} | } | ||||
double getMassProb( double mass, double massPar, int nDaug, double* massDau ) | double getMassProb( double mass, double massPar, int nDaug, double* massDau ) | ||||
{ | { | ||||
return _lineShape->getMassProb( mass, massPar, nDaug, massDau ); | return m_lineShape->getMassProb( mass, massPar, nDaug, massDau ); | ||||
} | } | ||||
double getctau() { return _ctau; } | double getctau() { return m_ctau; } | ||||
void setctau( double tau ) { _ctau = tau; } | void setctau( double tau ) { m_ctau = tau; } | ||||
int getChg3() { return _chg3; } | int getChg3() { return m_chg3; } | ||||
void setChg3( int c3 ) { _chg3 = c3; } | void setChg3( int c3 ) { m_chg3 = c3; } | ||||
EvtSpinType::spintype getSpinType() { return _spintype; } | EvtSpinType::spintype getSpinType() { return m_spintype; } | ||||
void setSpinType( EvtSpinType::spintype stype ) { _spintype = stype; } | void setSpinType( EvtSpinType::spintype stype ) { m_spintype = stype; } | ||||
const std::string& getName() { return _name; } | const std::string& getName() { return m_name; } | ||||
void setName( std::string pname ); | void setName( std::string pname ); | ||||
EvtId getId() { return _id; } | EvtId getId() { return m_id; } | ||||
void setId( EvtId id ) { _id = id; } | void setId( EvtId id ) { m_id = id; } | ||||
EvtId getIdChgConj() { return _idchgconj; } | EvtId getIdChgConj() { return m_idchgconj; } | ||||
void setIdChgConj( EvtId idchgconj ) { _idchgconj = idchgconj; } | void setIdChgConj( EvtId idchgconj ) { m_idchgconj = idchgconj; } | ||||
int getStdHep() { return _stdhep; } | int getStdHep() { return m_stdhep; } | ||||
void setStdHep( int stdhep ) { _stdhep = stdhep; } | void setStdHep( int stdhep ) { m_stdhep = stdhep; } | ||||
int getLundKC() { return _lundkc; } | int getLundKC() { return m_lundkc; } | ||||
void setLundKC( int lundkc ) { _lundkc = lundkc; } | void setLundKC( int lundkc ) { m_lundkc = lundkc; } | ||||
EvtAbsLineShape* getLineShape() { return _lineShape.get(); } | EvtAbsLineShape* getLineShape() { return m_lineShape.get(); } | ||||
void initLineShape( double mass, double width, double maxRange ); | void initLineShape( double mass, double width, double maxRange ); | ||||
// void initLineShape(double mass, double width, double maxRange, double mDaug1, double mDaug2, int l); | // void initLineShape(double mass, double width, double maxRange, double mDaug1, double mDaug2, int l); | ||||
// setLineShape takes ownership of l | // setLineShape takes ownership of l | ||||
void setLineShape( EvtAbsLineShape* l ) { _lineShape.reset( l ); } | void setLineShape( EvtAbsLineShape* l ) { m_lineShape.reset( l ); } | ||||
double rollMass() { return _lineShape->rollMass(); } | double rollMass() { return m_lineShape->rollMass(); } | ||||
EvtPartProp& operator=( const EvtPartProp& x ); | EvtPartProp& operator=( const EvtPartProp& x ); | ||||
void reSetMass( double mass ); | void reSetMass( double mass ); | ||||
void reSetWidth( double width ); | void reSetWidth( double width ); | ||||
void reSetMassMin( double mass ); | void reSetMassMin( double mass ); | ||||
void reSetMassMax( double mass ); | void reSetMassMax( double mass ); | ||||
void reSetBlatt( double blatt ); | void reSetBlatt( double blatt ); | ||||
void reSetBlattBirth( double blatt ); | void reSetBlattBirth( double blatt ); | ||||
void includeBirthFactor( bool yesno ); | void includeBirthFactor( bool yesno ); | ||||
void includeDecayFactor( bool yesno ); | void includeDecayFactor( bool yesno ); | ||||
void newLineShape( std::string type ); | void newLineShape( std::string type ); | ||||
void setPWForDecay( int spin, EvtId d1, EvtId d2 ); | void setPWForDecay( int spin, EvtId d1, EvtId d2 ); | ||||
void setPWForBirthL( int spin, EvtId par, EvtId othD ); | void setPWForBirthL( int spin, EvtId par, EvtId othD ); | ||||
private: | private: | ||||
std::unique_ptr<EvtAbsLineShape> _lineShape; | std::unique_ptr<EvtAbsLineShape> m_lineShape; | ||||
double _ctau; | double m_ctau; | ||||
EvtId _id; | EvtId m_id; | ||||
EvtId _idchgconj; | EvtId m_idchgconj; | ||||
EvtSpinType::spintype _spintype; | EvtSpinType::spintype m_spintype; | ||||
int _chg3; | int m_chg3; | ||||
int _stdhep; | int m_stdhep; | ||||
int _lundkc; | int m_lundkc; | ||||
std::string _name; | std::string m_name; | ||||
}; | }; | ||||
#endif | #endif |