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

11{}

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

33{ return new EvtDsTophienu; }

◆ decay()

void EvtDsTophienu::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

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

Implements EvtDecayBase.

Definition at line 31 of file EvtDsTophienu.cc.

31{ model_name = "DsTophienu"; }

◆ init()

void EvtDsTophienu::init ( )
virtual

Reimplemented from EvtDecayBase.

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

Reimplemented from EvtDecayBase.

Definition at line 77 of file EvtDsTophienu.cc.

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

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