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

#include <EvtDTopipi0Eta.hh>

Inheritance diagram for EvtDTopipi0Eta:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDTopipi0Eta()

EvtDTopipi0Eta::EvtDTopipi0Eta ( )
inline

Definition at line 11 of file EvtDTopipi0Eta.hh.

11{}

Referenced by clone().

◆ ~EvtDTopipi0Eta()

EvtDTopipi0Eta::~EvtDTopipi0Eta ( )
virtual

Definition at line 32 of file EvtDTopipi0Eta.cc.

32{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDTopipi0Eta::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 36 of file EvtDTopipi0Eta.cc.

36{ return new EvtDTopipi0Eta; }

◆ decay()

void EvtDTopipi0Eta::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 92 of file EvtDTopipi0Eta.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 // value = calDalEva(P1, P2, P3);
113 // if(value>maxprob) {
114 // maxprob=value;
115 // cout << "ir = " << ir << " maxProb= " << value << endl;
116 // }
117 // }
118 // cout << "maxProb = " << maxprob << endl;
119
121 EvtVector4R D1 = p->getDaug( 0 )->getP4();
122 EvtVector4R D2 = p->getDaug( 1 )->getP4();
123 EvtVector4R D3 = p->getDaug( 2 )->getP4();
124
125 double P1[4], P2[4], P3[4];
126 P1[0] = D1.get( 0 );
127 P1[1] = D1.get( 1 );
128 P1[2] = D1.get( 2 );
129 P1[3] = D1.get( 3 );
130 P2[0] = D2.get( 0 );
131 P2[1] = D2.get( 1 );
132 P2[2] = D2.get( 2 );
133 P2[3] = D2.get( 3 );
134 P3[0] = D3.get( 0 );
135 P3[1] = D3.get( 1 );
136 P3[2] = D3.get( 2 );
137 P3[3] = D3.get( 3 );
138
139 double value;
140 value = calDalEva( P1, P2, P3 );
141 setProb( value );
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 EvtDTopipi0Eta::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 34 of file EvtDTopipi0Eta.cc.

34{ model_name = "DTopipi0Eta"; }

◆ init()

void EvtDTopipi0Eta::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 38 of file EvtDTopipi0Eta.cc.

38 {
39 // check that there are 0 arguments
40 checkNArg( 0 );
41 checkNDaug( 3 );
46
47 phi[0] = -3.3276;
48 rho[0] = 0.31478; // rho eta
49 phi[1] = 0.0;
50 rho[1] = 1.0; // a0+ pi0
51 phi[2] = 0.0;
52 rho[2] = -1.0; // a00 pi+
53
54 // cout << "Initializing DTopipi0Eta" << endl;
55 // for (int i=0; i<3; i++) {
56 // cout << i << " rho= " << rho[i] << " phi= " << phi[i] << endl;
57 // }
58 mrho = 0.77511;
59 ma0 = 0.99;
60 Grho = 0.1491;
61 Ga0 = 0.0756;
62
63 const double mk0 = 0.497614;
64 const double mass_Kaon = 0.49368;
65 const double mass_Pion = 0.13957;
66 const double mass_Pi0 = 0.1349766;
67 const double meta = 0.547862;
68 mpi = 0.13957;
69 mD = 1.86966;
70 sD = mD * mD;
71 spi = mpi * mpi;
72 snk = mk0 * mk0;
73 sck = mass_Kaon * mass_Kaon;
74 scpi = mass_Pion * mass_Pion;
75 snpi = mass_Pi0 * mass_Pi0;
76 seta = meta * meta;
77
78 pi = 3.1415926;
79
80 ci = EvtComplex( 0.0, 1.0 );
81 one = EvtComplex( 1.0, 0.0 );
82
83 int GG[4][4] = { { 1, 0, 0, 0 }, { 0, -1, 0, 0 }, { 0, 0, -1, 0 }, { 0, 0, 0, -1 } };
84 for ( int i = 0; i < 4; i++ )
85 {
86 for ( int j = 0; j < 4; j++ ) { G[i][j] = GG[i][j]; }
87 }
88}
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:33

◆ initProbMax()

void EvtDTopipi0Eta::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 90 of file EvtDTopipi0Eta.cc.

90{ setProbMax( 20.0 ); }
void setProbMax(double prbmx)

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