BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPartProp Class Reference

#include <EvtPartProp.hh>

Public Member Functions

 EvtPartProp ()
 EvtPartProp (const EvtPartProp &x)
 ~EvtPartProp ()
double getMass ()
double getMassMin ()
double getMassMax ()
double getMaxRange ()
double getWidth ()
double getRandMass (EvtId *parId, int nDaug, EvtId *dauId, EvtId *othDauId, double maxMass, double *dauMasses)
double getMassProb (double mass, double massPar, int nDaug, double *massDau)
double getctau ()
void setctau (double tau)
int getChg3 ()
void setChg3 (int c3)
EvtSpinType::spintype getSpinType ()
void setSpinType (EvtSpinType::spintype stype)
const std::string & getName ()
void setName (std::string pname)
EvtId getId ()
void setId (EvtId id)
EvtId getIdChgConj ()
void setIdChgConj (EvtId idchgconj)
int getStdHep ()
void setStdHep (int stdhep)
int getLundKC ()
void setLundKC (int lundkc)
EvtAbsLineShapegetLineShape ()
void initLineShape (double mass, double width, double maxRange)
void setLineShape (EvtAbsLineShape *l)
double rollMass ()
EvtPartPropoperator= (const EvtPartProp &x)
void reSetMass (double mass)
void reSetWidth (double width)
void reSetMassMin (double mass)
void reSetMassMax (double mass)
void reSetBlatt (double blatt)
void includeBirthFactor (bool yesno)
void includeDecayFactor (bool yesno)
void addFactorPn (double factor)
void newLineShape (std::string type)
void setPWForDecay (int spin, EvtId d1, EvtId d2)
void setPWForBirthL (int spin, EvtId par, EvtId othD)
void fixLSForSP8 ()

Detailed Description

Definition at line 30 of file EvtPartProp.hh.

Constructor & Destructor Documentation

◆ EvtPartProp() [1/2]

EvtPartProp::EvtPartProp ( )

Definition at line 34 of file EvtPartProp.cc.

35 : _id( -1, -1 ), _idchgconj( -1, -1 ), _chg3( 0 ), _stdhep( 0 ), _lundkc( 0 ) {
36 _lineShape = 0;
37 _ctau = 0.0;
38 _name = "*******";
39 _spintype = EvtSpinType::SCALAR;
40}

Referenced by EvtPartProp(), and operator=().

◆ EvtPartProp() [2/2]

EvtPartProp::EvtPartProp ( const EvtPartProp & x)

Definition at line 42 of file EvtPartProp.cc.

42 {
43
44 if ( 0 != x._lineShape ) { _lineShape = x._lineShape->clone(); }
45 else { _lineShape = 0; }
46 _ctau = x._ctau;
47 _name = x._name;
48 _spintype = x._spintype;
49 _id = x._id;
50 _idchgconj = x._idchgconj;
51 _chg3 = x._chg3;
52 _stdhep = x._stdhep;
53 _lundkc = x._lundkc;
54}
Double_t x[10]

◆ ~EvtPartProp()

EvtPartProp::~EvtPartProp ( )

Definition at line 56 of file EvtPartProp.cc.

56 {
57 if ( _lineShape ) delete _lineShape;
58 _lineShape = 0;
59}

Member Function Documentation

◆ addFactorPn()

void EvtPartProp::addFactorPn ( double factor = 0)

Definition at line 140 of file EvtPartProp.cc.

140 {
141 if ( !_lineShape ) ::abort();
142 _lineShape->addFactorPn( factor );
143}

◆ fixLSForSP8()

void EvtPartProp::fixLSForSP8 ( )
inline

Definition at line 99 of file EvtPartProp.hh.

99{ _lineShape->fixForSP8(); }

◆ getChg3()

int EvtPartProp::getChg3 ( )
inline

Definition at line 55 of file EvtPartProp.hh.

55{ return _chg3; }

◆ getctau()

double EvtPartProp::getctau ( )
inline

Definition at line 52 of file EvtPartProp.hh.

52{ return _ctau; }

◆ getId()

EvtId EvtPartProp::getId ( )
inline

Definition at line 64 of file EvtPartProp.hh.

64{ return _id; }

◆ getIdChgConj()

EvtId EvtPartProp::getIdChgConj ( )
inline

Definition at line 67 of file EvtPartProp.hh.

67{ return _idchgconj; }

◆ getLineShape()

