BOSS 8.0.0
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
25#include "EvtAbsLineShape.hh"
26#include "EvtId.hh"
27#include "EvtSpinType.hh"
28#include <string>
29
31
32public:
34 EvtPartProp( const EvtPartProp& x );
35
37
38 double getMass() { return _lineShape->getMass(); }
39 double getMassMin() { return _lineShape->getMassMin(); }
40 double getMassMax() { return _lineShape->getMassMax(); }
41 double getMaxRange() { return _lineShape->getMaxRange(); }
42 double getWidth() { return _lineShape->getWidth(); }
43
44 double getRandMass( EvtId* parId, int nDaug, EvtId* dauId, EvtId* othDauId, double maxMass,
45 double* dauMasses ) {
46 return _lineShape->getRandMass( parId, nDaug, dauId, othDauId, maxMass, dauMasses );
47 }
48 double getMassProb( double mass, double massPar, int nDaug, double* massDau ) {
49 return _lineShape->getMassProb( mass, massPar, nDaug, massDau );
50 }
51
52 double getctau() { return _ctau; }
53 void setctau( double tau ) { _ctau = tau; }
54
55 int getChg3() { return _chg3; }
56 void setChg3( int c3 ) { _chg3 = c3; }
57
58 EvtSpinType::spintype getSpinType() { return _spintype; }
59 void setSpinType( EvtSpinType::spintype stype ) { _spintype = stype; }
60
61 const std::string& getName() { return _name; }
62 void setName( std::string pname );
63
64 EvtId getId() { return _id; }
65 void setId( EvtId id ) { _id = id; }
66
67 EvtId getIdChgConj() { return _idchgconj; }
68 void setIdChgConj( EvtId idchgconj ) { _idchgconj = idchgconj; }
69
70 int getStdHep() { return _stdhep; }
71 void setStdHep( int stdhep ) { _stdhep = stdhep; }
72
73 int getLundKC() { return _lundkc; }
74 void setLundKC( int lundkc ) { _lundkc = lundkc; }
75
76 EvtAbsLineShape* getLineShape() { return _lineShape; }
77 void initLineShape( double mass, double width, double maxRange );
78 // void initLineShape(double mass, double width, double maxRange, double mDaug1, double
79 // mDaug2, int l);
80
81 // setLineShape takes ownership of l
82 void setLineShape( EvtAbsLineShape* l ) { _lineShape = l; }
83 double rollMass() { return _lineShape->rollMass(); }
84
86
87 void reSetMass( double mass );
88 void reSetWidth( double width );
89
90 void reSetMassMin( double mass );
91 void reSetMassMax( double mass );
92 void reSetBlatt( double blatt );
93 void includeBirthFactor( bool yesno );
94 void includeDecayFactor( bool yesno );
95 void addFactorPn( double factor );
96 void newLineShape( std::string type );
97 void setPWForDecay( int spin, EvtId d1, EvtId d2 );
98 void setPWForBirthL( int spin, EvtId par, EvtId othD );
99 void fixLSForSP8() { _lineShape->fixForSP8(); }
100
101private:
102 EvtAbsLineShape* _lineShape;
103
104 double _ctau;
105 EvtId _id;
106 EvtId _idchgconj;
107 EvtSpinType::spintype _spintype;
108 int _chg3;
109 int _stdhep;
110 int _lundkc;
111 std::string _name;
112};
113
114#endif
double mass
Definition EvtId.hh:27
double getRandMass(EvtId *parId, int nDaug, EvtId *dauId, EvtId *othDauId, double maxMass, double *dauMasses)
void initLineShape(double mass, double width, double maxRange)
double getMassMin()
void reSetBlatt(double blatt)
void setName(std::string pname)
double rollMass()
void reSetMassMin(double mass)
void setPWForDecay(int spin, EvtId d1, EvtId d2)
void setStdHep(int stdhep)
int getStdHep()
EvtAbsLineShape * getLineShape()
double getMass()
void setPWForBirthL(int spin, EvtId par, EvtId othD)
void setChg3(int c3)
void setSpinType(EvtSpinType::spintype stype)
void fixLSForSP8()
void addFactorPn(double factor)
double getMaxRange()
void includeDecayFactor(bool yesno)
void setIdChgConj(EvtId idchgconj)
void includeBirthFactor(bool yesno)
void setLundKC(int lundkc)
EvtPartProp & operator=(const EvtPartProp &x)
const std::string & getName()
void reSetMass(double mass)
void setLineShape(EvtAbsLineShape *l)
double getctau()
void reSetWidth(double width)
void newLineShape(std::string type)
EvtId getId()
EvtSpinType::spintype getSpinType()
EvtId getIdChgConj()
void setId(EvtId id)
double getWidth()
void setctau(double tau)
double getMassMax()
int getLundKC()
double getMassProb(double mass, double massPar, int nDaug, double *massDau)
void reSetMassMax(double mass)