BOSS 7.0.2
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)
 
- Public Member Functions inherited from EvtDecayIncoherent
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 ()
 

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)
 
- Protected Member Functions inherited from EvtDecayBase
bool daugsDecayedByParentModel ()
 
- Protected Attributes inherited from EvtDecayBase
bool _daugsDecayedByParentModel
 

Detailed Description

Definition at line 31 of file EvtmPhsp.hh.

Constructor & Destructor Documentation

◆ EvtmPhsp()

EvtmPhsp::EvtmPhsp ( )
inline

Definition at line 35 of file EvtmPhsp.hh.

35{}

Referenced by clone().

◆ ~EvtmPhsp()

EvtmPhsp::~EvtmPhsp ( )
virtual

Definition at line 31 of file EvtmPhsp.cc.

31{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtmPhsp::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 39 of file EvtmPhsp.cc.

39 {
40
41 return new EvtmPhsp;
42
43}
EvtmPhsp()
Definition: EvtmPhsp.hh:35

◆ decay()

void EvtmPhsp::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 75 of file 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}
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
EvtVector4R getP4Lab()
Definition: EvtParticle.cc:685
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:85
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
double mass() const
Definition: EvtVector4R.cc:39

◆ getName()

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

Implements EvtDecayBase.

Definition at line 33 of file EvtmPhsp.cc.

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

◆ init()

void EvtmPhsp::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 46 of file 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)
Definition: EvtReport.cc:36
@ ERROR
Definition: EvtReport.hh:49
double getArg(int j)

◆ initProbMax()

void EvtmPhsp::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 69 of file EvtmPhsp.cc.

69 {
70
71 noProbMax();
72
73}
void noProbMax()

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