BOSS 7.1.1
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 92 of file EvtD0ToKpiEtap.cc.

92 {
93
94 // This piece of code could in principle be used to calculate maximum
95 // probablity on fly. But as it uses high number of points and model
96 // deals with single final state, we keep hardcoded number for now rather
97 // than adapting code to work here.
98/*
99 double maxprob = 0.0;
100 for(int ir=0;ir<=60000000;ir++){
101 p->initializePhaseSpace(getNDaug(),getDaugs());
102 EvtVector4R D1 = p->getDaug(0)->getP4();
103 EvtVector4R D2 = p->getDaug(1)->getP4();
104 EvtVector4R D3 = p->getDaug(2)->getP4();
105
106 double P1[4], P2[4], P3[4];
107 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
108 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
109 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
110
111 double value;
112 int g0[3]={0,1,1};
113 int spin[3]={0,1,1};
114 int nstates=3;
115 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
116 if(value>maxprob) {
117 maxprob=value;
118 cout << "ir = " << ir << " maxProb= " << value << endl;
119 }
120 }
121 cout << "maxProb = " << maxprob << endl;
122*/
124 EvtVector4R D1 = p->getDaug(0)->getP4();
125 EvtVector4R D2 = p->getDaug(1)->getP4();
126 EvtVector4R D3 = p->getDaug(2)->getP4();
127
128 double P1[4], P2[4], P3[4];
129 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
130 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
131 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
132
133 double value;
134 int g0[3]={0,1,1};
135 int spin[3]={0,1,1};
136 int nstates=3;
137 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
138
139 setProb(value);
140 return ;
141}
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;
49 rho[0] = 1.0;
50 phi[1] = 3.7295;
51 rho[1] = 2.2532e-01; //892
52 phi[2] = 0.6890853;
53 rho[2] = 1.6780e+00;//1680
54 modetype[0]= 132;
55 modetype[1]= 12;
56 modetype[2]= 12;
57
58 mass[2] = 1.718;
59 mass[1] = 0.89555;
60 width[2]= 0.322;
61 width[1]= 0.0473;
62 mass[0] = 1.414;
63 width[0]= 0.232;
64 const double mk0 = 0.497614;
65 const double mass_Kaon = 0.49368;
66 const double mass_Pion = 0.13957;
67 const double mass_Pi0 = 0.1349766;
68 const double meta = 0.547862;
69 const double metap = 0.95778;
70 mpi = 0.13957;
71 mD = 1.86486;
72 mDs = 1.9683;
73 rRes= 9.0;
74 rD = 5.0;
75 math_pi = 3.1415926;
76 GS1 = 0.636619783;
77 GS2 = 0.01860182466;
78 GS3 = 0.1591549458; // 1/(2*math_2pi)
79 GS4 = 0.00620060822; // mass_Pion2/math_pi
80
81 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
82 for (int i=0; i<4; i++) {
83 for (int j=0; j<4; j++) {
84 G[i][j] = GG[i][j];
85 }
86 }
87}
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 88 of file EvtD0ToKpiEtap.cc.

88 {
89 setProbMax(2.72);
90}
void setProbMax(double prbmx)

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