BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtCBTo3piMPP Class Reference

#include <EvtCBTo3piMPP.hh>

+ Inheritance diagram for EvtCBTo3piMPP:

Public Member Functions

 EvtCBTo3piMPP ()
 
virtual ~EvtCBTo3piMPP ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void init ()
 
void initProbMax ()
 
void decay (EvtParticle *p)
 
 EvtCBTo3piMPP ()
 
virtual ~EvtCBTo3piMPP ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void init ()
 
void initProbMax ()
 
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 ()
 
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 ()
 
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)
 
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 ()
 
bool daugsDecayedByParentModel ()
 
- Protected Attributes inherited from EvtDecayAmp
EvtAmp _amp2
 
- Protected Attributes inherited from EvtDecayBase
bool _daugsDecayedByParentModel
 

Detailed Description

Constructor & Destructor Documentation

◆ EvtCBTo3piMPP() [1/2]

EvtCBTo3piMPP::EvtCBTo3piMPP ( )
inline

Definition at line 32 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtCBTo3piMPP.hh.

32{}

Referenced by clone().

◆ ~EvtCBTo3piMPP() [1/2]

EvtCBTo3piMPP::~EvtCBTo3piMPP ( )
virtual

◆ EvtCBTo3piMPP() [2/2]

EvtCBTo3piMPP::EvtCBTo3piMPP ( )
inline

◆ ~EvtCBTo3piMPP() [2/2]

virtual EvtCBTo3piMPP::~EvtCBTo3piMPP ( )
virtual

Member Function Documentation

◆ clone() [1/2]

EvtDecayBase * EvtCBTo3piMPP::clone ( )
virtual

◆ clone() [2/2]

EvtDecayBase * EvtCBTo3piMPP::clone ( )
virtual

Implements EvtDecayBase.

◆ decay() [1/2]

void EvtCBTo3piMPP::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 75 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtCBTo3piMPP.cc.

75 {
76
77 //added by Lange Jan4,2000
78 static EvtId BM=EvtPDL::getId("B-");
79 static EvtId BP=EvtPDL::getId("B+");
80
81 EvtParticle *pi1,*pi2,*pi3;
82
84 pi1=p->getDaug(0);
85 pi2=p->getDaug(1);
86 pi3=p->getDaug(2);
87
88 EvtVector4R p4[3];
89 double alpha = getArg(0);
90
91 int iset;
92
93 static int first=1;
94
95 if (first==1) {
96 iset=10000;
97 first=0;
98 }
99 else{
100 iset=0;
101 }
102
103 double p4pi1[4],p4pi2[4],p4pi3[4];
104
105 double realA,imgA,realbarA,imgbarA;
106
107 evt3pionsmpp_(&alpha,&iset,p4pi1,p4pi2,p4pi3,
108 &realA,&imgA,&realbarA,&imgbarA);
109
110
111 p4[0].set(p4pi1[3],p4pi1[0],p4pi1[1],p4pi1[2]);
112 p4[1].set(p4pi2[3],p4pi2[0],p4pi2[1],p4pi2[2]);
113 p4[2].set(p4pi3[3],p4pi3[0],p4pi3[1],p4pi3[2]);
114
115 pi1->init( getDaug(0), p4[0] );
116 pi2->init( getDaug(1), p4[1] );
117 pi3->init( getDaug(2), p4[2] );
118
119 EvtComplex A(realA,imgA);
120 EvtComplex Abar(realbarA, imgbarA);
121
122 //amp is filled just to make sure the compiler will
123 //do its job!! but one has to define amp differently
124 // if one wants the B+ or the B- to decay to 3pi!
125 //
126
127
128 EvtComplex amp;
129 if(p->getId()==BP)
130 {
131 amp = A;
132 }
133 if(p->getId()==BM)
134 {
135 amp = Abar;
136 }
137
138 vertex(amp);
139
140 return ;
141}
const double alpha
void evt3pionsmpp_(double *, int *, double *, double *, double *, double *, double *, double *, double *)
static EvtId getId(const std::string &name)
virtual void init(EvtId part_n, const EvtVector4R &p4)=0

◆ decay() [2/2]

void EvtCBTo3piMPP::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

◆ getName() [1/2]

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

Implements EvtDecayBase.

Definition at line 42 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtCBTo3piMPP.cc.

42 {
43
44 model_name="CB3PI-MPP";
45
46}

◆ getName() [2/2]

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

Implements EvtDecayBase.

◆ init() [1/2]

void EvtCBTo3piMPP::init ( )
virtual

◆ init() [2/2]

void EvtCBTo3piMPP::init ( )
virtual

Reimplemented from EvtDecayBase.

◆ initProbMax() [1/2]

void EvtCBTo3piMPP::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 69 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtCBTo3piMPP.cc.

69 {
70
71 setProbMax(1.5);
72
73}

◆ initProbMax() [2/2]

void EvtCBTo3piMPP::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.


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