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

#include <EvtD0Topipienu.hh>

+ Inheritance diagram for EvtD0Topipienu:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtD0Topipienu()

EvtD0Topipienu::EvtD0Topipienu ( )
inline

Definition at line 12 of file EvtD0Topipienu.hh.

12{}

Referenced by clone().

◆ ~EvtD0Topipienu()

EvtD0Topipienu::~EvtD0Topipienu ( )
virtual

Definition at line 31 of file EvtD0Topipienu.cc.

31{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtD0Topipienu::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 37 of file EvtD0Topipienu.cc.

37 {
38 return new EvtD0Topipienu;
39}

◆ decay()

void EvtD0Topipienu::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 104 of file EvtD0Topipienu.cc.

104 {
105/*
106 double maxprob = 0.0;
107 for(int ir=0;ir<=60000000;ir++){
108 p->initializePhaseSpace(getNDaug(),getDaugs());
109 EvtVector4R _pi1 = p->getDaug(0)->getP4();
110 EvtVector4R _pi2 = p->getDaug(1)->getP4();
111 EvtVector4R _e = p->getDaug(2)->getP4();
112 EvtVector4R _nu = p->getDaug(3)->getP4();
113
114 int pid = EvtPDL::getStdHep(p->getDaug(0)->getId());
115 int charm;
116 if(pid == -211) charm = 1;
117 else charm = -1;
118 double m2, q2, cosV, cosL, chi;
119 KinVGen(_pi1, _pi2, _e, _nu, charm, m2, q2, cosV, cosL, chi);
120 double _prob = calPDF(m2, q2, cosV, cosL, chi);
121 if(_prob>maxprob) {
122 maxprob=_prob;
123 std::cout << "Max PDF = " << ir << " charm= " << charm << " prob= " << _prob << std::endl;
124 }
125 }
126 std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
127*/
129 EvtVector4R pi1 = p->getDaug(0)->getP4();
130 EvtVector4R pi2 = p->getDaug(1)->getP4();
131 EvtVector4R e = p->getDaug(2)->getP4();
132 EvtVector4R nu = p->getDaug(3)->getP4();
133
134 int pid = EvtPDL::getStdHep(p->getDaug(0)->getId());
135 int charm;
136 if(pid == -211) charm = 1;
137 else charm = -1;
138 double m2, q2, cosV, cosL, chi;
139 KinVGen(pi1, pi2, e, nu, charm, m2, q2, cosV, cosL, chi);
140 double prob = calPDF(m2, q2, cosV, cosL, chi);
141 setProb(prob);
142 return;
143}
character *LEPTONflag integer iresonances real pi2
EvtId * getDaugs()
void setProb(double prob)
static int getStdHep(EvtId id)
Definition EvtPDL.hh:56
EvtId getId() const
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
double double * m2
Definition qcdloop1.h:75

◆ getName()

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

Implements EvtDecayBase.

Definition at line 33 of file EvtD0Topipienu.cc.

33 {
34 model_name="D0Topipienu";
35}

◆ init()

void EvtD0Topipienu::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 41 of file EvtD0Topipienu.cc.

41 {
42 checkNArg(0);
43 checkNDaug(4);
47
48 first = 0;
49 last = 1;
50 ProbMax = 405000;
51
52 //cout << "Initializing EvtD0Topipienu: ProbMax = " << ProbMax << endl;
53
54 type[0] = 0;
55 type[1] = 1;
56 type[2] = 2;
57 type[3] = 3;
58
59 mV = 2.01;
60 mA = 2.42;
61 V_0 = 1.6948;
62 A1_0 = 1;
63 A2_0 = 0.84489;
64
65 m0 = 0.77526;
66 width0 = 0.14910;
67 rBW = 3.0;
68 rho = 1.0;
69 phi = 0.0;
70 BF = 1.0;
71
72 m0_omega = 0.78265;
73 width0_omega = 0.00849;
74 rho_omega = 0.12902;
75 phi_omega = 2.9285;
76 BF_omega = 1.0;
77
78 m0_S = 0.953;
79 rho_S = 135.27;
80 phi_S = 3.4044;
81
82 Dp_mD = 1.86962;
83 Dp_mPi1 = 0.13957;
84 Dp_mPi2 = 0.13957;
85 D0_mD = 1.86486;
86 D0_mPi1 = 0.13957;
87 D0_mPi2 = 0.1349766;
88
89 Pi = atan2(0.0,-1.0);
90 root2 = sqrt(2.);
91 root2d3 = sqrt(2./3);
92 root1d2 = sqrt(0.5);
93 root3d2 = sqrt(1.5);
94
95 mKa = 0.493677;
96 mPi = 0.13957;
97 mEt = 0.547853;
98}
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 EvtD0Topipienu::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 100 of file EvtD0Topipienu.cc.

100 {
101 setProbMax(ProbMax);
102}
void setProbMax(double prbmx)

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