BOSS 7.1.0
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 ()
 

Detailed Description

Definition at line 27 of file EvtParticleDecay.hh.

Constructor & Destructor Documentation

◆ EvtParticleDecay()

EvtParticleDecay::EvtParticleDecay ( )
inline

Definition at line 31 of file EvtParticleDecay.hh.

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

◆ ~EvtParticleDecay()

EvtParticleDecay::~EvtParticleDecay ( )
inline

Definition at line 37 of file EvtParticleDecay.hh.

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

Member Function Documentation

◆ chargeConj()

void EvtParticleDecay::chargeConj ( EvtParticleDecay decay)

Definition at line 41 of file 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 setPHOTOS()
Definition: EvtDecayBase.hh:69
EvtId getParentId()
Definition: EvtDecayBase.hh:60
void saveDecayInfo(EvtId ipar, int ndaug, EvtId *daug, int narg, std::vector< std::string > &args, std::string name, double brfr)
double getBranchingFraction()
Definition: EvtDecayBase.hh:61
EvtId getDaug(int i)
Definition: EvtDecayBase.hh:66
std::string getArgStr(int j)
Definition: EvtDecayBase.hh:75
Definition: EvtId.hh:27
static EvtId chargeConj(EvtId id)
Definition: EvtPDL.cc:208

Referenced by EvtParticleDecayList::makeChargeConj().

◆ getBrfrSum()

double EvtParticleDecay::getBrfrSum ( )
inline

◆ getDecayModel()

EvtDecayBase * EvtParticleDecay::getDecayModel ( )
inline

◆ getMassMin()

double EvtParticleDecay::getMassMin ( )
inline

Definition at line 49 of file EvtParticleDecay.hh.

49{return _massmin;}

Referenced by EvtParticleDecayList::EvtParticleDecayList(), and EvtParticleDecayList::getDecayModel().

◆ printSummary()

void EvtParticleDecay::printSummary ( )

Definition at line 35 of file EvtParticleDecay.cc.

35 {
36
37 if (_decay!=0) _decay->printSummary();
38
39}
void printSummary()

Referenced by EvtParticleDecayList::printSummary().

◆ setBrfrSum()

void EvtParticleDecay::setBrfrSum ( double  brfrsum)
inline

◆ setDecayModel()

void EvtParticleDecay::setDecayModel ( EvtDecayBase decay)
inline

Definition at line 45 of file EvtParticleDecay.hh.

45{_decay=decay;}

Referenced by EvtParticleDecayList::addMode(), and EvtParticleDecayList::EvtParticleDecayList().

◆ setMassMin()

void EvtParticleDecay::setMassMin ( double  massmin)
inline

Definition at line 50 of file EvtParticleDecay.hh.

50{_massmin=massmin;}

Referenced by EvtParticleDecayList::addMode(), and EvtParticleDecayList::EvtParticleDecayList().


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