BOSS 8.0.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 26 of file EvtParticleDecay.hh.

Constructor & Destructor Documentation

◆ EvtParticleDecay()

EvtParticleDecay::EvtParticleDecay ( )
inline

Definition at line 29 of file EvtParticleDecay.hh.

29 {
30 _decay = 0;
31 _brfrsum = 0.0;
32 _massmin = 0.0;
33 }

Referenced by chargeConj().

◆ ~EvtParticleDecay()

EvtParticleDecay::~EvtParticleDecay ( )
inline

Definition at line 35 of file EvtParticleDecay.hh.

35 {
36
37 if ( _decay != 0 ) delete _decay;
38 }

Member Function Documentation

◆ chargeConj()

void EvtParticleDecay::chargeConj ( EvtParticleDecay * decay)

Definition at line 40 of file EvtParticleDecay.cc.

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

Referenced by EvtParticleDecayList::makeChargeConj().

◆ getBrfrSum()

double EvtParticleDecay::getBrfrSum ( )
inline

Definition at line 44 of file EvtParticleDecay.hh.

44{ return _brfrsum; }

Referenced by EvtParticleDecayList::EvtParticleDecayList().

◆ getDecayModel()

EvtDecayBase * EvtParticleDecay::getDecayModel ( )
inline

◆ getMassMin()

double EvtParticleDecay::getMassMin ( )
inline

Definition at line 46 of file EvtParticleDecay.hh.

46{ return _massmin; }

Referenced by EvtParticleDecayList::EvtParticleDecayList().

◆ printSummary()

void EvtParticleDecay::printSummary ( )

Definition at line 35 of file EvtParticleDecay.cc.

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

◆ setBrfrSum()

void EvtParticleDecay::setBrfrSum ( double brfrsum)
inline

Definition at line 45 of file EvtParticleDecay.hh.

45{ _brfrsum = brfrsum; }

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

◆ setDecayModel()

void EvtParticleDecay::setDecayModel ( EvtDecayBase * decay)
inline

Definition at line 42 of file EvtParticleDecay.hh.

42{ _decay = decay; }

Referenced by EvtParticleDecayList::addMode().

◆ setMassMin()

void EvtParticleDecay::setMassMin ( double massmin)
inline

Definition at line 47 of file EvtParticleDecay.hh.

47{ _massmin = massmin; }

Referenced by EvtParticleDecayList::addMode().


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