EvtAbsLineShape * EvtPartProp::getLineShape ( )
inline

Definition at line 76 of file EvtPartProp.hh.

76{ return _lineShape; }

◆ getLundKC()

int EvtPartProp::getLundKC ( )
inline

Definition at line 73 of file EvtPartProp.hh.

73{ return _lundkc; }

◆ getMass()

double EvtPartProp::getMass ( )
inline

Definition at line 38 of file EvtPartProp.hh.

38{ return _lineShape->getMass(); }

◆ getMassMax()

double EvtPartProp::getMassMax ( )
inline

Definition at line 40 of file EvtPartProp.hh.

40{ return _lineShape->getMassMax(); }

◆ getMassMin()

double EvtPartProp::getMassMin ( )
inline

Definition at line 39 of file EvtPartProp.hh.

39{ return _lineShape->getMassMin(); }

◆ getMassProb()

double EvtPartProp::getMassProb ( double mass,
double massPar,
int nDaug,
double * massDau )
inline

Definition at line 48 of file EvtPartProp.hh.

48 {
49 return _lineShape->getMassProb( mass, massPar, nDaug, massDau );
50 }
double mass

◆ getMaxRange()

double EvtPartProp::getMaxRange ( )
inline

Definition at line 41 of file EvtPartProp.hh.

41{ return _lineShape->getMaxRange(); }

◆ getName()

const std::string & EvtPartProp::getName ( )
inline

Definition at line 61 of file EvtPartProp.hh.

61{ return _name; }

◆ getRandMass()

double EvtPartProp::getRandMass ( EvtId * parId,
int nDaug,
EvtId * dauId,
EvtId * othDauId,
double maxMass,
double * dauMasses )
inline

Definition at line 44 of file EvtPartProp.hh.

45 {
46 return _lineShape->getRandMass( parId, nDaug, dauId, othDauId, maxMass, dauMasses );
47 }

◆ getSpinType()

EvtSpinType::spintype EvtPartProp::getSpinType ( )
inline

Definition at line 58 of file EvtPartProp.hh.

58{ return _spintype; }

◆ getStdHep()

int EvtPartProp::getStdHep ( )
inline

Definition at line 70 of file EvtPartProp.hh.

70{ return _stdhep; }

◆ getWidth()

double EvtPartProp::getWidth ( )
inline

Definition at line 42 of file EvtPartProp.hh.

42{ return _lineShape->getWidth(); }

◆ includeBirthFactor()

void EvtPartProp::includeBirthFactor ( bool yesno)

Definition at line 131 of file EvtPartProp.cc.

131 {
132 if ( !_lineShape ) ::abort();
133 _lineShape->includeBirthFactor( yesno );
134}

◆ includeDecayFactor()

void EvtPartProp::includeDecayFactor ( bool yesno)

Definition at line 135 of file EvtPartProp.cc.

135 {
136 if ( !_lineShape ) ::abort();
137 _lineShape->includeDecayFactor( yesno );
138}

◆ initLineShape()

void EvtPartProp::initLineShape ( double mass,
double width,
double maxRange )

Definition at line 74 of file EvtPartProp.cc.

74 {
75
76 // _lineShape=new EvtAbsLineShape(mass,width,maxRange);
77 _lineShape = new EvtRelBreitWignerBarrierFact( mass, width, maxRange, _spintype );
78}

Referenced by EvtPDL::readPDT().

◆ newLineShape()

void EvtPartProp::newLineShape ( std::string type)

Definition at line 80 of file EvtPartProp.cc.

80 {
81
82 double m = _lineShape->getMass();
83 double w = _lineShape->getWidth();
84 double mR = _lineShape->getMaxRange();
85 EvtSpinType::spintype st = _lineShape->getSpinType();
86 delete _lineShape;
87 if ( type == "RELBW" ) { _lineShape = new EvtRelBreitWignerBarrierFact( m, w, mR, st ); }
88 if ( type == "NONRELBW" ) { _lineShape = new EvtAbsLineShape( m, w, mR, st ); }
89 if ( type == "FLAT" ) { _lineShape = new EvtFlatLineShape( m, w, mR, st ); }
90 if ( type == "MANYDELTAFUNC" )
91 { _lineShape = new EvtManyDeltaFuncLineShape( m, w, mR, st ); }
92}
double w

◆ operator=()

EvtPartProp & EvtPartProp::operator= ( const EvtPartProp & x)

