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

#include <EvtDsToomegaenu.hh>

+ Inheritance diagram for EvtDsToomegaenu:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDsToomegaenu()

EvtDsToomegaenu::EvtDsToomegaenu ( )
inline

Definition at line 12 of file EvtDsToomegaenu.hh.

12{}

Referenced by clone().

◆ ~EvtDsToomegaenu()

EvtDsToomegaenu::~EvtDsToomegaenu ( )
virtual

Definition at line 29 of file EvtDsToomegaenu.cc.

29{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDsToomegaenu::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 35 of file EvtDsToomegaenu.cc.

35 {
36 return new EvtDsToomegaenu;
37}

◆ decay()

void EvtDsToomegaenu::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 85 of file EvtDsToomegaenu.cc.

85 {
86/*
87 double maxprob = 0.0;
88 for(int ir=0;ir<=60000000;ir++){
89 p->initializePhaseSpace(getNDaug(),getDaugs());
90 EvtVector4R _pip = p->getDaug(0)->getP4(); // pi+
91 EvtVector4R _pim = p->getDaug(1)->getP4(); // pi-
92 EvtVector4R _pi0 = p->getDaug(2)->getP4(); // pi0
93 EvtVector4R _e = p->getDaug(3)->getP4(); // e+
94 EvtVector4R _nu = p->getDaug(4)->getP4(); // nu
95 int pid = EvtPDL::getStdHep(p->getDaug(3)->getId());
96 int charm;
97 if(pid == -11) charm = 1;
98 else charm = -1;
99 double m2, q2, cosV, cosL, chi, s12, s13, s23, spin_V;
100 //EvtVector4R pip(0.43708151134234324298,-0.0063461065118795333476,0.411859161170534116,0.043499647450492222311);
101 //EvtVector4R pim(0.25237575453703847694,-0.078585671855406255548,-0.19138558256021315218,-0.03754444974755244413);
102 //EvtVector4R pi0(0.50598020209955174575,0.37013555928038383014,0.14129868575000212316,-0.28430903904443316499);
103 //EvtVector4R e(0.33268353968172292845,-0.18935977852196397841,0.067639189874503583,0.26503941085708321301);
104 //EvtVector4R nu(0.44017899233934343339,-0.095844002391134053287,-0.42941145423482673937,0.013314430484410192876);
105
106 KinVGen(_pip, _pim, _pi0, _e, _nu, charm, m2, q2, cosV, cosL, chi, s12, s13, s23, spin_V);
107 double _prob = calPDF(m2, q2, cosV, cosL, chi, s12, s13, s23, spin_V);
108 if(_prob>=maxprob) {
109 maxprob=_prob;
110 std::cout << ir << " prob= " << _prob << std::endl;
111 cout << "EvtVector4R pip" << _pip << ";"<< endl;
112 cout << "EvtVector4R pim" << _pim << ";"<< endl;
113 cout << "EvtVector4R pi0" << _pi0 << ";"<< endl;
114 cout << "EvtVector4R e" << _e << ";"<< endl;
115 cout << "EvtVector4R nu" << _nu << ";"<< endl;
116 }
117 }
118 std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
119*/
121 EvtVector4R pip = p->getDaug(0)->getP4();
122 EvtVector4R pim = p->getDaug(1)->getP4();
123 EvtVector4R pi0 = p->getDaug(2)->getP4();
124 EvtVector4R e = p->getDaug(3)->getP4();
125 EvtVector4R nu = p->getDaug(4)->getP4();
126
127 int pid = EvtPDL::getStdHep(p->getDaug(3)->getId());
128 int charm;
129 if(pid == -11) charm = 1;
130 else charm = -1;
131 double m2, q2, cosV, cosL, chi, s12, s13, s23, spin_V;
132 KinVGen(pip, pim, pi0, e, nu, charm, m2, q2, cosV, cosL, chi, s12, s13, s23, spin_V);
133 double prob = calPDF(m2, q2, cosV, cosL, chi, s12, s13, s23, spin_V);
134 setProb(prob);
135 return;
136}
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 double double * s12
Definition qcdloop1.h:77
double double double double double * s23
Definition qcdloop1.h:77
double double * m2
Definition qcdloop1.h:75

◆ getName()

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

Implements EvtDecayBase.

Definition at line 31 of file EvtDsToomegaenu.cc.

31 {
32 model_name="DsToomegaenu";
33}

◆ init()

void EvtDsToomegaenu::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 39 of file EvtDsToomegaenu.cc.

39 {
40 checkNArg(0);
41 checkNDaug(5); // Ds+ -> pi+ pi- pi0 e+ nu
42 // 0 --> 1 2 3 4 5
47
48 std::cout << "Initializing EvtDsToomegaenu" << std::endl;
49 mV = 1.81;
50 mA = 2.61;
51 V_0 = 1.411;
52 A1_0 = 1;
53 A2_0 = 0.788;
54 mV2 = mV*mV;
55 mA2 = mA*mA;
56
57 m_omega = 0.78266; // omega
58 w_omega = 0.00868;
59 m_rho = 0.77526; // rho
60 w_rho = 0.14910;
61 rBW = 3.0;
62 rBW2 = rBW*rBW;
63 mw_omega = m_omega*w_omega;
64 m2_omega = m_omega*m_omega;
65 m2_rho = m_rho*m_rho;
66
67 mDs = 1.9683;
68 m2Ds = mDs*mDs;
69 mpi = 0.13957;
70 m2pi = mpi*mpi;
71 mpi0 = 0.1349766;
72 m2pi0 = mpi0*mpi0;
73
74 Pi = atan2(0.0,-1.0);
75 root2 = sqrt(2.);
76 root2d3 = sqrt(2./3);
77 root1d2 = sqrt(0.5);
78 root3d2 = sqrt(1.5);
79}
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 EvtDsToomegaenu::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 81 of file EvtDsToomegaenu.cc.

81 {
82 setProbMax(228000.0);
83}
void setProbMax(double prbmx)

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