BOSS 7.0.5
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)
 
- 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 EvtCBTo3piMPP.hh.

Constructor & Destructor Documentation

◆ EvtCBTo3piMPP()

EvtCBTo3piMPP::EvtCBTo3piMPP ( )
inline

Definition at line 32 of file EvtCBTo3piMPP.hh.

32{}

Referenced by clone().

◆ ~EvtCBTo3piMPP()

EvtCBTo3piMPP::~EvtCBTo3piMPP ( )
virtual

Definition at line 40 of file EvtCBTo3piMPP.cc.

40{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtCBTo3piMPP::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 49 of file EvtCBTo3piMPP.cc.

49 {
50
51 return new EvtCBTo3piMPP;
52
53}

◆ decay()

void EvtCBTo3piMPP::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 75 of file 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}
void evt3pionsmpp_(double *, int *, double *, double *, double *, double *, double *, double *, double *)
const double alpha
void vertex(const EvtComplex &amp)
Definition: EvtDecayAmp.hh:37
double getArg(int j)
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
EvtId getDaug(int i)
Definition: EvtDecayBase.hh:66
Definition: EvtId.hh:27
static EvtId getId(const std::string &name)
Definition: EvtPDL.cc:287
void makeDaughters(int ndaug, EvtId *id)
virtual void init(EvtId part_n, const EvtVector4R &p4)=0
EvtId getId() const
Definition: EvtParticle.cc:113
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:85
void set(int i, double d)
Definition: EvtVector4R.hh:183
Index first(Pair i)
Definition: EvtCyclic3.cc:195

◆ getName()

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

Implements EvtDecayBase.

Definition at line 42 of file EvtCBTo3piMPP.cc.

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

◆ init()

void EvtCBTo3piMPP::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 55 of file EvtCBTo3piMPP.cc.

55 {
56
57 // check that there are 1 argument
58 checkNArg(1);
59 checkNDaug(3);
60
62
66
67}
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 EvtCBTo3piMPP::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 69 of file EvtCBTo3piMPP.cc.

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

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