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

#include <EvtDToPiPi0Etap.hh>

Inheritance diagram for EvtDToPiPi0Etap:

Public Member Functions

 EvtDToPiPi0Etap ()
virtual ~EvtDToPiPi0Etap ()
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 9 of file EvtDToPiPi0Etap.hh.

Constructor & Destructor Documentation

◆ EvtDToPiPi0Etap()

EvtDToPiPi0Etap::EvtDToPiPi0Etap ( )
inline

Definition at line 12 of file EvtDToPiPi0Etap.hh.

12{}

Referenced by clone().

◆ ~EvtDToPiPi0Etap()

EvtDToPiPi0Etap::~EvtDToPiPi0Etap ( )
virtual

Definition at line 32 of file EvtDToPiPi0Etap.cc.

32{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDToPiPi0Etap::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 36 of file EvtDToPiPi0Etap.cc.

36{ return new EvtDToPiPi0Etap; }

◆ decay()

void EvtDToPiPi0Etap::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 87 of file EvtDToPiPi0Etap.cc.

87 {
88
89 // This piece of code could in principle be used to calculate maximum
90 // probablity on fly. But as it uses high number of points and model
91 // deals with single final state, we keep hardcoded number for now rather
92 // than adapting code to work here.
93
94 /*
95 double maxprob = 0.0;
96 for(int ir=0;ir<=60000000;ir++){
97 p->initializePhaseSpace(getNDaug(),getDaugs());
98 EvtVector4R D1 = p->getDaug(0)->getP4();
99 EvtVector4R D2 = p->getDaug(1)->getP4();
100 EvtVector4R D3 = p->getDaug(2)->getP4();
101
102 double P1[4], P2[4], P3[4];
103 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
104 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
105 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
106
107 double value;
108 int g0[2]={1,0};
109 int spin[2]={1,2};
110 int nstates=2;
111
112 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates,
113 value); if(value>maxprob) { maxprob=value; cout << "ir = " << ir << " maxProb= " << value
114 << endl;
115 }
116 }
117 cout << "The maxProb = " << maxprob << endl;
118 */
119
121 EvtVector4R D1 = p->getDaug( 0 )->getP4();
122 EvtVector4R D2 = p->getDaug( 1 )->getP4();
123 EvtVector4R D3 = p->getDaug( 2 )->getP4();
124
125 double P1[4], P2[4], P3[4];
126
127 P1[0] = D1.get( 0 );
128 P1[1] = D1.get( 1 );
129 P1[2] = D1.get( 2 );
130 P1[3] = D1.get( 3 );
131 P2[0] = D2.get( 0 );
132 P2[1] = D2.get( 1 );
133 P2[2] = D2.get( 2 );
134 P2[3] = D2.get( 3 );
135 P3[0] = D3.get( 0 );
136 P3[1] = D3.get( 1 );
137 P3[2] = D3.get( 2 );
138 P3[3] = D3.get( 3 );
139
140 double value;
141 int g0[2] = { 1, 0 };
142 int spin[2] = { 1, 2 };
143 int nstates = 2;
144 calEva( P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value );
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 EvtDToPiPi0Etap::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 34 of file EvtDToPiPi0Etap.cc.

34{ model_name = "DToPiPi0Etap"; }

◆ init()

void EvtDToPiPi0Etap::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 38 of file EvtDToPiPi0Etap.cc.

38 {
39
40 checkNArg( 0 );
41 checkNDaug( 3 );
46
47 modetype[0] = 12;
48 modetype[1] = 12;
49 rho[0] = 1.0; // rho+
50 phi[0] = 0.0;
51 rho[1] = 8.3996e+00; // (Pi+Pi0) D-wave
52 phi[1] = 4.8088e+00;
53
54 mass[0] = 0.77511;
55 width[0] = 0.1491;
56
57 mass[1] = 0.27454719;
58 width[1] = 0.1491; // TBD
59
60 massDp = 1.86966;
61 massD0 = 1.86484;
62
63 massEtap = 0.95778;
64 massPip = 0.13957;
65 massPi0 = 0.13498;
66
67 mathPi = 3.1415926;
68
69 // GS
70 GS1 = 0.6366197830;
71 GS2 = 0.0186018247;
72 GS3 = 0.1591549431; // 1/(2*mathPi)
73 GS4 = 0.0062006081; // massPip*massPip/mathPi
74
75 int GG[4][4] = { { 1, 0, 0, 0 }, { 0, -1, 0, 0 }, { 0, 0, -1, 0 }, { 0, 0, 0, -1 } };
76
77 for ( int i = 0; i < 4; i++ )
78 {
79 for ( int j = 0; j < 4; j++ ) { G[i][j] = GG[i][j]; }
80 }
81}
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 EvtDToPiPi0Etap::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 83 of file EvtDToPiPi0Etap.cc.

83 {
84 setProbMax( 48.9 ); // The Max Prob = 48.895731256754906724
85}
void setProbMax(double prbmx)

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