BOSS 7.1.0
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 ()
 
- 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 22 of file EvtSinglePoint.hh.

Constructor & Destructor Documentation

◆ EvtSinglePoint()

EvtSinglePoint::EvtSinglePoint ( )
inline

Definition at line 26 of file EvtSinglePoint.hh.

26{}

Referenced by clone().

◆ ~EvtSinglePoint()

EvtSinglePoint::~EvtSinglePoint ( )
virtual

Definition at line 25 of file EvtSinglePoint.cc.

25{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtSinglePoint::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 33 of file EvtSinglePoint.cc.

33 {
34
35 return new EvtSinglePoint();
36
37}

◆ decay()

void EvtSinglePoint::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 57 of file EvtSinglePoint.cc.

57 {
58
59 EvtParticle *d;
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
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
EvtId getDaug(int i)
Definition: EvtDecayBase.hh:66
static double getMass(EvtId i)
Definition: EvtPDL.hh:46
void makeDaughters(int ndaug, EvtId *id)
virtual void init(EvtId part_n, const EvtVector4R &p4)=0
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:84
double double double * p4
Definition: qcdloop1.h:77

◆ getName()

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

Implements EvtDecayBase.

Definition at line 27 of file EvtSinglePoint.cc.

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

◆ init()

void EvtSinglePoint::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 39 of file 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}
double getArg(int j)
void disableCheckQ()
Definition: EvtDecayBase.hh:62

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