BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtDsToKKenu Class Reference

#include <EvtDsToKKenu.hh>

Inheritance diagram for EvtDsToKKenu:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDsToKKenu()

EvtDsToKKenu::EvtDsToKKenu ( )
inline

Definition at line 11 of file EvtDsToKKenu.hh.

11{}

Referenced by clone().

◆ ~EvtDsToKKenu()

EvtDsToKKenu::~EvtDsToKKenu ( )
virtual

Definition at line 27 of file EvtDsToKKenu.cc.

27{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDsToKKenu::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 31 of file EvtDsToKKenu.cc.

31{ return new EvtDsToKKenu; }

◆ decay()

void EvtDsToKKenu::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 106 of file EvtDsToKKenu.cc.

106 {
107 /*
108 double maxprob = 0.0;
109 for(int ir=0;ir<=30000000;ir++){
110 p->initializePhaseSpace(getNDaug(),getDaugs());
111 EvtVector4R _K = p->getDaug(0)->getP4();
112 EvtVector4R _pi = p->getDaug(1)->getP4();
113 EvtVector4R _e = p->getDaug(2)->getP4();
114 EvtVector4R _nu = p->getDaug(3)->getP4();
115 int pid = EvtPDL::getStdHep(p->getDaug(0)->getId());
116 int charm;
117 if(pid == -321) charm = 1;
118 else charm = -1;
119 double m2, q2, cosV, cosL, chi;
120 KinVGen(_K, _pi, _e, _nu, charm, m2, q2, cosV, cosL, chi);
121 double _prob = calPDF(m2, q2, cosV, cosL, chi);
122 if(_prob>maxprob) {
123 maxprob=_prob;
124 std::cout << "Max PDF = " << ir << " charm= " << charm << " prob= " << _prob <<
125 std::endl;
126 }
127 }
128 std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
129 */
130
132 EvtVector4R K = p->getDaug( 0 )->getP4();
133 EvtVector4R pi = p->getDaug( 1 )->getP4();
134 EvtVector4R e = p->getDaug( 2 )->getP4();
135 EvtVector4R nu = p->getDaug( 3 )->getP4();
136
137 int pid = EvtPDL::getStdHep( p->getDaug( 0 )->getId() );
138 int charm;
139 if ( pid == -321 ) charm = 1;
140 else charm = -1;
141 double m2, q2, cosV, cosL, chi;
142 KinVGen( K, pi, e, nu, charm, m2, q2, cosV, cosL, chi );
143 double prob = calPDF( m2, q2, cosV, cosL, chi );
144 setProb( prob );
145 return;
146}
double pi
EvtId * getDaugs()
void setProb(double prob)
static int getStdHep(EvtId id)
Definition EvtPDL.hh:61
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:83

◆ getName()

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

Implements EvtDecayBase.

Definition at line 29 of file EvtDsToKKenu.cc.

29{ model_name = "DsToKKenu"; }

◆ init()

void EvtDsToKKenu::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 33 of file EvtDsToKKenu.cc.

33 {
34 checkNArg( 0 );
35 checkNDaug( 4 );
39
40 // std::cout << "EvtDsToKKenu ==> Initialization !" << std::endl;
41 nAmps = 2;
42
43 // rS = -11.57; // S-wave
44 // rS1 = 0.08;
45 // a_delta = 1.94;
46 // b_delta = -0.81;
47 // m0_1430_S = 1.425;
48 // width0_1430_S = 0.270;
49 // type[0] = 0;
50
51 mV = 2.1;
52 mA = 2.5;
53
54 // for Ds to f0 e nu
55 mf0 = 0.965;
56 m2f0 = mf0 * mf0;
57 g1 = 0.165 * mf0;
58 g2 = 4.21 * 0.165 * mf0;
59 rho_f0 = 7.1762;
60 phi_f0 = -3.3642;
61 // mDs = 1.96834;
62 type[0] = 0;
63
64 V_0 = 1.6456;
65 A1_0 = 1;
66 A2_0 = 0.83083;
67
68 m0 = 1.0195; // P-wave K*
69 width0 = 0.004249;
70 rBW = 3.0;
71 rho = 1;
72 phi = 0;
73 type[1] = 1;
74
75 m0_1410 = 1.414; // P-wave K*(1410)
76 width0_1410 = 0.232;
77 rho_1410 = 0.1;
78 phi_1410 = 0.;
79 type[2] = 2;
80
81 TV_0 = 1; // D-wave K*2(1430)
82 T1_0 = 1;
83 T2_0 = 1;
84 m0_1430 = 1.4324;
85 width0_1430 = 0.109;
86 rho_1430 = 15;
87 phi_1430 = 0;
88 type[3] = 3;
89
90 mPi = 0.13957;
91 mPi0 = 0.1349766;
92 mK0 = 0.497611;
93
94 mD = 1.96834; // Ds
95 mK1 = 0.49368; // k
96 mK2 = 0.49368; // k
97 Pi = atan2( 0.0, -1.0 );
98 root2 = sqrt( 2. );
99 root2d3 = sqrt( 2. / 3 );
100 root1d2 = sqrt( 0.5 );
101 root3d2 = sqrt( 1.5 );
102}
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 EvtDsToKKenu::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 104 of file EvtDsToKKenu.cc.

104{ setProbMax( 450880.0 ); }
void setProbMax(double prbmx)

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