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

#include <EvtDecayIncoherent.hh>

+ Inheritance diagram for EvtDecayIncoherent:

Public Member Functions

void makeDecay (EvtParticle *p)
 
virtual ~EvtDecayIncoherent ()
 
void setDaughterSpinDensity (int daughter)
 
int isDaughterSpinDensitySet (int daughter)
 
void makeDecay (EvtParticle *p)
 
virtual ~EvtDecayIncoherent ()
 
void setDaughterSpinDensity (int daughter)
 
int isDaughterSpinDensitySet (int daughter)
 
- Public Member Functions inherited from EvtDecayBase
virtual void getName (std::string &name)=0
 
virtual void decay (EvtParticle *p)=0
 
virtual void makeDecay (EvtParticle *p)=0
 
virtual EvtDecayBaseclone ()=0
 
virtual void init ()
 
virtual void initProbMax ()
 
virtual std::string commandName ()
 
virtual void command (std::string cmd)
 
double getProbMax (double prob)
 
double resetProbMax (double prob)
 
 EvtDecayBase ()
 
virtual ~EvtDecayBase ()
 
virtual bool matchingDecay (const EvtDecayBase &other) const
 
EvtId getParentId ()
 
double getBranchingFraction ()
 
void disableCheckQ ()
 
void checkQ ()
 
int getNDaug ()
 
EvtIdgetDaugs ()
 
EvtId getDaug (int i)
 
int getNArg ()
 
int getPHOTOS ()
 
void setPHOTOS ()
 
void setVerbose ()
 
void setSummary ()
 
double * getArgs ()
 
std::string * getArgsStr ()
 
double getArg (int j)
 
std::string getArgStr (int j)
 
std::string getModelName ()
 
int getDSum ()
 
int summary ()
 
int verbose ()
 
void saveDecayInfo (EvtId ipar, int ndaug, EvtId *daug, int narg, std::vector< std::string > &args, std::string name, double brfr)
 
void printSummary ()
 
void setProbMax (double prbmx)
 
void noProbMax ()
 
void checkNArg (int a1, int a2=-1, int a3=-1, int a4=-1)
 
void checkNDaug (int d1, int d2=-1)
 
void checkSpinParent (EvtSpinType::spintype sp)
 
void checkSpinDaughter (int d1, EvtSpinType::spintype sp)
 
virtual int nRealDaughters ()
 
virtual void getName (std::string &name)=0
 
virtual void decay (EvtParticle *p)=0
 
virtual void makeDecay (EvtParticle *p)=0
 
virtual EvtDecayBaseclone ()=0
 
virtual void init ()
 
virtual void initProbMax ()
 
virtual std::string commandName ()
 
virtual void command (std::string cmd)
 
double getProbMax (double prob)
 
double resetProbMax (double prob)
 
 EvtDecayBase ()
 
virtual ~EvtDecayBase ()
 
virtual bool matchingDecay (const EvtDecayBase &other) const
 
EvtId getParentId ()
 
double getBranchingFraction ()
 
void disableCheckQ ()
 
void checkQ ()
 
int getNDaug ()
 
EvtIdgetDaugs ()
 
EvtId getDaug (int i)
 
int getNArg ()
 
int getPHOTOS ()
 
void setPHOTOS ()
 
void setVerbose ()
 
void setSummary ()
 
double * getArgs ()
 
std::string * getArgsStr ()
 
double getArg (int j)
 
std::string getArgStr (int j)
 
std::string getModelName ()
 
int getDSum ()
 
int summary ()
 
int verbose ()
 
void saveDecayInfo (EvtId ipar, int ndaug, EvtId *daug, int narg, std::vector< std::string > &args, std::string name, double brfr)
 
void printSummary ()
 
void setProbMax (double prbmx)
 
void noProbMax ()
 
void checkNArg (int a1, int a2=-1, int a3=-1, int a4=-1)
 
