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

#include <EvtD0ToKSpi0pi0pi0.hh>

Inheritance diagram for EvtD0ToKSpi0pi0pi0:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtD0ToKSpi0pi0pi0()

EvtD0ToKSpi0pi0pi0::EvtD0ToKSpi0pi0pi0 ( )
inline

Definition at line 10 of file EvtD0ToKSpi0pi0pi0.hh.

10{}

Referenced by clone().

◆ ~EvtD0ToKSpi0pi0pi0()

EvtD0ToKSpi0pi0pi0::~EvtD0ToKSpi0pi0pi0 ( )
virtual

Definition at line 33 of file EvtD0ToKSpi0pi0pi0.cc.

33{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtD0ToKSpi0pi0pi0::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 37 of file EvtD0ToKSpi0pi0pi0.cc.

◆ decay()

void EvtD0ToKSpi0pi0pi0::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 160 of file EvtD0ToKSpi0pi0pi0.cc.

160 {
161 //-----------for max value------------------
162 /* double maxprob = 0.0;
163 for(int ir=0;ir<=60000000;ir++){
164 p->initializePhaseSpace(getNDaug(),getDaugs());
165 EvtVector4R ks = p->getDaug(0)->getP4();
166 EvtVector4R kp = p->getDaug(1)->getP4();
167 EvtVector4R pim = p->getDaug(2)->getP4();
168 EvtVector4R pi0 = p->getDaug(3)->getP4();
169 mother_c=EvtPDL::getStdHep(p->getId());
170 int cc;
171 if(mother_c==421){
172 cc=1;
173 } else if(mother_c==-421){
174 cc=-1;
175 }
176 double value;
177 double KS[4],Pi01[4],Pi02[4],Pi03[4];
178 KS[0] = ks.get(0); Pi01[0] = kp.get(0); Pi02[0] = pim.get(0); Pi03[0] =
179 pi0.get(0); KS[1] = cc*ks.get(1); Pi01[1] = cc*kp.get(1); Pi02[1] = cc*pim.get(1); Pi03[1]
180 = cc*pi0.get(1); KS[2] = cc*ks.get(2); Pi01[2] = cc*kp.get(2); Pi02[2] = cc*pim.get(2);
181 Pi03[2] = cc*pi0.get(2); KS[3] = cc*ks.get(3); Pi01[3] = cc*kp.get(3); Pi02[3] =
182 cc*pim.get(3); Pi03[3] = cc*pi0.get(3); calPDF(KS, Pi01, Pi02, Pi03, value);
183 if(value>maxprob) {
184 maxprob=value;
185 std::cout << "Max PDF = " << ir << " prob= " << value << std::endl;
186 }
187 }
188 std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
189 return;*/
190 //-----------------------------------------------
192 EvtVector4R ks = p->getDaug( 0 )->getP4();
193 EvtVector4R pi01 = p->getDaug( 1 )->getP4();
194 EvtVector4R pi02 = p->getDaug( 2 )->getP4();
195 EvtVector4R pi03 = p->getDaug( 3 )->getP4();
196
197 mother_c = EvtPDL::getStdHep( p->getId() );
198 int cc;
199 if ( mother_c == 421 ) { cc = 1; }
200 else if ( mother_c == -421 ) { cc = -1; }
201
202 double KS[4], Pi01[4], Pi02[4], Pi03[4];
203 KS[0] = ks.get( 0 );
204 Pi01[0] = pi01.get( 0 );
205 Pi02[0] = pi02.get( 0 );
206 Pi03[0] = pi03.get( 0 );
207 KS[1] = cc * ks.get( 1 );
208 Pi01[1] = cc * pi01.get( 1 );
209 Pi02[1] = cc * pi02.get( 1 );
210 Pi03[1] = cc * pi03.get( 1 );
211 KS[2] = cc * ks.get( 2 );
212 Pi01[2] = cc * pi01.get( 2 );
213 Pi02[2] = cc * pi02.get( 2 );
214 Pi03[2] = cc * pi03.get( 2 );
215 KS[3] = cc * ks.get( 3 );
216 Pi01[3] = cc * pi01.get( 3 );
217 Pi02[3] = cc * pi02.get( 3 );
218 Pi03[3] = cc * pi03.get( 3 );
219
220 double value;
221 calPDF( KS, Pi01, Pi02, Pi03, value );
222 setProb( value );
223 return;
224}
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 get(int i) const

◆ getName()

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

Implements EvtDecayBase.

Definition at line 35 of file EvtD0ToKSpi0pi0pi0.cc.

35{ model_name = "D0ToKSpi0pi0pi0"; }

◆ init()

void EvtD0ToKSpi0pi0pi0::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 39 of file EvtD0ToKSpi0pi0pi0.cc.

39 {
40 checkNArg( 0 );
41 checkNDaug( 4 );
43 // cout << "Initializing EvtD0ToKSpi0pi0pi0" << endl;
44
45 mD = 1.86484;
46 mPi = 0.13957;
47 mKa = 0.493677;
48 math_pi = 3.1415926;
49 mKstr0 = 0.89555;
50 mrhop = 0.77511;
51 GKstr0 = 0.0473;
52 Grhop = 0.1491;
53
54 mass_Pion = 0.13957;
55 mass_Eta = 0.547862;
56 rD2 = 25.0; // 5*5
57 rRes2 = 9.0; // 3*3
58
59 ma1_1260 = 1.195;
60 mK1_1270 = 1.2898;
61 Ga1_1260 = 0.422;
62 GK1_1270 = 0.1161;
63 mpi_1300 = 1.371;
64 mK1_1400 = 1.403;
65 Gpi_1300 = 0.314;
66 GK1_1400 = 0.174;
67 mf0_500 = 0.5;
68 Gf0_500 = 0.335;
69 mK1460 = 1.4824;
70 GK1460 = 0.335;
71 //--------fixed---------------//
72 phi01 = 0.;
73 phi04 = 0.;
74 phi07 = 0.;
75 phi08 = 0.;
76 phi10 = 0.;
77 phi126 = 0.;
78
79 rho01 = 1.0;
80 rho04 = 1.0;
81 rho07 = 1.0;
82 rho08 = 1.0;
83 rho10 = 1.0;
84 rho126 = 1.0;
85 //---------------------------//
86
87 K1460b1 = 1.7104e+00;
88 K1460b2 = 7.4066e+00;
89 K1460b6 = -1.4986e+00;
90 K1460b7 = -8.0174e-01;
91 K1460f2 = 1.7438e+01;
92 K1460f7 = -4.2315e+00;
93 Kstb2 = 1.2922e+00;
94 Kstb7 = 4.9340e+00;
95 Kstf1 = 2.7165e-01;
96 Kstf6 = 9.3143e-01;
97 Phspb2 = 2.1656e+00;
98 Phspb7 = 4.6264e+00;
99 Phspf1 = 1.2052e-01;
100 Phspf6 = 1.2506e+00;
101 a1260b1 = 2.3244e+00;
102 a1260b2 = 1.4414e+01;
103 a1260b6 = 4.3493e+00;
104 a1260b7 = 3.1104e+00;
105 a1260f1 = 3.3290e+00;
106 a1260f6 = 4.7215e+00;
107 a321 = 1.8517e+01;
108 a322 = 6.3000e+00;
109 ake1 = 2.0000e+02;
110 ake2 = 3.1394e+00;
111 phi02 = 9.5172e+00;
112 phi03 = 7.7804e+00;
113 phi06 = 5.6253e+00;
114 rho02 = 2.0961e-01;
115 rho03 = 7.5251e-01;
116 rho06 = 1.9247e+00;
117
118 modetype[0] = 0;
119 modetype[1] = 1;
120 modetype[2] = 1;
121 modetype[3] = 2;
122 modetype[4] = 2;
123 modetype[5] = 1;
124 modetype[6] = 33;
125 modetype[7] = 11;
126
127 int GG[4][4] = { { 1, 0, 0, 0 }, { 0, -1, 0, 0 }, { 0, 0, -1, 0 }, { 0, 0, 0, -1 } };
128 int EE[4][4][4][4] = {
129 { { { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } },
130 { { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 1 }, { 0, 0, -1, 0 } },
131 { { 0, 0, 0, 0 }, { 0, 0, 0, -1 }, { 0, 0, 0, 0 }, { 0, 1, 0, 0 } },
132 { { 0, 0, 0, 0 }, { 0, 0, 1, 0 }, { 0, -1, 0, 0 }, { 0, 0, 0, 0 } } },
133 { { { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, -1 }, { 0, 0, 1, 0 } },
134 { { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } },
135 { { 0, 0, 0, 1 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { -1, 0, 0, 0 } },
136 { { 0, 0, -1, 0 }, { 0, 0, 0, 0 }, { 1, 0, 0, 0 }, { 0, 0, 0, 0 } } },
137 { { { 0, 0, 0, 0 }, { 0, 0, 0, 1 }, { 0, 0, 0, 0 }, { 0, -1, 0, 0 } },
138 { { 0, 0, 0, -1 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 1, 0, 0, 0 } },
139 { { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } },
140 { { 0, 1, 0, 0 }, { -1, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } } },
141 { { { 0, 0, 0, 0 }, { 0, 0, -1, 0 }, { 0, 1, 0, 0 }, { 0, 0, 0, 0 } },
142 { { 0, 0, 1, 0 }, { 0, 0, 0, 0 }, { -1, 0, 0, 0 }, { 0, 0, 0, 0 } },
143 { { 0, -1, 0, 0 }, { 1, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } },
144 { { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } } } };
145 for ( int i = 0; i < 4; i++ )
146 {
147 for ( int j = 0; j < 4; j++ )
148 {
149 G[i][j] = GG[i][j];
150 for ( int k = 0; k < 4; k++ )
151 {
152 for ( int l = 0; l < 4; l++ ) { E[i][j][k][l] = EE[i][j][k][l]; }
153 }
154 }
155 }
156}
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 EvtD0ToKSpi0pi0pi0::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 158 of file EvtD0ToKSpi0pi0pi0.cc.

158{ setProbMax( 77195.0 ); }
void setProbMax(double prbmx)

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