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

#include <EvtD0TopipiEta.hh>

+ Inheritance diagram for EvtD0TopipiEta:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtD0TopipiEta()

EvtD0TopipiEta::EvtD0TopipiEta ( )
inline

Definition at line 11 of file EvtD0TopipiEta.hh.

11{}

Referenced by clone().

◆ ~EvtD0TopipiEta()

EvtD0TopipiEta::~EvtD0TopipiEta ( )
virtual

Definition at line 32 of file EvtD0TopipiEta.cc.

32{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtD0TopipiEta::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 38 of file EvtD0TopipiEta.cc.

38 {
39 return new EvtD0TopipiEta;
40}

◆ decay()

void EvtD0TopipiEta::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 100 of file EvtD0TopipiEta.cc.

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

Implements EvtDecayBase.

Definition at line 34 of file EvtD0TopipiEta.cc.

34 {
35 model_name="D0TopipiEta";
36}

◆ init()

void EvtD0TopipiEta::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 42 of file EvtD0TopipiEta.cc.

42 {
43 // check that there are 0 arguments
44 checkNArg(0);
45 checkNDaug(3);
50
51 phi[0] = 0; rho[0] = 1; //rho eta
52 phi[1] = -0.98109; rho[1] = -0.02447; //omega eta (rho-omega mixing)
53 phi[2] = 0.71358; rho[2] = 1.0848; //a0- pi+
54 phi[3] = -0.83115; rho[3] = 2.6444; //a0+ pi-
55 phi[4] = -0.058521; rho[4] = 7.0274; //(pi+ eta)_{2+} pi-
56
57 //cout << "Initializing D0TopipiEta" << endl;
58 //for (int i=0; i<5; i++) {
59 // cout << i << " rho= " << rho[i] << " phi= " << phi[i] << endl;
60 //}
61 mrho = 0.77511;
62 ma0 = 0.99;
63 Grho = 0.1491;
64 Ga0 = 0.0756;
65
66 const double mk0 = 0.497614;
67 const double mass_Kaon = 0.49368;
68 const double mass_Pion = 0.13957;
69 const double mass_Pi0 = 0.1349766;
70 const double meta = 0.547862;
71 mpi = 0.13957;
72 mD = 1.86483;
73 sD = mD*mD;
74 spi = mpi*mpi;
75 snk = mk0*mk0;
76 sck = mass_Kaon*mass_Kaon;
77 scpi = mass_Pion*mass_Pion;
78 snpi = mass_Pi0*mass_Pi0;
79 seta = meta*meta;
80
81 pi = 3.1415926;
82
83 ci = EvtComplex(0.0,1.0);
84 one = EvtComplex(1.0,0.0);
85
86 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
87 for (int i=0; i<4; i++) {
88 for (int j=0; j<4; j++) {
89 G[i][j] = GG[i][j];
90 }
91 }
92
93
94}
const double mass_Pion
double meta
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)
const double mk0
Definition inclks.cxx:46

◆ initProbMax()

void EvtD0TopipiEta::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 96 of file EvtD0TopipiEta.cc.

96 {
97 setProbMax(476.5);
98}
void setProbMax(double prbmx)

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