BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtParticleDecay Class Reference

#include <EvtParticleDecay.hh>

Public Member Functions

 EvtParticleDecay ()
 
 ~EvtParticleDecay ()
 
void chargeConj (EvtParticleDecay *decay)
 
void setDecayModel (EvtDecayBase *decay)
 
EvtDecayBasegetDecayModel ()
 
double getBrfrSum ()
 
void setBrfrSum (double brfrsum)
 
double getMassMin ()
 
void setMassMin (double massmin)
 
void printSummary ()
 
 EvtParticleDecay ()
 
 ~EvtParticleDecay ()
 
void chargeConj (EvtParticleDecay *decay)
 
void setDecayModel (EvtDecayBase *decay)
 
EvtDecayBasegetDecayModel ()
 
double getBrfrSum ()
 
void setBrfrSum (double brfrsum)
 
double getMassMin ()
 
void setMassMin (double massmin)
 
void printSummary ()
 

Detailed Description

Constructor & Destructor Documentation

◆ EvtParticleDecay() [1/2]

EvtParticleDecay::EvtParticleDecay ( )
inline

Definition at line 31 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticleDecay.hh.

31 {
32 _decay=0;
33 _brfrsum=0.0;
34 _massmin=0.0;
35 }

◆ ~EvtParticleDecay() [1/2]

EvtParticleDecay::~EvtParticleDecay ( )
inline

Definition at line 37 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticleDecay.hh.

37 {
38
39 if (_decay!=0) delete _decay;
40
41 }

◆ EvtParticleDecay() [2/2]

EvtParticleDecay::EvtParticleDecay ( )
inline

Definition at line 31 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticleDecay.hh.

31 {
32 _decay=0;
33 _brfrsum=0.0;
34 _massmin=0.0;
35 }

◆ ~EvtParticleDecay() [2/2]

EvtParticleDecay::~EvtParticleDecay ( )
inline

Definition at line 37 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticleDecay.hh.

37 {
38
39 if (_decay!=0) delete _decay;
40
41 }

Member Function Documentation

◆ chargeConj() [1/2]

void EvtParticleDecay::chargeConj ( EvtParticleDecay decay)

Definition at line 41 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticleDecay.cc.

41 {
42
43 _brfrsum=decay->_brfrsum;
44 _massmin=decay->_massmin;
45
46 _decay=decay->_decay->clone();
47
48 int ndaug=decay->_decay->getNDaug();
49 int narg=decay->_decay->getNArg();
50 double brfr=decay->_decay->getBranchingFraction();
51 std::string name;
52 decay->_decay->getName(name);
53 EvtId ipar=EvtPDL::chargeConj(decay->_decay->getParentId());
54 int i;
55 EvtId* daug=new EvtId[ndaug];
56 for(i=0;i<ndaug;i++){
57 daug[i]=EvtPDL::chargeConj(decay->_decay->getDaug(i));
58 }
59 //Had to add 1 to make sure the vector is not empty!
60 std::vector<std::string> args;
61 for(i=0;i<narg;i++){
62 args.push_back(decay->_decay->getArgStr(i));
63 }
64
65 _decay->saveDecayInfo(ipar,ndaug,daug,narg,args,name,brfr);
66
67 if (decay->_decay->getPHOTOS()) _decay->setPHOTOS();
68
69 delete [] daug;
70
71}
virtual EvtDecayBase * clone()=0
virtual void getName(std::string &name)=0
void saveDecayInfo(EvtId ipar, int ndaug, EvtId *daug, int narg, std::vector< std::string > &args, std::string name, double brfr)

Referenced by EvtParticleDecayList::makeChargeConj().

◆ chargeConj() [2/2]

void EvtParticleDecay::chargeConj ( EvtParticleDecay decay)

◆ getBrfrSum() [1/2]

◆ getBrfrSum() [2/2]

double EvtParticleDecay::getBrfrSum ( )
inline

Definition at line 47 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticleDecay.hh.

47{return _brfrsum;}

◆ getDecayModel() [1/2]

◆ getDecayModel() [2/2]

EvtDecayBase * EvtParticleDecay::getDecayModel ( )
inline

Definition at line 46 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticleDecay.hh.

46{return _decay;}

◆ getMassMin() [1/2]

double EvtParticleDecay::getMassMin ( )
inline

◆ getMassMin() [2/2]

double EvtParticleDecay::getMassMin ( )
inline

Definition at line 49 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticleDecay.hh.

49{return _massmin;}

◆ printSummary() [1/2]

void EvtParticleDecay::printSummary ( )

◆ printSummary() [2/2]

void EvtParticleDecay::printSummary ( )

◆ setBrfrSum() [1/2]

void EvtParticleDecay::setBrfrSum ( double  brfrsum)
inline

◆ setBrfrSum() [2/2]

void EvtParticleDecay::setBrfrSum ( double  brfrsum)
inline

Definition at line 48 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticleDecay.hh.

48{_brfrsum=brfrsum;}

◆ setDecayModel() [1/2]

void EvtParticleDecay::setDecayModel ( EvtDecayBase decay)
inline

◆ setDecayModel() [2/2]

void EvtParticleDecay::setDecayModel ( EvtDecayBase decay)
inline

Definition at line 45 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticleDecay.hh.

45{_decay=decay;}

◆ setMassMin() [1/2]

void EvtParticleDecay::setMassMin ( double  massmin)
inline

◆ setMassMin() [2/2]

void EvtParticleDecay::setMassMin ( double  massmin)
inline

Definition at line 50 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticleDecay.hh.

50{_massmin=massmin;}

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