BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtDeBD Class Reference

#include <EvtDeBD.hh>

+ Inheritance diagram for EvtDeBD:

Public Member Functions

 EvtDeBD ()
 
virtual ~EvtDeBD ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void init ()
 
void decay (EvtParticle *p)
 
- Public Member Functions inherited from EvtDecayAmp
void makeDecay (EvtParticle *p)
 
void setWeight (double weight)
 
void vertex (const EvtComplex &amp)
 
void vertex (int i1, const EvtComplex &amp)
 
void vertex (int i1, int i2, const EvtComplex &amp)
 
void vertex (int i1, int i2, int i3, const EvtComplex &amp)
 
void vertex (int *i1, const EvtComplex &amp)
 
virtual ~EvtDecayAmp ()
 
- Public Member Functions inherited from EvtDecayBase
virtual void getName (std::string &name)=0
 
virtual void decay (EvtParticle *p)=0
 
virtual void makeDecay (EvtParticle *p)=0
 
virtual EvtDecayBaseclone ()=0
 
virtual void init ()
 
virtual void initProbMax ()
 
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 EvtDecayAmp
EvtAmp _amp2
 
- Protected Attributes inherited from EvtDecayBase
bool _daugsDecayedByParentModel
 

Detailed Description

Definition at line 28 of file EvtDeBD.hh.

Constructor & Destructor Documentation

◆ EvtDeBD()

EvtDeBD::EvtDeBD ( )
inline

Definition at line 32 of file EvtDeBD.hh.

32{}

Referenced by clone().

◆ ~EvtDeBD()

EvtDeBD::~EvtDeBD ( )
virtual

Definition at line 40 of file EvtDeBD.cc.

40{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDeBD::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 49 of file EvtDeBD.cc.

49 {
50
51 return new EvtDeBD;
52
53}
EvtDeBD()
Definition: EvtDeBD.hh:32

◆ decay()

void EvtDeBD::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 74 of file EvtDeBD.cc.

74 {
75
76 static EvtId PIM=EvtPDL::getId("pi-");
77 static EvtId PI0=EvtPDL::getId("pi0");
78 static EvtId KM=EvtPDL::getId("K-");
79
80 static EvtId L0 =EvtPDL::getId("Lambda0");
81 static EvtId LB =EvtPDL::getId("anti-Lambda0");
82 static EvtId XM =EvtPDL::getId("Xi-");
83 static EvtId XMB=EvtPDL::getId("anti-Xi+");
84 static EvtId X0 =EvtPDL::getId("Xi0");
85 static EvtId X0B=EvtPDL::getId("anti-Xi0");
86
87 static EvtId OM =EvtPDL::getId("Omega-");
88 static EvtId OMB=EvtPDL::getId("anti-Omega+");
89
91
92 EvtParticle *l1, *l2;
93 l1 = p->getDaug(0);
94 l2 = p->getDaug(1);
95
96 EvtId p1,d1,d2;
97 p1=p ->getId();
98 d1=l1->getId();
99 d2=l2->getId();
100
101
102 EvtVector4R pDaug=l1->getP4();
103 double p3=pDaug.d3mag();
104
105 EvtVector4R pv,ps,ppr;
106 pv=l1->getP4Lab(); //baryon
107 ps=l2->getP4Lab(); //meson
108 ppr=p->getP4();
109
110 double theta,alpha;
111 EvtHelSys angles(ppr,pv); //using helicity sys.angles
112 theta=angles.getHelAng(1);
113 double phi =angles.getHelAng(2);
114 double gamma=0;
115
116 if((p1==OM)&&(d1==L0)){
117 alpha=0.0175;
118 }
119 else if((p1==OMB)&&(d1==LB)){
120 alpha=-0.0175;
121 }
122 else if((p1==OM)&&(d1==X0)){
123 alpha=0.09;
124 }
125 else if((p1==OMB)||(d1==X0B)){
126 alpha=-0.09;
127 }
128 else if((p1==OM)||(d1==XM)){
129 alpha=0.05;
130 }
131 else if((p1==OMB)||(d1==XMB)){
132 alpha=-0.05;
133 }
134
135 double FP,FM;
136 if(p1==OM||p1==OMB){
137 FM=sqrt((1+alpha)/2.);
138 FP=sqrt((1-alpha)/2.);
139 }
140 else {
141 FP=1;FM=1;
142 }
143
144 vertex(0,0,Djmn(1.5, 0.5, 0.5,phi,theta,gamma)*FP);
145 vertex(0,1,Djmn(1.5, 0.5,-0.5,phi,theta,gamma)*FM);
146 vertex(1,0,Djmn(1.5, 1.5, 0.5,phi,theta,gamma)*FP);
147 vertex(1,1,Djmn(1.5, 1.5,-0.5,phi,theta,gamma)*FM);
148 vertex(2,0,Djmn(1.5,-1.5, 0.5,phi,theta,gamma)*FP);
149 vertex(2,1,Djmn(1.5,-1.5,-0.5,phi,theta,gamma)*FM);
150 vertex(3,0,Djmn(1.5,-0.5, 0.5,phi,theta,gamma)*FP);
151 vertex(3,1,Djmn(1.5,-0.5,-0.5,phi,theta,gamma)*FM);
152
153 return;
154
155}
EvtComplex Djmn(int j, int m, int n, double phi, double theta, double gamma)
Definition: EvtHelSys.cc:151
const double alpha
#define X0
void vertex(const EvtComplex &amp)
Definition: EvtDecayAmp.hh:37
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
Definition: EvtId.hh:27
static EvtId getId(const std::string &name)
Definition: EvtPDL.cc:287
EvtVector4R getP4Lab()
Definition: EvtParticle.cc:685
EvtId getId() const
Definition: EvtParticle.cc:113
const EvtVector4R & getP4() const
Definition: EvtParticle.cc:121
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:85
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
double d3mag() const
Definition: EvtVector4R.cc:186

◆ getName()

void EvtDeBD::getName ( std::string &  name)
virtual

Implements EvtDecayBase.

Definition at line 42 of file EvtDeBD.cc.

42 {
43
44 model_name="DeBD";
45
46}

◆ init()

void EvtDeBD::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 55 of file EvtDeBD.cc.

55 {
56
57 // check that there are 0 arguments
58 checkNArg(0);
59 checkNDaug(2);
60
62
65
66}
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)

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