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

#include <EvtDToKSpieta.hh>

+ Inheritance diagram for EvtDToKSpieta:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDToKSpieta()

EvtDToKSpieta::EvtDToKSpieta ( )
inline

Definition at line 12 of file EvtDToKSpieta.hh.

12{}

Referenced by clone().

◆ ~EvtDToKSpieta()

EvtDToKSpieta::~EvtDToKSpieta ( )
virtual

Definition at line 32 of file EvtDToKSpieta.cc.

32{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDToKSpieta::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 38 of file EvtDToKSpieta.cc.

38 {
39 return new EvtDToKSpieta;
40}

◆ decay()

void EvtDToKSpieta::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 124 of file EvtDToKSpieta.cc.

124 {
125 //-----------for max value------------------
126/* double maxprob = 0.0;
127 for(int ir=0;ir<=60000000;ir++){
128 p->initializePhaseSpace(getNDaug(),getDaugs());
129 EvtVector4R ks0 = p->getDaug(0)->getP4();
130 EvtVector4R pic = p->getDaug(1)->getP4();
131 EvtVector4R pi0 = p->getDaug(2)->getP4();
132
133 double Ks0[4],Pic[4],Pi0[4];
134 Ks0[0] = ks0.get(0); Pic[0] = pic.get(0); Pi0[0] = pi0.get(0);
135 Ks0[1] = ks0.get(1); Pic[1] = pic.get(1); Pi0[1] = pi0.get(1);
136 Ks0[2] = ks0.get(2); Pic[2] = pic.get(2); Pi0[2] = pi0.get(2);
137 Ks0[3] = ks0.get(3); Pic[3] = pic.get(3); Pi0[3] = pi0.get(3);
138 double value;
139 calPDF(Ks0, Pic, Pi0, value);
140 if(value>maxprob) {
141 maxprob=value;
142 std::cout << "Max PDF = " << ir << " prob= " << value << std::endl;
143 }
144 }
145 std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
146 return;*/
147 //-----------------------------------------------
149 EvtVector4R ks0 = p->getDaug(0)->getP4();
150 EvtVector4R pic = p->getDaug(1)->getP4();
151 EvtVector4R pi0 = p->getDaug(2)->getP4();
152
153 double Ks0[4],Pic[4],Pi0[4];
154 Ks0[0] = ks0.get(0); Pic[0] = pic.get(0); Pi0[0] = pi0.get(0);
155 Ks0[1] = ks0.get(1); Pic[1] = pic.get(1); Pi0[1] = pi0.get(1);
156 Ks0[2] = ks0.get(2); Pic[2] = pic.get(2); Pi0[2] = pi0.get(2);
157 Ks0[3] = ks0.get(3); Pic[3] = pic.get(3); Pi0[3] = pi0.get(3);
158
159 double value;
160 calPDF(Ks0, Pic, Pi0, value);
161 setProb(value);
162 return;
163}
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 EvtDToKSpieta::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 34 of file EvtDToKSpieta.cc.

34 {
35 model_name="DToKSpieta";
36}

◆ init()

void EvtDToKSpieta::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 42 of file EvtDToKSpieta.cc.

42 {
43 checkNArg(0);
44 checkNDaug(3);
46 ma0 = 1.004; Ga0 = 0.0732;
47 mKn_1430 = 1.423; GKn_1430 = 0.1815;
48 mK1270 = 1.272; mK1400 = 1.403;
49 GK1270 = 0.09; GK1400 = 0.174;
50 phi_omega = -0.02;
51
52 rho_omega = 0.00294;
53
54 rho[0] = 1;//a0980-pieta
55 phi[0] = 0;
56
57 rho[1] = 0.30586;//K1430-kseta
58 phi[1] = 2.5805;
59
60 spin[0]=0;
61 spin[1]=0;
62
63 modetype[0]=23;
64 modetype[1]=13;
65
66/*
67 cout << "Initializing EvtDToKSpieta" << endl;
68 for (int i=0; i<2; i++) {
69 cout << i << " rho,phi = " << rho[i] << ", "<< phi[i] << endl;
70 }
71*/
72
73 mass_Ks=0.4977;
74 mass_Eta=0.547862;
75 mD = 1.86965;
76 rD = 5;
77 metap = 0.95778;
78 mkstr = 0.89594;
79 mk0 = 0.497611;
80 mass_Kaon = 0.493677;
81 mass_Pion = 0.13957;
82 mass_Pi0 = 0.1349768;
83 math_pi = 3.1415926;
84
85 pi = 3.1415926;
86 mpi = 0.13957;
87 g1 = 0.5468;
88 g2 = 0.23;
89
90 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
91 int EE[4][4][4][4] =
92 { { {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },
93 {{0,0,0,0}, {0,0,0,0}, {0,0,0,1}, {0,0,-1,0}},
94 {{0,0,0,0}, {0,0,0,-1}, {0,0,0,0}, {0,1,0,0} },
95 {{0,0,0,0}, {0,0,1,0}, {0,-1,0,0}, {0,0,0,0} } },
96 { {{0,0,0,0}, {0,0,0,0}, {0,0,0,-1}, {0,0,1,0} },
97 {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },
98 {{0,0,0,1}, {0,0,0,0}, {0,0,0,0}, {-1,0,0,0}},
99 {{0,0,-1,0}, {0,0,0,0}, {1,0,0,0}, {0,0,0,0} } },
100 { {{0,0,0,0}, {0,0,0,1}, {0,0,0,0}, {0,-1,0,0}},
101 {{0,0,0,-1}, {0,0,0,0}, {0,0,0,0}, {1,0,0,0} },
102 {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },
103 {{0,1,0,0}, {-1,0,0,0}, {0,0,0,0}, {0,0,0,0} } },
104 { {{0,0,0,0}, {0,0,-1,0}, {0,1,0,0}, {0,0,0,0} },
105 {{0,0,1,0}, {0,0,0,0}, {-1,0,0,0}, {0,0,0,0} },
106 {{0,-1,0,0}, {1,0,0,0}, {0,0,0,0}, {0,0,0,0} },
107 {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} } } };
108 for (int i=0; i<4; i++) {
109 for (int j=0; j<4; j++) {
110 G[i][j] = GG[i][j];
111 for (int k=0; k<4; k++) {
112 for (int l=0; l<4; l++) {
113 E[i][j][k][l] = EE[i][j][k][l];
114 }
115 }
116 }
117 }
118}
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 EvtDToKSpieta::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 120 of file EvtDToKSpieta.cc.

120 {
121 setProbMax(21.0);//setProbMax(1680.0);
122}
void setProbMax(double prbmx)

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