Definition at line 63 of file EvtPartProp.cc.

63 {
64
65 _lineShape = x._lineShape->clone();
66
67 _ctau = x._ctau;
68 _name = x._name;
69 _chg3 = x._chg3;
70 _spintype = x._spintype;
71 return *this;
72}

◆ reSetBlatt()

void EvtPartProp::reSetBlatt ( double blatt)

Definition at line 127 of file EvtPartProp.cc.

127 {
128 if ( !_lineShape ) ::abort();
129 _lineShape->reSetBlatt( blatt );
130}

◆ reSetMass()

void EvtPartProp::reSetMass ( double mass)

Definition at line 100 of file EvtPartProp.cc.

100 {
101 if ( !_lineShape ) ::abort();
102 _lineShape->reSetMass( mass );
103}

◆ reSetMassMax()

void EvtPartProp::reSetMassMax ( double mass)

Definition at line 123 of file EvtPartProp.cc.

123 {
124 if ( !_lineShape ) ::abort();
125 _lineShape->reSetMassMax( mass );
126}

◆ reSetMassMin()

void EvtPartProp::reSetMassMin ( double mass)

Definition at line 119 of file EvtPartProp.cc.

119 {
120 if ( !_lineShape ) ::abort();
121 _lineShape->reSetMassMin( mass );
122}

◆ reSetWidth()

void EvtPartProp::reSetWidth ( double width)

Definition at line 104 of file EvtPartProp.cc.

104 {
105 if ( !_lineShape ) ::abort();
106 _lineShape->reSetWidth( width );
107}

◆ rollMass()

double EvtPartProp::rollMass ( )
inline

Definition at line 83 of file EvtPartProp.hh.

83{ return _lineShape->rollMass(); }

◆ setChg3()

void EvtPartProp::setChg3 ( int c3)
inline

Definition at line 56 of file EvtPartProp.hh.

56{ _chg3 = c3; }

Referenced by EvtPDL::readPDT().

◆ setctau()

void EvtPartProp::setctau ( double tau)
inline

Definition at line 53 of file EvtPartProp.hh.

53{ _ctau = tau; }

Referenced by EvtPDL::readPDT().

◆ setId()

void EvtPartProp::setId ( EvtId id)
inline

Definition at line 65 of file EvtPartProp.hh.

65{ _id = id; }

Referenced by EvtPDL::readPDT().

◆ setIdChgConj()

void EvtPartProp::setIdChgConj ( EvtId idchgconj)
inline

Definition at line 68 of file EvtPartProp.hh.

68{ _idchgconj = idchgconj; }

Referenced by EvtPDL::readPDT().

◆ setLineShape()

void EvtPartProp::setLineShape ( EvtAbsLineShape * l)
inline

Definition at line 82 of file EvtPartProp.hh.

82{ _lineShape = l; }

◆ setLundKC()

void EvtPartProp::setLundKC ( int lundkc)
inline

Definition at line 74 of file EvtPartProp.hh.

74{ _lundkc = lundkc; }

Referenced by EvtPDL::readPDT().

◆ setName()

void EvtPartProp::setName ( std::string pname)

Definition at line 61 of file EvtPartProp.cc.

61{ _name = pname; }

Referenced by EvtPDL::readPDT().

◆ setPWForBirthL()

void EvtPartProp::setPWForBirthL ( int spin,
EvtId par,
EvtId othD )

Definition at line 114 of file EvtPartProp.cc.

114 {
115 if ( !_lineShape ) ::abort();
116 _lineShape->setPWForBirthL( spin, par, othD );
117}

◆ setPWForDecay()

void EvtPartProp::setPWForDecay ( int spin,
EvtId d1,
EvtId d2 )

Definition at line 109 of file EvtPartProp.cc.

109 {
110 if ( !_lineShape ) ::abort();
111 _lineShape->setPWForDecay( spin, d1, d2 );
112}

◆ setSpinType()

void EvtPartProp::setSpinType ( EvtSpinType::spintype stype)
inline

Definition at line 59 of file EvtPartProp.hh.

59{ _spintype = stype; }

Referenced by EvtPDL::readPDT().

◆ setStdHep()

void EvtPartProp::setStdHep ( int stdhep)
inline

Definition at line 71 of file EvtPartProp.hh.

71{ _stdhep = stdhep; }

Referenced by EvtPDL::readPDT().


The documentation for this class was generated from the following files: