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

#include <EvtSinglePoint.hh>

+ Inheritance diagram for EvtSinglePoint:

Public Member Functions

 EvtSinglePoint ()
 
virtual ~EvtSinglePoint ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void decay (EvtParticle *p)
 
void init ()
 
 EvtSinglePoint ()
 
virtual ~EvtSinglePoint ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void decay (EvtParticle *p)
 
void init ()
 
- 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

◆ EvtSinglePoint() [1/2]

EvtSinglePoint::EvtSinglePoint ( )
inline

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

26{}

Referenced by clone().

◆ ~EvtSinglePoint() [1/2]

EvtSinglePoint::~EvtSinglePoint ( )
virtual

◆ EvtSinglePoint() [2/2]

EvtSinglePoint::EvtSinglePoint ( )
inline

◆ ~EvtSinglePoint() [2/2]

virtual EvtSinglePoint::~EvtSinglePoint ( )
virtual

Member Function Documentation

◆ clone() [1/2]

EvtDecayBase * EvtSinglePoint::clone ( )
virtual

◆ clone() [2/2]

EvtDecayBase * EvtSinglePoint::clone ( )
virtual

Implements EvtDecayBase.

◆ decay() [1/2]

void EvtSinglePoint::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

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

57 {
58
59 EvtParticle *d;
60 EvtVector4R p4;
61
62 double mass=EvtPDL::getMass(getDaug(0));
63
65 d=p->getDaug(0);
66
67 //generate flat distribution in p
68 //we are now in the parents restframe! This means the
69 //restframe of the e+e- collison.
70
71 double pmag;
72 pmag = sqrt(px*px + py*py + py*pz);
73
74
75 p4.set(sqrt(mass*mass+pmag*pmag),px,py,pz);
76 d->init( getDaug(0),p4);
77 return ;
78}
double mass
virtual void init(EvtId part_n, const EvtVector4R &p4)=0

◆ decay() [2/2]

void EvtSinglePoint::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

◆ getName() [1/2]

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

Implements EvtDecayBase.

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

27 {
28
29 model_name="SinglePoint";
30
31}

◆ getName() [2/2]

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

Implements EvtDecayBase.

◆ init() [1/2]

void EvtSinglePoint::init ( )
virtual

Reimplemented from EvtDecayBase.

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

39 {
40
41
42 //turn off checks for charge conservation
44
45 if ((getNArg()==3)) {
46 px = getArg(0);
47 py = getArg(1);
48 pz = getArg(2);
49
50 } else{
51 std::cout<<"expected three parameters: px, py, pz, but find "<<getNArg()<<" parameters"<<std::endl;
52 ::abort();
53 }
54
55}

◆ init() [2/2]

void EvtSinglePoint::init ( )
virtual

Reimplemented from EvtDecayBase.


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