BOSS 8.0.0
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 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 31 of file EvtDeBD.hh.

31{}

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 44 of file EvtDeBD.cc.

44{ return new EvtDeBD; }
EvtDeBD()
Definition EvtDeBD.hh:31

◆ decay()

void EvtDeBD::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 64 of file EvtDeBD.cc.

64 {
65
66 static EvtId PIM = EvtPDL::getId( "pi-" );
67 static EvtId PI0 = EvtPDL::getId( "pi0" );
68 static EvtId KM = EvtPDL::getId( "K-" );
69
70 static EvtId L0 = EvtPDL::getId( "Lambda0" );
71 static EvtId LB = EvtPDL::getId( "anti-Lambda0" );
72 static EvtId XM = EvtPDL::getId( "Xi-" );
73 static EvtId XMB = EvtPDL::getId( "anti-Xi+" );
74 static EvtId X0 = EvtPDL::getId( "Xi0" );
75 static EvtId X0B = EvtPDL::getId( "anti-Xi0" );
76
77 static EvtId OM = EvtPDL::getId( "Omega-" );
78 static EvtId OMB = EvtPDL::getId( "anti-Omega+" );
79
81
82 EvtParticle *l1, *l2;
83 l1 = p->getDaug( 0 );
84 l2 = p->getDaug( 1 );
85
86 EvtId p1, d1, d2;
87 p1 = p->getId();
88 d1 = l1->getId();
89 d2 = l2->getId();
90
91 EvtVector4R pDaug = l1->getP4();
92 double p3 = pDaug.d3mag();
93
94 EvtVector4R pv, ps, ppr;
95 pv = l1->getP4Lab(); // baryon
96 ps = l2->getP4Lab(); // meson
97 ppr = p->getP4();
98
99 double theta, alpha;
100 EvtHelSys angles( ppr, pv ); // using helicity sys.angles
101 theta = angles.getHelAng( 1 );
102 double phi = angles.getHelAng( 2 );
103 double gamma = 0;
104
105 if ( ( p1 == OM ) && ( d1 == L0 ) ) { alpha = 0.0175; }
106 else if ( ( p1 == OMB ) && ( d1 == LB ) ) { alpha = -0.0175; }
107 else if ( ( p1 == OM ) && ( d1 == X0 ) ) { alpha = 0.09; }
108 else if ( ( p1 == OMB ) || ( d1 == X0B ) ) { alpha = -0.09; }
109 else if ( ( p1 == OM ) || ( d1 == XM ) ) { alpha = 0.05; }
110 else if ( ( p1 == OMB ) || ( d1 == XMB ) ) { alpha = -0.05; }
111
112 double FP, FM;
113 if ( p1 == OM || p1 == OMB )
114 {
115 FM = sqrt( ( 1 + alpha ) / 2. );
116 FP = sqrt( ( 1 - alpha ) / 2. );
117 }
118 else
119 {
120 FP = 1;
121 FM = 1;
122 }
123
124 vertex( 0, 0, Djmn( 1.5, 0.5, 0.5, phi, theta, gamma ) * FP );
125 vertex( 0, 1, Djmn( 1.5, 0.5, -0.5, phi, theta, gamma ) * FM );
126 vertex( 1, 0, Djmn( 1.5, 1.5, 0.5, phi, theta, gamma ) * FP );
127 vertex( 1, 1, Djmn( 1.5, 1.5, -0.5, phi, theta, gamma ) * FM );
128 vertex( 2, 0, Djmn( 1.5, -1.5, 0.5, phi, theta, gamma ) * FP );
129 vertex( 2, 1, Djmn( 1.5, -1.5, -0.5, phi, theta, gamma ) * FM );
130 vertex( 3, 0, Djmn( 1.5, -0.5, 0.5, phi, theta, gamma ) * FP );
131 vertex( 3, 1, Djmn( 1.5, -0.5, -0.5, phi, theta, gamma ) * FM );
132
133 return;
134}
double p1[4]
EvtComplex Djmn(int j, int m, int n, double phi, double theta, double gamma)
Definition EvtHelSys.cc:165
double alpha
#define X0
void vertex(const EvtComplex &amp)
EvtId * getDaugs()
static EvtId getId(const std::string &name)
Definition EvtPDL.cc:272
EvtVector4R getP4Lab()
EvtId getId() const
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
double d3mag() const

◆ getName()

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

Implements EvtDecayBase.

Definition at line 42 of file EvtDeBD.cc.

42{ model_name = "DeBD"; }

◆ init()

void EvtDeBD::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 46 of file EvtDeBD.cc.

46 {
47
48 // check that there are 0 arguments
49 checkNArg( 0 );
50 checkNDaug( 2 );
51
53
56}
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: