BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtD0ToKSpipipi0 Class Reference

#include <EvtD0ToKSpipipi0.hh>

+ Inheritance diagram for EvtD0ToKSpipipi0:

Public Member Functions

 EvtD0ToKSpipipi0 ()
 
virtual ~EvtD0ToKSpipipi0 ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void init ()
 
void initProbMax ()
 
void decay (EvtParticle *p)
 
- Public Member Functions inherited from EvtDecayProb
void makeDecay (EvtParticle *p)
 
void setProb (double prob)
 
double getProb ()
 
void setWeight (double weight)
 
virtual ~EvtDecayProb ()
 
- Public Member Functions inherited from EvtDecayBase
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 28 of file EvtD0ToKSpipipi0.hh.

Constructor & Destructor Documentation

◆ EvtD0ToKSpipipi0()

EvtD0ToKSpipipi0::EvtD0ToKSpipipi0 ( )
inline

Definition at line 32 of file EvtD0ToKSpipipi0.hh.

32{}

Referenced by clone().

◆ ~EvtD0ToKSpipipi0()

EvtD0ToKSpipipi0::~EvtD0ToKSpipipi0 ( )
virtual

Definition at line 59 of file EvtD0ToKSpipipi0.cc.

59{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtD0ToKSpipipi0::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 65 of file EvtD0ToKSpipipi0.cc.

65 {
66 return new EvtD0ToKSpipipi0;
67}

◆ decay()

void EvtD0ToKSpipipi0::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 88 of file EvtD0ToKSpipipi0.cc.

88 {
89/*
90 double maxprob = 0.0;
91 for(int ir=0;ir<=60000000;ir++){
92 p->initializePhaseSpace(getNDaug(),getDaugs());
93 for(int i=0; i<_nd; i++){
94 _p4Lab[i]=p->getDaug(i)->getP4Lab();
95 _p4CM[i]=p->getDaug(i)->getP4();
96 }
97 double Prob = AmplitudeSquare();
98 if(Prob>maxprob) {
99 maxprob=Prob;
100 std::cout << "Max PDF = " << ir << " prob= " << Prob << std::endl;
101 }
102 }
103 std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
104*/
106 for(int i=0; i<_nd; i++){
107 _p4Lab[i]=p->getDaug(i)->getP4Lab();
108 _p4CM[i]=p->getDaug(i)->getP4();
109 }
110 double prob = AmplitudeSquare();
111 setProb(prob);
112 return;
113}
EvtId * getDaugs()
void setProb(double prob)
EvtVector4R getP4Lab()
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)

◆ getName()

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

Implements EvtDecayBase.

Definition at line 61 of file EvtD0ToKSpipipi0.cc.

61 {
62 model_name="D0ToKSpipipi0";
63}

◆ init()

void EvtD0ToKSpipipi0::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 69 of file EvtD0ToKSpipipi0.cc.

69 {
70 checkNArg(0);
71 checkNDaug(4);
73 //std::cout << "Initializing EvtD0ToKSpipipi0" << std::endl;
74
75 _nd = 4;
76 rRes = 3.0;
77 rD = 5.0;
78 math_pi = 3.1415926;
79 mpip = 0.13957;
80 mpim = 0.13957;
81 mpion = 0.13957;
82 mkaon = 0.493677;
83}
void checkSpinParent(EvtSpinType::spintype sp)
void checkNDaug(int d1, int d2=-1)
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)

◆ initProbMax()

void EvtD0ToKSpipipi0::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 84 of file EvtD0ToKSpipipi0.cc.

84 {
85 setProbMax(29338399326.9);
86}
void setProbMax(double prbmx)

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