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

#include <EvtDToPiPi0Etap.hh>

+ Inheritance diagram for EvtDToPiPi0Etap:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDToPiPi0Etap()

EvtDToPiPi0Etap::EvtDToPiPi0Etap ( )
inline

Definition at line 13 of file EvtDToPiPi0Etap.hh.

13{}

Referenced by clone().

◆ ~EvtDToPiPi0Etap()

EvtDToPiPi0Etap::~EvtDToPiPi0Etap ( )
virtual

Definition at line 32 of file EvtDToPiPi0Etap.cc.

32{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDToPiPi0Etap::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 38 of file EvtDToPiPi0Etap.cc.

38 {
39 return new EvtDToPiPi0Etap;
40}

◆ decay()

void EvtDToPiPi0Etap::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 92 of file EvtDToPiPi0Etap.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/*
100 double maxprob = 0.0;
101 for(int ir=0;ir<=60000000;ir++){
102 p->initializePhaseSpace(getNDaug(),getDaugs());
103 EvtVector4R D1 = p->getDaug(0)->getP4();
104 EvtVector4R D2 = p->getDaug(1)->getP4();
105 EvtVector4R D3 = p->getDaug(2)->getP4();
106
107 double P1[4], P2[4], P3[4];
108 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
109 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
110 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
111
112 double value;
113 int g0[2]={1,0};
114 int spin[2]={1,2};
115 int nstates=2;
116
117 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
118 if(value>maxprob) {
119 maxprob=value;
120 cout << "ir = " << ir << " maxProb= " << value << endl;
121 }
122 }
123 cout << "The maxProb = " << maxprob << endl;
124*/
125
127 EvtVector4R D1 = p->getDaug(0)->getP4();
128 EvtVector4R D2 = p->getDaug(1)->getP4();
129 EvtVector4R D3 = p->getDaug(2)->getP4();
130
131 double P1[4], P2[4], P3[4];
132
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[2]={1,0};
139 int spin[2]={1,2};
140 int nstates=2;
141 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
142
143 setProb(value);
144 return ;
145}
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 EvtDToPiPi0Etap::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 34 of file EvtDToPiPi0Etap.cc.

34 {
35 model_name = "DToPiPi0Etap";
36}

◆ init()

void EvtDToPiPi0Etap::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 42 of file EvtDToPiPi0Etap.cc.

42 {
43
44 checkNArg(0);
45 checkNDaug(3);
50
51 modetype[0] = 12;
52 modetype[1] = 12;
53 rho[0] = 1.0; // rho+
54 phi[0] = 0.0;
55 rho[1] = 8.3996e+00; // (Pi+Pi0) D-wave
56 phi[1] = 4.8088e+00;
57
58 mass[0] = 0.77511;
59 width[0] = 0.1491;
60
61 mass[1] = 0.27454719;
62 width[1] = 0.1491; // TBD
63
64 massDp = 1.86966;
65 massD0 = 1.86484;
66
67 massEtap = 0.95778;
68 massPip = 0.13957;
69 massPi0 = 0.13498;
70
71 mathPi = 3.1415926;
72
73 // GS
74 GS1 = 0.6366197830;
75 GS2 = 0.0186018247;
76 GS3 = 0.1591549431; // 1/(2*mathPi)
77 GS4 = 0.0062006081; // massPip*massPip/mathPi
78
79 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
80
81 for (int i=0; i<4; i++) {
82 for (int j=0; j<4; j++) {
83 G[i][j] = GG[i][j];
84 }
85 }
86}
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 EvtDToPiPi0Etap::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 88 of file EvtDToPiPi0Etap.cc.

88 {
89 setProbMax(48.9); // The Max Prob = 48.895731256754906724
90}
void setProbMax(double prbmx)

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