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

#include <EvtDTopipi0pi0.hh>

Inheritance diagram for EvtDTopipi0pi0:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDTopipi0pi0()

EvtDTopipi0pi0::EvtDTopipi0pi0 ( )
inline

Definition at line 11 of file EvtDTopipi0pi0.hh.

11{}

Referenced by clone().

◆ ~EvtDTopipi0pi0()

EvtDTopipi0pi0::~EvtDTopipi0pi0 ( )
virtual

Definition at line 38 of file EvtDTopipi0pi0.cc.

38{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDTopipi0pi0::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 42 of file EvtDTopipi0pi0.cc.

42{ return new EvtDTopipi0pi0; }

◆ decay()

void EvtDTopipi0pi0::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 116 of file EvtDTopipi0pi0.cc.

116 {
117
119 EvtVector4R D1 = p->getDaug( 0 )->getP4();
120 EvtVector4R D2 = p->getDaug( 1 )->getP4();
121 EvtVector4R D3 = p->getDaug( 2 )->getP4();
122
123 double P1[4], P2[4], P3[4];
124 P1[0] = D1.get( 0 );
125 P1[1] = D1.get( 1 );
126 P1[2] = D1.get( 2 );
127 P1[3] = D1.get( 3 );
128 P2[0] = D2.get( 0 );
129 P2[1] = D2.get( 1 );
130 P2[2] = D2.get( 2 );
131 P2[3] = D2.get( 3 );
132 P3[0] = D3.get( 0 );
133 P3[1] = D3.get( 1 );
134 P3[2] = D3.get( 2 );
135 P3[3] = D3.get( 3 );
136
137 double value;
138 int g0[4] = { 1, 2, 2, 6 };
139 int spin[4] = { 2, 1, 1, 0 };
140 int nstates = 4;
141 double r0[4] = { 3, 3, 3, 3 };
142 double r1[4] = { 5, 5, 5, 5 };
143
144 calEva( P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value, r0, r1 );
145
146 setProb( value );
147 return;
148}
EvtId * getDaugs()
void setProb(double prob)
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
double get(int i) const

◆ getName()

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

Implements EvtDecayBase.

Definition at line 40 of file EvtDTopipi0pi0.cc.

40{ model_name = "DTopipi0pi0"; }

◆ init()

void EvtDTopipi0pi0::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 44 of file EvtDTopipi0pi0.cc.

44 {
45 // check that there are 0 arguments
46 checkNArg( 0 );
47 checkNDaug( 3 );
52
53 phi[0] = 9.32300;
54 phi[1] = 0.0;
55 phi[2] = 2.61960;
56 phi[3] = 0.0;
57
58 rho[0] = 1.26430;
59 rho[1] = 1.0;
60 rho[2] = 0.95403;
61 rho[3] = 1.0;
62
63 modetype[0] = 23;
64 modetype[1] = 12;
65 modetype[2] = 12;
66 modetype[3] = 23;
67
68 /*
69 std::cout << "Initializing EvtDTopipi0pi0" << std::endl;
70 for (int i=0; i<4; i++) {
71 cout << i << " rho= " << rho[i] << " phi= " << phi[i] << endl;
72 }
73 */
74 width[0] = 0.1867;
75 width[1] = 0.1502;
76 width[2] = 0.4;
77 width[3] = 0.020;
78
79 mass[0] = 1.2755;
80 mass[1] = 0.7665;
81 mass[2] = 1.465;
82 mass[3] = 0.900;
83
84 mD = 1.86486;
85 mDs = 1.9683;
86 rRes = 9.0;
87 rD = 5.0;
88 metap = 0.95778;
89 mkstr = 0.89594;
90 mk0 = 0.497614;
91 mass_Kaon = 0.49368;
92 mass_Pion = 0.13957;
93 mass_Pi0 = 0.1349766;
94 math_pi = 3.1415926;
95 ma0 = 0.99;
96 Ga0 = 0.0756;
97 meta = 0.547862;
98 mass_Kaon = 0.49368;
99 mass_Eta = 0.547862;
100 mass_Etap = 0.95778;
101
102 GS1 = 0.636619783;
103 GS2 = 0.01860182466;
104 GS3 = 0.1591549458; // 1/(2*math_2pi)
105 GS4 = 0.00620060822; // mass_Pion2/math_pi
106
107 int GG[4][4] = { { 1, 0, 0, 0 }, { 0, -1, 0, 0 }, { 0, 0, -1, 0 }, { 0, 0, 0, -1 } };
108 for ( int i = 0; i < 4; i++ )
109 {
110 for ( int j = 0; j < 4; j++ ) { G[i][j] = GG[i][j]; }
111 }
112}
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 EvtDTopipi0pi0::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 114 of file EvtDTopipi0pi0.cc.

114{ setProbMax( 528.0 ); }
void setProbMax(double prbmx)

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