BOSS 7.1.2
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 31 of file EvtPartProp.hh.

Constructor & Destructor Documentation

◆ EvtPartProp() [1/2]

EvtPartProp::EvtPartProp ( )

Definition at line 34 of file EvtPartProp.cc.

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

◆ EvtPartProp() [2/2]

EvtPartProp::EvtPartProp ( const EvtPartProp & x)

Definition at line 47 of file EvtPartProp.cc.

47 {
48
49 if (0!=x._lineShape){
50 _lineShape=x._lineShape->clone();
51 }
52 else{
53 _lineShape=0;
54 }
55 _ctau=x._ctau;
56 _name=x._name;
57 _spintype=x._spintype;
58 _id=x._id;
59 _idchgconj=x._idchgconj;
60 _chg3=x._chg3;
61 _stdhep=x._stdhep;
62 _lundkc=x._lundkc;
63
64}
Double_t x[10]

◆ ~EvtPartProp()

EvtPartProp::~EvtPartProp ( )

Definition at line 66 of file EvtPartProp.cc.

66 {
67 if ( _lineShape ) delete _lineShape;
68 _lineShape=0;
69}

Member Function Documentation

◆ addFactorPn()

void EvtPartProp::addFactorPn ( double factor = 0)

Definition at line 164 of file EvtPartProp.cc.

164 {
165 if (!_lineShape) ::abort();
166 _lineShape->addFactorPn(factor);
167
168}
void addFactorPn(double factor=0.)

◆ fixLSForSP8()

void EvtPartProp::fixLSForSP8 ( )
inline

Definition at line 95 of file EvtPartProp.hh.

95{_lineShape->fixForSP8();}

◆ getChg3()

int EvtPartProp::getChg3 ( )
inline

Definition at line 52 of file EvtPartProp.hh.

52{return _chg3; }

◆ getctau()

double EvtPartProp::getctau ( )
inline

Definition at line 49 of file EvtPartProp.hh.

49{return _ctau; }

◆ getId()

EvtId EvtPartProp::getId ( )
inline

Definition at line 61 of file EvtPartProp.hh.

61{return _id;}

◆ getIdChgConj()

EvtId EvtPartProp::getIdChgConj ( )
inline

Definition at line 64 of file EvtPartProp.hh.

64{return _idchgconj;}

◆ getLineShape()

EvtAbsLineShape * EvtPartProp::getLineShape ( )
inline

Definition at line 73 of file EvtPartProp.hh.

73{return _lineShape;}

◆ getLundKC()

int EvtPartProp::getLundKC ( )
inline

Definition at line 70 of file EvtPartProp.hh.

70{return _lundkc;}

◆ getMass()

double EvtPartProp::getMass ( )
inline

Definition at line 40 of file EvtPartProp.hh.

40{return _lineShape->getMass();}

◆ getMassMax()

double EvtPartProp::getMassMax ( )
inline

Definition at line 42 of file EvtPartProp.hh.

42{return _lineShape->getMassMax();}

◆ getMassMin()

double EvtPartProp::getMassMin ( )
inline

Definition at line 41 of file EvtPartProp.hh.

41{return _lineShape->getMassMin();}

◆ getMassProb()

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

Definition at line 47 of file EvtPartProp.hh.

47{ return _lineShape->getMassProb(mass,massPar,nDaug,massDau);}
double mass
virtual double getMassProb(double mass, double massPar, int nDaug, double *massDau)

◆ getMaxRange()

double EvtPartProp::getMaxRange ( )
inline

Definition at line 43 of file EvtPartProp.hh.

43{return _lineShape->getMaxRange();}

◆ getName()

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

Definition at line 58 of file EvtPartProp.hh.

58{return _name;}

◆ getRandMass()

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

Definition at line 46 of file EvtPartProp.hh.

46{return _lineShape->getRandMass(parId,nDaug,dauId,othDauId,maxMass,dauMasses);}
virtual double getRandMass(EvtId *parId, int nDaug, EvtId *dauId, EvtId *othDaugId, double maxMass, double *dauMasses)

◆ getSpinType()

EvtSpinType::spintype EvtPartProp::getSpinType ( )
inline

Definition at line 55 of file EvtPartProp.hh.

55{return _spintype; }

◆ getStdHep()

int EvtPartProp::getStdHep ( )
inline

Definition at line 67 of file EvtPartProp.hh.

67{return _stdhep;}

◆ getWidth()

double EvtPartProp::getWidth ( )
inline

Definition at line 44 of file EvtPartProp.hh.

44{return _lineShape->getWidth();}

◆ includeBirthFactor()

void EvtPartProp::includeBirthFactor ( bool yesno)

Definition at line 155 of file EvtPartProp.cc.

155 {
156 if (!_lineShape) ::abort();
157 _lineShape->includeBirthFactor(yesno);
158}
void includeBirthFactor(bool yesno)

◆ includeDecayFactor()

void EvtPartProp::includeDecayFactor ( bool yesno)

Definition at line 159 of file EvtPartProp.cc.

159 {
160 if (!_lineShape) ::abort();
161 _lineShape->includeDecayFactor(yesno);
162}
void includeDecayFactor(bool yesno)

◆ initLineShape()

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

Definition at line 90 of file EvtPartProp.cc.

