1 //--------------------------------------------------------------------------
4 // This software is part of the EvtGen package developed jointly
5 // for the BaBar and CLEO collaborations. If you use all or part
6 // of it, please give an appropriate acknowledgement.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 1998 Caltech, UCSB
11 // Module: EvtGen/EvtPartProp.hh
13 // Description: Class to keep the particle properties for
16 // Modification history:
18 // RYD April 4, 1997 Module created
20 //------------------------------------------------------------------------
22 #ifndef EVTPARTPROP_HH
23 #define EVTPARTPROP_HH
25 #include "EvtGenBase/EvtSpinType.hh"
26 #include "EvtGenBase/EvtId.hh"
28 #include "EvtGenBase/EvtAbsLineShape.hh"
36 EvtPartProp(const EvtPartProp& x);
40 double getMass() {return _lineShape->getMass();}
41 double getMassMin() {return _lineShape->getMassMin();}
42 double getMassMax() {return _lineShape->getMassMax();}
43 double getMaxRange() {return _lineShape->getMaxRange();}
44 double getWidth() {return _lineShape->getWidth();}
46 double getRandMass(EvtId *parId, int nDaug, EvtId *dauId,EvtId *othDauId,double maxMass, double *dauMasses) {return _lineShape->getRandMass(parId,nDaug,dauId,othDauId,maxMass,dauMasses);}
47 double getMassProb(double mass, double massPar, int nDaug, double *massDau) { return _lineShape->getMassProb(mass,massPar,nDaug,massDau);}
49 double getctau() {return _ctau; }
50 void setctau(double tau) { _ctau=tau; }
52 int getChg3() {return _chg3; }
53 void setChg3(int c3) { _chg3=c3; }
55 EvtSpinType::spintype getSpinType() {return _spintype; }
56 void setSpinType(EvtSpinType::spintype stype ) { _spintype=stype; }
58 const std::string& getName() {return _name;}
59 void setName(std::string pname);
61 EvtId getId() {return _id;}
62 void setId(EvtId id) {_id=id;}
64 EvtId getIdChgConj() {return _idchgconj;}
65 void setIdChgConj(EvtId idchgconj) {_idchgconj=idchgconj;}
67 int getStdHep() {return _stdhep;}
68 void setStdHep(int stdhep) {_stdhep=stdhep;}
70 int getLundKC() {return _lundkc;}
71 void setLundKC(int lundkc) {_lundkc=lundkc;}
73 EvtAbsLineShape* getLineShape() {return _lineShape;}
74 void initLineShape(double mass, double width, double maxRange);
75 // void initLineShape(double mass, double width, double maxRange, double mDaug1, double mDaug2, int l);
77 // setLineShape takes ownership of l
78 void setLineShape(EvtAbsLineShape *l) { _lineShape=l;}
79 double rollMass(){return _lineShape->rollMass();}
81 EvtPartProp& operator=(const EvtPartProp& x);
83 void reSetMass(double mass);
84 void reSetWidth(double width);
86 void reSetMassMin(double mass);
87 void reSetMassMax(double mass);
88 void reSetBlatt(double blatt);
89 void reSetBlattBirth(double blatt);
90 void includeBirthFactor(bool yesno);
91 void includeDecayFactor(bool yesno);
92 void newLineShape(std::string type);
93 void setPWForDecay( int spin, EvtId d1, EvtId d2);
94 void setPWForBirthL( int spin, EvtId par, EvtId othD);
98 EvtAbsLineShape *_lineShape;
103 EvtSpinType::spintype _spintype;