BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPartProp.hh
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
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.
7//
8// Copyright Information: See EvtGen/COPYRIGHT
9// Copyright (C) 1998 Caltech, UCSB
10//
11// Module: EvtGen/EvtPartProp.hh
12//
13// Description: Class to keep the particle properties for
14// one particle
15//
16// Modification history:
17//
18// RYD April 4, 1997 Module created
19//
20//------------------------------------------------------------------------
21
22#ifndef EVTPARTPROP_HH
23#define EVTPARTPROP_HH
24
26#include "EvtGenBase/EvtId.hh"
27#include <string>
29
30
32
33public:
34
35 EvtPartProp();
36 EvtPartProp(const EvtPartProp& x);
37
38 ~EvtPartProp();
39
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();}
45
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);}
48
49 double getctau() {return _ctau; }
50 void setctau(double tau) { _ctau=tau; }
51
52 int getChg3() {return _chg3; }
53 void setChg3(int c3) { _chg3=c3; }
54
55 EvtSpinType::spintype getSpinType() {return _spintype; }
56 void setSpinType(EvtSpinType::spintype stype ) { _spintype=stype; }
57
58 const std::string& getName() {return _name;}
59 void setName(std::string pname);
60
61 EvtId getId() {return _id;}
62 void setId(EvtId id) {_id=id;}
63
64 EvtId getIdChgConj() {return _idchgconj;}
65 void setIdChgConj(EvtId idchgconj) {_idchgconj=idchgconj;}
66
67 int getStdHep() {return _stdhep;}
68 void setStdHep(int stdhep) {_stdhep=stdhep;}
69
70 int getLundKC() {return _lundkc;}
71 void setLundKC(int lundkc) {_lundkc=lundkc;}
72
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);
76
77 // setLineShape takes ownership of l
78 void setLineShape(EvtAbsLineShape *l) { _lineShape=l;}
79 double rollMass(){return _lineShape->rollMass();}
80
82
83 void reSetMass(double mass);
84 void reSetWidth(double width);
85
86 void reSetMassMin(double mass);
87 void reSetMassMax(double mass);
88 void reSetBlatt(double blatt);
89 void includeBirthFactor(bool yesno);
90 void includeDecayFactor(bool yesno);
91 void addFactorPn(double factor);
92 void newLineShape(std::string type);
93 void setPWForDecay( int spin, EvtId d1, EvtId d2);
94 void setPWForBirthL( int spin, EvtId par, EvtId othD);
95 void fixLSForSP8() {_lineShape->fixForSP8();}
96
97private:
98
99 EvtAbsLineShape *_lineShape;
100
101 double _ctau;
102 EvtId _id;
103 EvtId _idchgconj;
104 EvtSpinType::spintype _spintype;
105 int _chg3;
106 int _stdhep;
107 int _lundkc;
108 std::string _name;
109
110};
111
112#endif
113
double mass
Double_t x[10]
virtual double getMassProb(double mass, double massPar, int nDaug, double *massDau)
virtual double getRandMass(EvtId *parId, int nDaug, EvtId *dauId, EvtId *othDaugId, double maxMass, double *dauMasses)
virtual double rollMass()
Definition: EvtId.hh:27
double getRandMass(EvtId *parId, int nDaug, EvtId *dauId, EvtId *othDauId, double maxMass, double *dauMasses)
Definition: EvtPartProp.hh:46
void initLineShape(double mass, double width, double maxRange)
Definition: EvtPartProp.cc:90
double getMassMin()
Definition: EvtPartProp.hh:41
void reSetBlatt(double blatt)
Definition: EvtPartProp.cc:151
void setName(std::string pname)
Definition: EvtPartProp.cc:72
double rollMass()
Definition: EvtPartProp.hh:79
void reSetMassMin(double mass)
Definition: EvtPartProp.cc:143
void setPWForDecay(int spin, EvtId d1, EvtId d2)
Definition: EvtPartProp.cc:132
void setStdHep(int stdhep)
Definition: EvtPartProp.hh:68
int getStdHep()
Definition: EvtPartProp.hh:67
EvtAbsLineShape * getLineShape()
Definition: EvtPartProp.hh:73
double getMass()
Definition: EvtPartProp.hh:40
void setPWForBirthL(int spin, EvtId par, EvtId othD)
Definition: EvtPartProp.cc:137
void setChg3(int c3)
Definition: EvtPartProp.hh:53
void setSpinType(EvtSpinType::spintype stype)
Definition: EvtPartProp.hh:56
void fixLSForSP8()
Definition: EvtPartProp.hh:95
void addFactorPn(double factor)
Definition: EvtPartProp.cc:164
double getMaxRange()
Definition: EvtPartProp.hh:43
void includeDecayFactor(bool yesno)
Definition: EvtPartProp.cc:159
void setIdChgConj(EvtId idchgconj)
Definition: EvtPartProp.hh:65
void includeBirthFactor(bool yesno)
Definition: EvtPartProp.cc:155
void setLundKC(int lundkc)
Definition: EvtPartProp.hh:71
EvtPartProp & operator=(const EvtPartProp &x)
Definition: EvtPartProp.cc:79
const std::string & getName()
Definition: EvtPartProp.hh:58
void reSetMass(double mass)
Definition: EvtPartProp.cc:123
void setLineShape(EvtAbsLineShape *l)
Definition: EvtPartProp.hh:78
double getctau()
Definition: EvtPartProp.hh:49
void reSetWidth(double width)
Definition: EvtPartProp.cc:127
void newLineShape(std::string type)
Definition: EvtPartProp.cc:96
EvtId getId()
Definition: EvtPartProp.hh:61
EvtSpinType::spintype getSpinType()
Definition: EvtPartProp.hh:55
EvtId getIdChgConj()
Definition: EvtPartProp.hh:64
void setId(EvtId id)
Definition: EvtPartProp.hh:62
double getWidth()
Definition: EvtPartProp.hh:44
void setctau(double tau)
Definition: EvtPartProp.hh:50
double getMassMax()
Definition: EvtPartProp.hh:42
int getLundKC()
Definition: EvtPartProp.hh:70
double getMassProb(double mass, double massPar, int nDaug, double *massDau)
Definition: EvtPartProp.hh:47
void reSetMassMax(double mass)
Definition: EvtPartProp.cc:147
int getChg3()
Definition: EvtPartProp.hh:52