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

#include <EvtDsTophienu.hh>

+ Inheritance diagram for EvtDsTophienu:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDsTophienu()

EvtDsTophienu::EvtDsTophienu ( )
inline

Definition at line 12 of file EvtDsTophienu.hh.

12{}

Referenced by clone().

◆ ~EvtDsTophienu()

EvtDsTophienu::~EvtDsTophienu ( )
virtual

Definition at line 29 of file EvtDsTophienu.cc.

29{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDsTophienu::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 35 of file EvtDsTophienu.cc.

35 {
36 return new EvtDsTophienu;
37}

◆ decay()

void EvtDsTophienu::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 85 of file EvtDsTophienu.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
101 KinVGen(_pip, _pim, _pi0, _e, _nu, charm, m2, q2, cosV, cosL, chi, s12, s13, s23, spin_V);
102 double _prob = calPDF(m2, q2, cosV, cosL, chi, s12, s13, s23, spin_V);
103 if(_prob>=maxprob) {
104 maxprob=_prob;
105 std::cout << ir << " prob= " << _prob << std::endl;
106 cout << "EvtVector4R pip" << _pip << ";"<< endl;
107 cout << "EvtVector4R pim" << _pim << ";"<< endl;
108 cout << "EvtVector4R pi0" << _pi0 << ";"<< endl;
109 cout << "EvtVector4R e" << _e << ";"<< endl;
110 cout << "EvtVector4R nu" << _nu << ";"<< endl;
111 }
112 }
113 std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
114*/
116 EvtVector4R pip = p->getDaug(0)->getP4();
117 EvtVector4R pim = p->getDaug(1)->getP4();
118 EvtVector4R pi0 = p->getDaug(2)->getP4();
119 EvtVector4R e = p->getDaug(3)->getP4();
120 EvtVector4R nu = p->getDaug(4)->getP4();
121
122 int pid = EvtPDL::getStdHep(p->getDaug(3)->getId());
123 int charm;
124 if(pid == -11) charm = 1;
125 else charm = -1;
126 double m2, q2, cosV, cosL, chi, s12, s13, s23, spin_V;
127 KinVGen(pip, pim, pi0, e, nu, charm, m2, q2, cosV, cosL, chi, s12, s13, s23, spin_V);
128 double prob = calPDF(m2, q2, cosV, cosL, chi, s12, s13, s23, spin_V);
129 setProb(prob);
130 return;
131}
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 EvtDsTophienu::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 31 of file EvtDsTophienu.cc.

31 {
32 model_name="DsTophienu";
33}

◆ init()

void EvtDsTophienu::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 39 of file EvtDsTophienu.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 EvtDsTophienu" << 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_phi = 1.019461; // phi
58 w_phi = 0.004249;
59 m_rho = 0.77526; // rho
60 w_rho = 0.14910;
61 rBW = 3.0;
62 rBW2 = rBW*rBW;
63 mw_phi = m_phi*w_phi;
64 m2_phi = m_phi*m_phi;
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 EvtDsTophienu::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 81 of file EvtDsTophienu.cc.

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

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