BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtDTopipienu Class Reference

#include <EvtDTopipienu.hh>

+ Inheritance diagram for EvtDTopipienu:

Public Member Functions

 EvtDTopipienu ()
 
virtual ~EvtDTopipienu ()
 
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 EvtDTopipienu.hh.

Constructor & Destructor Documentation

◆ EvtDTopipienu()

EvtDTopipienu::EvtDTopipienu ( )
inline

Definition at line 12 of file EvtDTopipienu.hh.

12{}

Referenced by clone().

◆ ~EvtDTopipienu()

EvtDTopipienu::~EvtDTopipienu ( )
virtual

Definition at line 30 of file EvtDTopipienu.cc.

30{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDTopipienu::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 36 of file EvtDTopipienu.cc.

36 {
37 return new EvtDTopipienu;
38}

◆ decay()

void EvtDTopipienu::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 116 of file EvtDTopipienu.cc.

116 {
117/*
118 double maxprob = 0.0;
119 for(int ir=0;ir<=60000000;ir++){
120 p->initializePhaseSpace(getNDaug(),getDaugs());
121 EvtVector4R _pi1 = p->getDaug(0)->getP4();
122 EvtVector4R _pi2 = p->getDaug(1)->getP4();
123 EvtVector4R _e = p->getDaug(2)->getP4();
124 EvtVector4R _nu = p->getDaug(3)->getP4();
125
126 int pid = EvtPDL::getStdHep(p->getDaug(0)->getId());
127 int charm;
128 if(pid == -211) charm = 1;
129 else charm = -1;
130 double m2, q2, cosV, cosL, chi;
131 KinVGen(_pi1, _pi2, _e, _nu, charm, m2, q2, cosV, cosL, chi);
132 double _prob = calPDF(m2, q2, cosV, cosL, chi);
133 if(_prob>maxprob) {
134 maxprob=_prob;
135 std::cout << "Max PDF = " << ir << " charm= " << charm << " prob= " << _prob << std::endl;
136 }
137 }
138 std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
139*/
141 EvtVector4R pi1 = p->getDaug(0)->getP4();
142 EvtVector4R pi2 = p->getDaug(1)->getP4();
143 EvtVector4R e = p->getDaug(2)->getP4();
144 EvtVector4R nu = p->getDaug(3)->getP4();
145
146 int pid = EvtPDL::getStdHep(p->getDaug(0)->getId());
147 int charm;
148 if(pid == -211) charm = 1;
149 else charm = -1;
150 double m2, q2, cosV, cosL, chi;
151 KinVGen(pi1, pi2, e, nu, charm, m2, q2, cosV, cosL, chi);
152 double prob = calPDF(m2, q2, cosV, cosL, chi);
153 setProb(prob);
154 return;
155}
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:113
const EvtVector4R & getP4() const
Definition: EvtParticle.cc:121
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:85
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)

◆ getName()

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

Implements EvtDecayBase.

Definition at line 32 of file EvtDTopipienu.cc.

32 {
33 model_name="DTopipienu";
34}

◆ init()

void EvtDTopipienu::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 40 of file EvtDTopipienu.cc.

40 {
41 static EvtId DM=EvtPDL::getId("D-");
42 static EvtId DP=EvtPDL::getId("D+");
43 static EvtId D0=EvtPDL::getId("D0");
44 static EvtId D0B=EvtPDL::getId("anti-D0");
45
46 checkNArg(0);
47 checkNDaug(4);
51
52 std::cout << "EvtDTopipienu ==> Initialization !" << std::endl;
53
54 EvtId parnum=getParentId();
55 if ( parnum == D0 || parnum == D0B ) {
56 first = 0;
57 last = 1;
58 ProbMax = 405000;
59 } else if (parnum == DP || parnum == DM ) {
60 first = 1;
61 last = 4;
62 ProbMax = 591000;
63 }
64
65 type[0] = 0;
66 type[1] = 1;
67 type[2] = 2;
68 type[3] = 3;
69
70 mV = 2.01;
71 mA = 2.42;
72 V_0 = 1.6948;
73 A1_0 = 1;
74 A2_0 = 0.84489;
75
76 m0 = 0.77526;
77 width0 = 0.14910;
78 rBW = 3.0;
79 rho = 1.0;
80 phi = 0.0;
81 BF = 1.0;
82
83 m0_omega = 0.78265;
84 width0_omega = 0.00849;
85 rho_omega = 0.12902;
86 phi_omega = 2.9285;
87 BF_omega = 1.0;
88
89 m0_S = 0.953;
90 rho_S = 135.27;
91 phi_S = 3.4044;
92
93 Dp_mD = 1.86962;
94 Dp_mPi1 = 0.13957;
95 Dp_mPi2 = 0.13957;
96 D0_mD = 1.86486;
97 D0_mPi1 = 0.13957;
98 D0_mPi2 = 0.1349766;
99
100 Pi = atan2(0.0,-1.0);
101 root2 = sqrt(2.);
102 root2d3 = sqrt(2./3);
103 root1d2 = sqrt(0.5);
104 root3d2 = sqrt(1.5);
105
106 mKa = 0.493677;
107 mPi = 0.13957;
108 mEt = 0.547853;
109}
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkSpinParent(EvtSpinType::spintype sp)
EvtId getParentId()
Definition: EvtDecayBase.hh:60
void checkNDaug(int d1, int d2=-1)
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
Definition: EvtId.hh:27
static EvtId getId(const std::string &name)
Definition: EvtPDL.cc:287

◆ initProbMax()

void EvtDTopipienu::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 111 of file EvtDTopipienu.cc.

111 {
112 cout << "EvtDTopipienu: setProbMax = " << ProbMax << endl;
113 setProbMax(ProbMax);
114}
void setProbMax(double prbmx)

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