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

#include <EvtD0ToKpiEtap.hh>

+ Inheritance diagram for EvtD0ToKpiEtap:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtD0ToKpiEtap()

EvtD0ToKpiEtap::EvtD0ToKpiEtap ( )
inline

Definition at line 12 of file EvtD0ToKpiEtap.hh.

12{}

Referenced by clone().

◆ ~EvtD0ToKpiEtap()

EvtD0ToKpiEtap::~EvtD0ToKpiEtap ( )
virtual

Definition at line 31 of file EvtD0ToKpiEtap.cc.

31{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtD0ToKpiEtap::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 37 of file EvtD0ToKpiEtap.cc.

37 {
38 return new EvtD0ToKpiEtap;
39}

◆ decay()

void EvtD0ToKpiEtap::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 89 of file EvtD0ToKpiEtap.cc.

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

Implements EvtDecayBase.

Definition at line 33 of file EvtD0ToKpiEtap.cc.

33 {
34 model_name="D0ToKpiEtap";
35}

◆ init()

void EvtD0ToKpiEtap::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 40 of file EvtD0ToKpiEtap.cc.

40 {
41 checkNArg(0);
42 checkNDaug(3);
47
48 phi[0] = 0.0; rho[0] = 1.0;
49 phi[1] = -3.3097e+00;rho[1] = 1.6085e-01; //892
50 phi[2] = 3.2189e+00; rho[2] = 7.4439e+00;//1680
51 modetype[0]= 132;
52 modetype[1]= 12;
53 modetype[2]= 12;
54
55 mass[2] = 1.4273;
56 mass[1] = 0.89555;
57 mass[0] = 1.414;
58 width[2]= 0.100;
59 width[1]= 0.0473;
60 width[0]= 0.232;
61 const double mk0 = 0.497614;
62 const double mass_Kaon = 0.49368;
63 const double mass_Pion = 0.13957;
64 const double mass_Pi0 = 0.1349766;
65 const double meta = 0.547862;
66 const double metap = 0.95778;
67 mpi = 0.13957;
68 mD = 1.86486;
69 mDs = 1.9683;
70 rRes= 9.0;
71 rD = 5.0;
72 math_pi = 3.1415926;
73 GS1 = 0.636619783;
74 GS2 = 0.01860182466;
75 GS3 = 0.1591549458; // 1/(2*math_2pi)
76 GS4 = 0.00620060822; // mass_Pion2/math_pi
77
78 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
79 for (int i=0; i<4; i++) {
80 for (int j=0; j<4; j++) {
81 G[i][j] = GG[i][j];
82 }
83 }
84}
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 EvtD0ToKpiEtap::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 85 of file EvtD0ToKpiEtap.cc.

85 {
86 setProbMax(3.26);
87}
void setProbMax(double prbmx)

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