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

#include <EvtDToKpienu.hh>

+ Inheritance diagram for EvtDToKpienu:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDToKpienu()

EvtDToKpienu::EvtDToKpienu ( )
inline

Definition at line 12 of file EvtDToKpienu.hh.

12{}

Referenced by clone().

◆ ~EvtDToKpienu()

EvtDToKpienu::~EvtDToKpienu ( )
virtual

Definition at line 30 of file EvtDToKpienu.cc.

30{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDToKpienu::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 36 of file EvtDToKpienu.cc.

36 {
37 return new EvtDToKpienu;
38}

◆ decay()

void EvtDToKpienu::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 100 of file EvtDToKpienu.cc.

100 {
101/*
102 double maxprob = 0.0;
103 for(int ir=0;ir<=60000000;ir++){
104 p->initializePhaseSpace(getNDaug(),getDaugs());
105 EvtVector4R _K = p->getDaug(0)->getP4();
106 EvtVector4R _pi = p->getDaug(1)->getP4();
107 EvtVector4R _e = p->getDaug(2)->getP4();
108 EvtVector4R _nu = p->getDaug(3)->getP4();
109 int pid = EvtPDL::getStdHep(p->getDaug(0)->getId());
110 int charm;
111 if(pid == -321) charm = 1;
112 else charm = -1;
113 double m2, q2, cosV, cosL, chi;
114 KinVGen(_K, _pi, _e, _nu, charm, m2, q2, cosV, cosL, chi);
115 double _prob = calPDF(m2, q2, cosV, cosL, chi);
116 if(_prob>maxprob) {
117 maxprob=_prob;
118 std::cout << "Max PDF = " << ir << " charm= " << charm << " prob= " << _prob << std::endl;
119 }
120 }
121 std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
122*/
124 EvtVector4R K = p->getDaug(0)->getP4();
125 EvtVector4R pi = p->getDaug(1)->getP4();
126 EvtVector4R e = p->getDaug(2)->getP4();
127 EvtVector4R nu = p->getDaug(3)->getP4();
128
129 int pid = EvtPDL::getStdHep(p->getDaug(0)->getId());
130 int charm;
131 if(pid == -321) charm = 1;
132 else charm = -1;
133 double m2, q2, cosV, cosL, chi;
134 KinVGen(K, pi, e, nu, charm, m2, q2, cosV, cosL, chi);
135 double prob = calPDF(m2, q2, cosV, cosL, chi);
136 setProb(prob);
137 return;
138}
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
const float pi
Definition vector3.h:133

◆ getName()

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

Implements EvtDecayBase.

Definition at line 32 of file EvtDToKpienu.cc.

32 {
33 model_name="DToKpienu";
34}

◆ init()

void EvtDToKpienu::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 40 of file EvtDToKpienu.cc.

40 {
41 checkNArg(0);
42 checkNDaug(4);
46
47 //std::cout << "Initializing EvtDToKpienu" << std::endl;
48 nAmps = 2;
49
50 rS = -11.57; // S-wave
51 rS1 = 0.08;
52 a_delta = 1.94;
53 b_delta = -0.81;
54 m0_1430_S = 1.425;
55 width0_1430_S = 0.270;
56 type[0] = 0;
57
58 mV = 1.81;
59 mA = 2.61;
60 V_0 = 1.411;
61 A1_0 = 1;
62 A2_0 = 0.788;
63
64 m0 = 0.8946; // P-wave K*
65 width0 = 0.04642;
66 rBW = 3.07;
67 rho = 1;
68 phi = 0;
69 type[1] = 1;
70
71 m0_1410 = 1.414; // P-wave K*(1410)
72 width0_1410 = 0.232;
73 rho_1410 = 0.1;
74 phi_1410 = 0.;
75 type[2] = 2;
76
77 TV_0 = 1; // D-wave K*2(1430)
78 T1_0 = 1;
79 T2_0 = 1;
80 m0_1430 = 1.4324;
81 width0_1430 = 0.109;
82 rho_1430 = 15;
83 phi_1430 = 0;
84 type[3] = 3;
85
86 mD = 1.86962;
87 mPi = 0.13957;
88 mK = 0.49368;
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}
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 EvtDToKpienu::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 96 of file EvtDToKpienu.cc.

96 {
97 setProbMax(22750.0);
98}
void setProbMax(double prbmx)

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