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

#include <EvtFlatLineShape.hh>

Inheritance diagram for EvtFlatLineShape:

Public Member Functions

 EvtFlatLineShape ()
 EvtFlatLineShape (double mass, double width, double maxRange, EvtSpinType::spintype sp)
 ~EvtFlatLineShape ()
EvtFlatLineShapeoperator= (const EvtFlatLineShape &x)
 EvtFlatLineShape (const EvtFlatLineShape &x)
EvtAbsLineShapeclone ()
double getMassProb (double mass, double massPar, int nDaug, double *massDau)
double getRandMass (EvtId *parId, int nDaug, EvtId *dauId, EvtId *othDaugId, double maxMass, double *dauMasses)
Public Member Functions inherited from EvtAbsLineShape
 EvtAbsLineShape ()
 EvtAbsLineShape (double mass, double width, double maxRange, EvtSpinType::spintype sp)
virtual ~EvtAbsLineShape ()
EvtAbsLineShapeoperator= (const EvtAbsLineShape &x)
 EvtAbsLineShape (const EvtAbsLineShape &x)
double getMass ()
double getMassMin ()
double getMassMax ()
double getMaxRange ()
double getWidth ()
EvtSpinType::spintype getSpinType ()
virtual double rollMass ()
void reSetMass (double mass)
void reSetWidth (double width)
void reSetMassMin (double mass)
void reSetMassMax (double mass)
virtual void reSetBlatt (double blatt)
void includeBirthFactor (bool yesno)
void addFactorPn (double factor=0.)
void includeDecayFactor (bool yesno)
void setPWForDecay (int spin, EvtId d1, EvtId d2)
void setPWForBirthL (int spin, EvtId par, EvtId othD)
void fixForSP8 ()

Additional Inherited Members

Protected Attributes inherited from EvtAbsLineShape
bool _includeDecayFact
bool _includeBirthFact
double _addFactorPn
double _mass
double _massMin
double _massMax
double _width
double _maxRange
std::vector< EvtId_userSetPWD1
std::vector< EvtId_userSetPWD2
std::vector< int > _userSetPW
std::vector< EvtId_userSetBirthPar
std::vector< EvtId_userSetBirthOthD
std::vector< int > _userSetBirthPW
EvtSpinType::spintype _spin
bool _applyFixForSP8

Detailed Description

Definition at line 27 of file EvtFlatLineShape.hh.

Constructor & Destructor Documentation

◆ EvtFlatLineShape() [1/3]

EvtFlatLineShape::EvtFlatLineShape ( )

Definition at line 33 of file EvtFlatLineShape.cc.

33{}

Referenced by clone(), EvtFlatLineShape(), and operator=().

◆ EvtFlatLineShape() [2/3]

EvtFlatLineShape::EvtFlatLineShape ( double mass,
double width,
double maxRange,
EvtSpinType::spintype sp )

Definition at line 37 of file EvtFlatLineShape.cc.

38 {
39
40 _mass = mass;
41 _width = width;
42 _spin = sp;
43 _maxRange = maxRange;
44
45 double maxdelta = width;
46
47 _massMax = mass + maxdelta;
48 _massMin = mass - maxdelta;
49
50 if ( _massMin < 0. ) _massMin = 0.;
51}
double mass
EvtSpinType::spintype _spin

◆ ~EvtFlatLineShape()

EvtFlatLineShape::~EvtFlatLineShape ( )

Definition at line 35 of file EvtFlatLineShape.cc.

35{}

◆ EvtFlatLineShape() [3/3]

EvtFlatLineShape::EvtFlatLineShape ( const EvtFlatLineShape & x)

Definition at line 53 of file EvtFlatLineShape.cc.

53 {
54 _mass = x._mass;
55 _width = x._width;
56 _spin = x._spin;
57 _massMax = x._massMax;
58 _massMin = x._massMin;
59 _maxRange = x._maxRange;
60}
Double_t x[10]

Member Function Documentation

◆ clone()

EvtAbsLineShape * EvtFlatLineShape::clone ( )
virtual

Reimplemented from EvtAbsLineShape.

Definition at line 72 of file EvtFlatLineShape.cc.

72{ return new EvtFlatLineShape( *this ); }

◆ getMassProb()

double EvtFlatLineShape::getMassProb ( double mass,
double massPar,
int nDaug,
double * massDau )
virtual

Reimplemented from EvtAbsLineShape.

Definition at line 74 of file EvtFlatLineShape.cc.

75 {
76
77 double dTotMass = 0.;
78
79 int i;
80 for ( i = 0; i < nDaug; i++ ) { dTotMass += massDau[i]; }
81 if ( ( mass < dTotMass ) ) return 0.;
82
83 if ( massPar > 0.0000000001 )
84 {
85 if ( mass > massPar ) return 0.;
86 }
87
88 return 1.;
89}

◆ getRandMass()

double EvtFlatLineShape::getRandMass ( EvtId * parId,
int nDaug,
EvtId * dauId,
EvtId * othDaugId,
double maxMass,
double * dauMasses )
virtual

Reimplemented from EvtAbsLineShape.

Definition at line 91 of file EvtFlatLineShape.cc.

92 {
93
95}
static double Flat()
Definition EvtRandom.cc:69

◆ operator=()

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

Definition at line 62 of file EvtFlatLineShape.cc.

62 {
63 _mass = x._mass;
64 _massMax = x._massMax;
65 _massMin = x._massMin;
66 _width = x._width;
67 _maxRange = x._maxRange;
68 _spin = x._spin;
69 return *this;
70}

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