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

#include <EvtmPhsp.hh>

+ Inheritance diagram for EvtmPhsp:

Public Member Functions

 EvtmPhsp ()
 
virtual ~EvtmPhsp ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void initProbMax ()
 
void init ()
 
void decay (EvtParticle *p)
 
 EvtmPhsp ()
 
virtual ~EvtmPhsp ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void initProbMax ()
 
void init ()
 
void decay (EvtParticle *p)
 
- Public Member Functions inherited from EvtDecayIncoherent
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

◆ EvtmPhsp() [1/2]

EvtmPhsp::EvtmPhsp ( )
inline

Definition at line 35 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtmPhsp.hh.

35{}

Referenced by clone().

◆ ~EvtmPhsp() [1/2]

EvtmPhsp::~EvtmPhsp ( )
virtual

◆ EvtmPhsp() [2/2]

EvtmPhsp::EvtmPhsp ( )
inline

◆ ~EvtmPhsp() [2/2]

virtual EvtmPhsp::~EvtmPhsp ( )
virtual

Member Function Documentation

◆ clone() [1/2]

EvtDecayBase * EvtmPhsp::clone ( )
virtual

◆ clone() [2/2]

EvtDecayBase * EvtmPhsp::clone ( )
virtual

Implements EvtDecayBase.

◆ decay() [1/2]

void EvtmPhsp::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 75 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtmPhsp.cc.

75 {
76 EvtVector4R pt,pt2;
77 loop:
78
80
81 pt=p->getDaug(0)->getP4Lab();
82 for (int ii=1;ii<nd1;ii++){
83 pt=pt+p->getDaug(ii)->getP4Lab();
84 }
85 xmass1=pt.mass();
86
87 if(getNArg()==6) {
88 pt2=p->getDaug(nd1)->getP4Lab();
89 for(int jj=nd1+1;jj<nd1+nd2;jj++) pt2=pt2+p->getDaug(jj)->getP4Lab();
90 }
91 xmass2=pt2.mass();
92
93 // std::cout<<"xmass1= "<<xmass1<<std::endl;
94
95 if(getNArg()==3 && (xmass1<ma1||xmass1>ma2) )goto loop;
96 if(getNArg()==6 && (xmass1<ma1||xmass1>ma2 || xmass2<mb1 || xmass2>mb2) ) goto loop;
97
98 return ;
99}
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)

◆ decay() [2/2]

void EvtmPhsp::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

◆ getName() [1/2]

void EvtmPhsp::getName ( std::string &  name)
virtual

Implements EvtDecayBase.

Definition at line 33 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtmPhsp.cc.

33 {
34
35 model_name="mPHSP";
36
37}

◆ getName() [2/2]

void EvtmPhsp::getName ( std::string &  name)
virtual

Implements EvtDecayBase.

◆ init() [1/2]

void EvtmPhsp::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 46 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtmPhsp.cc.

46 {
47
48 if (getNArg()==3) {
49 nd1=getArg(0); //assign the first nd1 particle in the son list
50 ma1=getArg(1); // the lower mass for the nd1 son cluster
51 ma2=getArg(2); // the upper mass for the nd1 son cluster
52 }else if(getNArg()==6){
53 nd1=getArg(0); //assign the first nd1 particle in the son list
54 ma1=getArg(1); // the lower mass for the nd1 son cluster
55 ma2=getArg(2); // the upper mass for the nd1 son cluster
56 nd2=getArg(3); //assign the first nd1 particle in the son list
57 mb1=getArg(4); // the lower mass for the nd2 son cluster
58 mb2=getArg(5); // the upper mass for the nd2 son cluster
59 }else{
60
61 report(ERROR,"EvtGen") << "EvtmPHSP generator expected "
62 << " 3 or 6 arguments but found:"<<getNArg()<<endl;
63 report(ERROR,"EvtGen") << "Will terminate execution!"<<endl;
64 ::abort();
65 }
66
67}
ostream & report(Severity severity, const char *facility)

◆ init() [2/2]

void EvtmPhsp::init ( )
virtual

Reimplemented from EvtDecayBase.

◆ initProbMax() [1/2]

void EvtmPhsp::initProbMax ( )
virtual

◆ initProbMax() [2/2]

void EvtmPhsp::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.


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