void checkNDaug (int d1, int d2=-1)
 
void checkSpinParent (EvtSpinType::spintype sp)
 
void checkSpinDaughter (int d1, EvtSpinType::spintype sp)
 
virtual int nRealDaughters ()
 

Additional Inherited Members

- Static Public Member Functions inherited from EvtDecayBase
static void findMasses (EvtParticle *p, int ndaugs, EvtId daugs[10], double masses[10])
 
static void findMass (EvtParticle *p)
 
static double findMaxMass (EvtParticle *p)
 
static void findMasses (EvtParticle *p, int ndaugs, EvtId daugs[10], double masses[10])
 
static void findMass (EvtParticle *p)
 
static double findMaxMass (EvtParticle *p)
 
- Protected Member Functions inherited from EvtDecayBase
bool daugsDecayedByParentModel ()
 
bool daugsDecayedByParentModel ()
 
- Protected Attributes inherited from EvtDecayBase
bool _daugsDecayedByParentModel
 

Detailed Description

Constructor & Destructor Documentation

◆ ~EvtDecayIncoherent() [1/2]

virtual EvtDecayIncoherent::~EvtDecayIncoherent ( )
inlinevirtual

◆ ~EvtDecayIncoherent() [2/2]

virtual EvtDecayIncoherent::~EvtDecayIncoherent ( )
inlinevirtual

Member Function Documentation

◆ isDaughterSpinDensitySet() [1/2]

int EvtDecayIncoherent::isDaughterSpinDensitySet ( int  daughter)
inline

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

40 {return spinDensitySet[daughter];}

Referenced by makeDecay().

◆ isDaughterSpinDensitySet() [2/2]

int EvtDecayIncoherent::isDaughterSpinDensitySet ( int  daughter)
inline

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

40 {return spinDensitySet[daughter];}

◆ makeDecay() [1/2]

void EvtDecayIncoherent::makeDecay ( EvtParticle p)
virtual

Implements EvtDecayBase.

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

29 {
30
31 int i;
32 //initialize this the hard way..
33 //Lange June 26, 2000
34 for (i=0; i<MAX_DAUG; i++ ) { spinDensitySet[i]=0;}
36
37 decay(p);
38 p->setDecayProb(1.);
39
41
42 rho.SetDiag(p->getSpinStates());
43
45
48 }
49
50 //Now decay the daughters.
51
53
54 for(i=0;i<p->getNDaug();i++){
55 //Need to set the spin density of the daughters to be
56 //diagonal.
57 rho.SetDiag(p->getDaug(i)->getSpinStates());
58 //if (p->getDaug(i)->getNDaug()==0){
59 //only do this if the user has not already set the
60 //spin density matrix herself.
61 //Lange June 26, 2000
62 if ( isDaughterSpinDensitySet(i)==0 ) {
64 }
65 else{
66 //report(INFO,"EvtGen") << "spinDensitymatrix already set!!!\n";
68 // report(INFO,"EvtGen") <<temp<<endl;
69 }
70 //Now decay the daughter. Really!
71 p->getDaug(i)->decay();
72 }
73
74 }
75}
virtual void decay(EvtParticle *p)=0
void setSpinDensityBackward(const EvtSpinDensity &rho)
void setSpinDensityForward(const EvtSpinDensity &rho)

◆ makeDecay() [2/2]

void EvtDecayIncoherent::makeDecay ( EvtParticle p)
virtual

Implements EvtDecayBase.

◆ setDaughterSpinDensity() [1/2]

void EvtDecayIncoherent::setDaughterSpinDensity ( int  daughter)
inline

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

37 { spinDensitySet[daughter]=1; return;}

Referenced by EvtVectorIsr::decay().

◆ setDaughterSpinDensity() [2/2]

void EvtDecayIncoherent::setDaughterSpinDensity ( int  daughter)
inline

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

37 { spinDensitySet[daughter]=1; return;}

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