Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtAbsLineShape.hh
Show All 31 Lines | class EvtAbsLineShape { | ||||
public: | public: | ||||
EvtAbsLineShape() = default; | EvtAbsLineShape() = default; | ||||
EvtAbsLineShape( double mass, double width, double maxRange, | EvtAbsLineShape( double mass, double width, double maxRange, | ||||
EvtSpinType::spintype sp ); | EvtSpinType::spintype sp ); | ||||
virtual ~EvtAbsLineShape() = default; | virtual ~EvtAbsLineShape() = default; | ||||
EvtAbsLineShape& operator=( const EvtAbsLineShape& x ); | EvtAbsLineShape& operator=( const EvtAbsLineShape& x ); | ||||
EvtAbsLineShape( const EvtAbsLineShape& x ); | EvtAbsLineShape( const EvtAbsLineShape& x ); | ||||
double getMass() { return _mass; } | double getMass() { return m_mass; } | ||||
double getMassMin() { return _massMin; } | double getMassMin() { return m_massMin; } | ||||
double getMassMax() { return _massMax; } | double getMassMax() { return m_massMax; } | ||||
double getMaxRange() { return _maxRange; } | double getMaxRange() { return m_maxRange; } | ||||
double getWidth() { return _width; } | double getWidth() { return m_width; } | ||||
EvtSpinType::spintype getSpinType() { return _spin; } | EvtSpinType::spintype getSpinType() { return m_spin; } | ||||
virtual double rollMass(); | virtual double rollMass(); | ||||
virtual EvtAbsLineShape* clone(); | virtual EvtAbsLineShape* clone(); | ||||
void reSetMass( double mass ) { _mass = mass; } | void reSetMass( double mass ) { m_mass = mass; } | ||||
void reSetWidth( double width ) { _width = width; } | void reSetWidth( double width ) { m_width = width; } | ||||
void reSetMassMin( double mass ) { _massMin = mass; } | void reSetMassMin( double mass ) { m_massMin = mass; } | ||||
void reSetMassMax( double mass ) { _massMax = mass; } | void reSetMassMax( double mass ) { m_massMax = mass; } | ||||
virtual void reSetBlatt( double /*blatt*/ ){}; | virtual void reSetBlatt( double /*blatt*/ ){}; | ||||
virtual void reSetBlattBirth( double /*blatt*/ ){}; | virtual void reSetBlattBirth( double /*blatt*/ ){}; | ||||
void includeBirthFactor( bool yesno ) { _includeBirthFact = yesno; } | void includeBirthFactor( bool yesno ) { m_includeBirthFact = yesno; } | ||||
void includeDecayFactor( bool yesno ) { _includeDecayFact = yesno; } | void includeDecayFactor( bool yesno ) { m_includeDecayFact = yesno; } | ||||
void setPWForDecay( int spin, EvtId d1, EvtId d2 ) | void setPWForDecay( int spin, EvtId d1, EvtId d2 ) | ||||
{ | { | ||||
_userSetPW.push_back( spin ); | m_userSetPW.push_back( spin ); | ||||
_userSetPWD1.push_back( d1 ); | m_userSetPWD1.push_back( d1 ); | ||||
_userSetPWD2.push_back( d2 ); | m_userSetPWD2.push_back( d2 ); | ||||
} | } | ||||
void setPWForBirthL( int spin, EvtId par, EvtId othD ) | void setPWForBirthL( int spin, EvtId par, EvtId othD ) | ||||
{ | { | ||||
_userSetBirthPW.push_back( spin ); | m_userSetBirthPW.push_back( spin ); | ||||
_userSetBirthOthD.push_back( othD ); | m_userSetBirthOthD.push_back( othD ); | ||||
_userSetBirthPar.push_back( par ); | m_userSetBirthPar.push_back( par ); | ||||
} | } | ||||
virtual double getRandMass( EvtId* parId, int nDaug, EvtId* dauId, | virtual double getRandMass( EvtId* parId, int nDaug, EvtId* dauId, | ||||
EvtId* othDaugId, double maxMass, | EvtId* othDaugId, double maxMass, | ||||
double* dauMasses ); | double* dauMasses ); | ||||
virtual double getMassProb( double mass, double massPar, int nDaug, | virtual double getMassProb( double mass, double massPar, int nDaug, | ||||
double* massDau ); | double* massDau ); | ||||
protected: | protected: | ||||
bool _includeDecayFact; | bool m_includeDecayFact; | ||||
bool _includeBirthFact; | bool m_includeBirthFact; | ||||
double _mass; | double m_mass; | ||||
double _massMin; | double m_massMin; | ||||
double _massMax; | double m_massMax; | ||||
double _width; | double m_width; | ||||
double _maxRange; | double m_maxRange; | ||||
// allow for special cases where the default method of picking the | // allow for special cases where the default method of picking the | ||||
//lowest allowed partial wave for a decay is not the right answer. | //lowest allowed partial wave for a decay is not the right answer. | ||||
// string is "<spin> <daughter1> <daughter2>" | // string is "<spin> <daughter1> <daughter2>" | ||||
//new 9/12/2003 Lange | //new 9/12/2003 Lange | ||||
std::vector<EvtId> _userSetPWD1, _userSetPWD2; | std::vector<EvtId> m_userSetPWD1, m_userSetPWD2; | ||||
std::vector<int> _userSetPW; | std::vector<int> m_userSetPW; | ||||
// also do it for birth factors | // also do it for birth factors | ||||
std::vector<EvtId> _userSetBirthPar, _userSetBirthOthD; | std::vector<EvtId> m_userSetBirthPar, m_userSetBirthOthD; | ||||
std::vector<int> _userSetBirthPW; | std::vector<int> m_userSetBirthPW; | ||||
EvtSpinType::spintype _spin; | EvtSpinType::spintype m_spin; | ||||
}; | }; | ||||
#endif | #endif |