90 {
91
92 // _lineShape=new EvtAbsLineShape(mass,width,maxRange);
93 _lineShape=new EvtRelBreitWignerBarrierFact(mass,width,maxRange,_spintype);
94}

Referenced by EvtPDL::readPDT().

◆ newLineShape()

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

Definition at line 96 of file EvtPartProp.cc.

96 {
97
98 double m=_lineShape->getMass();
99 double w=_lineShape->getWidth();
100 double mR=_lineShape->getMaxRange();
101 EvtSpinType::spintype st=_lineShape->getSpinType();
102 delete _lineShape;
103 if ( type == "RELBW" ) {
104 _lineShape=new EvtRelBreitWignerBarrierFact(m,w,mR,st);
105 }
106 if ( type == "NONRELBW" ) {
107 _lineShape = new EvtAbsLineShape(m,w,mR,st);
108 }
109 if ( type == "FLAT" ) {
110 _lineShape = new EvtFlatLineShape(m,w,mR,st);
111 }
112 if ( type == "MANYDELTAFUNC" ) {
113 _lineShape = new EvtManyDeltaFuncLineShape(m,w,mR,st);
114 }
115}
double w
EvtSpinType::spintype getSpinType()

◆ operator=()

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

Definition at line 79 of file EvtPartProp.cc.

79 {
80
81 _lineShape=x._lineShape->clone();
82
83 _ctau=x._ctau;
84 _name=x._name;
85 _chg3=x._chg3;
86 _spintype=x._spintype;
87 return *this;
88}

◆ reSetBlatt()

void EvtPartProp::reSetBlatt ( double blatt)

Definition at line 151 of file EvtPartProp.cc.

151 {
152 if (!_lineShape) ::abort();
153 _lineShape->reSetBlatt(blatt);
154}
virtual void reSetBlatt(double blatt)

◆ reSetMass()

void EvtPartProp::reSetMass ( double mass)

Definition at line 123 of file EvtPartProp.cc.

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

◆ reSetMassMax()

void EvtPartProp::reSetMassMax ( double mass)

Definition at line 147 of file EvtPartProp.cc.

147 {
148 if (!_lineShape) ::abort();
149 _lineShape->reSetMassMax(mass);
150}
void reSetMassMax(double mass)

◆ reSetMassMin()

void EvtPartProp::reSetMassMin ( double mass)

Definition at line 143 of file EvtPartProp.cc.

143 {
144 if (!_lineShape) ::abort();
145 _lineShape->reSetMassMin(mass);
146}
void reSetMassMin(double mass)

◆ reSetWidth()

void EvtPartProp::reSetWidth ( double width)

Definition at line 127 of file EvtPartProp.cc.

127 {
128 if (!_lineShape) ::abort();
129 _lineShape->reSetWidth(width);
130}
void reSetWidth(double width)

◆ rollMass()

double EvtPartProp::rollMass ( )
inline

Definition at line 79 of file EvtPartProp.hh.

79{return _lineShape->rollMass();}
virtual double rollMass()

◆ setChg3()

void EvtPartProp::setChg3 ( int c3)
inline

Definition at line 53 of file EvtPartProp.hh.

53{ _chg3=c3; }

Referenced by EvtPDL::readPDT().

◆ setctau()

void EvtPartProp::setctau ( double tau)
inline

Definition at line 50 of file EvtPartProp.hh.

50{ _ctau=tau; }

Referenced by EvtPDL::readPDT().

◆ setId()

void EvtPartProp::setId ( EvtId id)
inline

Definition at line 62 of file EvtPartProp.hh.

62{_id=id;}

Referenced by EvtPDL::readPDT().

◆ setIdChgConj()

void EvtPartProp::setIdChgConj ( EvtId idchgconj)
inline

Definition at line 65 of file EvtPartProp.hh.

65{_idchgconj=idchgconj;}

Referenced by EvtPDL::readPDT().

◆ setLineShape()

void EvtPartProp::setLineShape ( EvtAbsLineShape * l)
inline

Definition at line 78 of file EvtPartProp.hh.

78{ _lineShape=l;}

◆ setLundKC()

void EvtPartProp::setLundKC ( int lundkc)
inline

Definition at line 71 of file EvtPartProp.hh.

71{_lundkc=lundkc;}

Referenced by EvtPDL::readPDT().

◆ setName()

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

Definition at line 72 of file EvtPartProp.cc.

72 {
73
74 _name=pname;
75
76}

Referenced by EvtPDL::readPDT().

◆ setPWForBirthL()

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

Definition at line 137 of file EvtPartProp.cc.

137 {
138 if (!_lineShape) ::abort();
139 _lineShape->setPWForBirthL(spin,par,othD);
140}
void setPWForBirthL(int spin, EvtId par, EvtId othD)

◆ setPWForDecay()

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

Definition at line 132 of file EvtPartProp.cc.

132 {
133 if (!_lineShape) ::abort();
134 _lineShape->setPWForDecay(spin,d1,d2);
135}
void setPWForDecay(int spin, EvtId d1, EvtId d2)

◆ setSpinType()

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

Definition at line 56 of file EvtPartProp.hh.

56{ _spintype=stype; }

Referenced by EvtPDL::readPDT().

◆ setStdHep()

void EvtPartProp::setStdHep ( int stdhep)
inline

Definition at line 68 of file EvtPartProp.hh.

68{_stdhep=stdhep;}

Referenced by EvtPDL::readPDT().


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