BOSS 8.0.0
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 11 of file EvtDsToomegaenu.hh.

11{}

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 33 of file EvtDsToomegaenu.cc.

33{ return new EvtDsToomegaenu; }

◆ decay()

void EvtDsToomegaenu::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 79 of file EvtDsToomegaenu.cc.

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

Implements EvtDecayBase.

Definition at line 31 of file EvtDsToomegaenu.cc.

31{ model_name = "DsToomegaenu"; }

◆ init()

void EvtDsToomegaenu::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 35 of file EvtDsToomegaenu.cc.

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

77{ setProbMax( 228000.0 ); }
void setProbMax(double prbmx)

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