BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtDToKSKpi0 Class Reference

#include <EvtDToKSKpi0.hh>

+ Inheritance diagram for EvtDToKSKpi0:

Public Member Functions

 EvtDToKSKpi0 ()
 
virtual ~EvtDToKSKpi0 ()
 
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 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 28 of file EvtDToKSKpi0.hh.

Constructor & Destructor Documentation

◆ EvtDToKSKpi0()

EvtDToKSKpi0::EvtDToKSKpi0 ( )
inline

Definition at line 32 of file EvtDToKSKpi0.hh.

32{}

Referenced by clone().

◆ ~EvtDToKSKpi0()

EvtDToKSKpi0::~EvtDToKSKpi0 ( )
virtual

Definition at line 31 of file EvtDToKSKpi0.cc.

31{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDToKSKpi0::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 37 of file EvtDToKSKpi0.cc.

37 {
38 return new EvtDToKSKpi0;
39}

◆ decay()

void EvtDToKSKpi0::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 64 of file EvtDToKSKpi0.cc.

64 {
65/*
66 double maxprob = 0.0;
67 for(int ir=0;ir<=60000000;ir++){
68 p->initializePhaseSpace(getNDaug(),getDaugs());
69 for(int i=0; i<_nd; i++){
70 _p4Lab[i]=p->getDaug(i)->getP4Lab();
71 _p4CM[i]=p->getDaug(i)->getP4();
72 }
73 double Prob = AmplitudeSquare();
74 if(Prob>maxprob) {
75 maxprob=Prob;
76 std::cout << "Max PDF = " << ir << " prob= " << Prob << std::endl;
77 }
78 }
79 std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
80*/
81
83 for(int i=0; i<_nd; i++){
84 _p4Lab[i]=p->getDaug(i)->getP4Lab();
85 _p4CM[i]=p->getDaug(i)->getP4();
86 }
87 double prob = AmplitudeSquare();
88 setProb(prob);
89 return;
90}
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
void setProb(double prob)
Definition: EvtDecayProb.hh:34
EvtVector4R getP4Lab()
Definition: EvtParticle.cc:684
const EvtVector4R & getP4() const
Definition: EvtParticle.cc:120
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:84
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)

◆ getName()

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

Implements EvtDecayBase.

Definition at line 33 of file EvtDToKSKpi0.cc.

33 {
34 model_name="DToKSKpi0";
35}

◆ init()

void EvtDToKSKpi0::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 41 of file EvtDToKSKpi0.cc.

41 {
42 checkNArg(0);
43 checkNDaug(3);
45 //std::cout << "Initializing EvtDToKSKpi0" << std::endl;
46
47 _nd = 3;
48 _mDp = 1.86965;
49 c_motherMass = _mDp;
50 _mDp2 = _mDp * _mDp;
51 _mDp2inv = 1. / _mDp2;
52 KsMass = 0.497611;
53 KpMass = 0.493677;
54 pi0Mass = 0.134977;
55 etamass = 0.547862;
56 pipMass = 0.13957061;
57 c_meson_radius_inter = 1.5;
58 c_meson_radius_Dp = 5;
59}
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 EvtDToKSKpi0::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 60 of file EvtDToKSKpi0.cc.

60 {
61 setProbMax(1343.2);
62}
void setProbMax(double prbmx)

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