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

#include <EvtDTopi0pi0enu.hh>

+ Inheritance diagram for EvtDTopi0pi0enu:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDTopi0pi0enu()

EvtDTopi0pi0enu::EvtDTopi0pi0enu ( )
inline

Definition at line 12 of file EvtDTopi0pi0enu.hh.

12{}

Referenced by clone().

◆ ~EvtDTopi0pi0enu()

EvtDTopi0pi0enu::~EvtDTopi0pi0enu ( )
virtual

Definition at line 30 of file EvtDTopi0pi0enu.cc.

30{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDTopi0pi0enu::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 36 of file EvtDTopi0pi0enu.cc.

36 {
37 return new EvtDTopi0pi0enu;
38}

◆ decay()

void EvtDTopi0pi0enu::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 62 of file EvtDTopi0pi0enu.cc.

62 {
63/*
64 double maxprob = 0.0;
65 for(int ir=0;ir<=60000000;ir++){
66 p->initializePhaseSpace(getNDaug(),getDaugs());
67 EvtVector4R _pi1 = p->getDaug(0)->getP4();
68 EvtVector4R _pi2 = p->getDaug(1)->getP4();
69 EvtVector4R _e = p->getDaug(2)->getP4();
70 EvtVector4R _nu = p->getDaug(3)->getP4();
71
72 int pid = EvtPDL::getStdHep(p->getDaug(0)->getId());
73 int charm;
74 if(pid == -211) charm = 1;
75 else charm = -1;
76 double m2, q2, cosV, cosL, chi;
77 KinVGen(_pi1, _pi2, _e, _nu, charm, m2, q2, cosV, cosL, chi);
78 double _prob = calPDF(m2, q2, cosV, cosL, chi);
79 if(_prob>maxprob) {
80 maxprob=_prob;
81 std::cout << "Max PDF = " << ir << " charm= " << charm << " prob= " << _prob << std::endl;
82 }
83 }
84 std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
85*/
87 EvtVector4R pi1 = p->getDaug(0)->getP4();
88 EvtVector4R pi2 = p->getDaug(1)->getP4();
89 EvtVector4R e = p->getDaug(2)->getP4();
90 EvtVector4R nu = p->getDaug(3)->getP4();
91
92 int pid = EvtPDL::getStdHep(p->getDaug(0)->getId());
93 int charm;
94 if(pid == -211) charm = 1;
95 else charm = -1;
96 double m2, q2, cosV, cosL, chi;
97 KinVGen(pi1, pi2, e, nu, charm, m2, q2, cosV, cosL, chi);
98 double prob = calPDF(m2, q2, cosV, cosL, chi);
99 setProb(prob);
100 return;
101}
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
void setProb(double prob)
Definition: EvtDecayProb.hh:34
static int getStdHep(EvtId id)
Definition: EvtPDL.hh:56
EvtId getId() const
Definition: EvtParticle.cc:112
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)
double double * m2
Definition: qcdloop1.h:75

◆ getName()

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

Implements EvtDecayBase.

Definition at line 32 of file EvtDTopi0pi0enu.cc.

32 {
33 model_name="DTopi0pi0enu";
34}

◆ init()

void EvtDTopi0pi0enu::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 40 of file EvtDTopi0pi0enu.cc.

40 {
41 checkNArg(0);
42 checkNDaug(4);
46
47 //cout << "Initializing EvtDTopi0pi0enu: ProbMax = 2.48532"<< endl;
48
49 mA = 2.42;
50 m0_S = 0.953;
51 Dp_mD = 1.86962;
52 Pi = atan2(0.0,-1.0);
53 mPi = 0.1349766;
54 mKa = 0.493677;
55 mEt = 0.547853;
56}
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
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 EvtDTopi0pi0enu::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 58 of file EvtDTopi0pi0enu.cc.

58 {
59 setProbMax(2.48532);
60}
void setProbMax(double prbmx)

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