CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtCBTo3piP00 Class Reference

#include <EvtCBTo3piP00.hh>

+ Inheritance diagram for EvtCBTo3piP00:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtCBTo3piP00()

EvtCBTo3piP00::EvtCBTo3piP00 ( )
inline

Definition at line 32 of file EvtCBTo3piP00.hh.

32{}

Referenced by clone().

◆ ~EvtCBTo3piP00()

EvtCBTo3piP00::~EvtCBTo3piP00 ( )
virtual

Definition at line 42 of file EvtCBTo3piP00.cc.

42{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtCBTo3piP00::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 51 of file EvtCBTo3piP00.cc.

51 {
52
53 return new EvtCBTo3piP00;
54
55}

◆ decay()

void EvtCBTo3piP00::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 80 of file EvtCBTo3piP00.cc.

80 {
81
82 //added by Lange Jan4,2000
83 static EvtId BM=EvtPDL::getId("B-");
84 static EvtId BP=EvtPDL::getId("B+");
85
86 EvtParticle *pi1,*pi2,*pi3;
87
89 pi1=p->getDaug(0);
90 pi2=p->getDaug(1);
91 pi3=p->getDaug(2);
92
93 EvtVector4R p4[3];
94 double alpha = getArg(0);
95 int iset;
96 static int first=1;
97
98 if (first==1) {
99 iset=10000;
100 first=0;
101 }
102 else{
103 iset=0;
104 }
105
106 double p4pi1[4],p4Gamma11[4],p4Gamma12[4];
107 double p4Gamma21[4],p4Gamma22[4];
108
109 double realA,imgA,realbarA,imgbarA;
110
111 evt3pionsp00_(&alpha,&iset,
112 p4pi1,
113 p4Gamma11,p4Gamma12,
114 p4Gamma21,p4Gamma22,
115 &realA,&imgA,&realbarA,&imgbarA);
116
117 p4[0].set(p4pi1[3],p4pi1[0],p4pi1[1],p4pi1[2]);
118 p4[1].set(p4Gamma11[3]+p4Gamma12[3],
119 p4Gamma11[0]+p4Gamma12[0],
120 p4Gamma11[1]+p4Gamma12[1],
121 p4Gamma11[2]+p4Gamma12[2]);
122 p4[2].set(p4Gamma21[3]+p4Gamma22[3],
123 p4Gamma21[0]+p4Gamma22[0],
124 p4Gamma21[1]+p4Gamma22[1],
125 p4Gamma21[2]+p4Gamma22[2]);
126
127 pi1->init( getDaug(0), p4[0] );
128 pi2->init( getDaug(1), p4[1] );
129 pi3->init( getDaug(2), p4[2] );
130
131 EvtComplex A(realA,imgA);
132 EvtComplex Abar(realbarA, imgbarA);
133
134 EvtComplex amp;
135 if(p->getId()==BP)
136 {
137 amp = A;
138 }
139 if(p->getId()==BM)
140 {
141 amp = Abar;
142 }
143
144 vertex(amp);
145
146 return ;
147}
void evt3pionsp00_(double *, int *, double *, double *, 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 EvtCBTo3piP00::getName ( std::string &  name)
virtual

Implements EvtDecayBase.

Definition at line 44 of file EvtCBTo3piP00.cc.

44 {
45
46 model_name="CB3PI-P00";
47
48}

◆ init()

void EvtCBTo3piP00::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 57 of file EvtCBTo3piP00.cc.

57 {
58
59 // check that there are 1 argument
60 checkNArg(1);
61 checkNDaug(3);
62
64
68
69}
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 EvtCBTo3piP00::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 73 of file EvtCBTo3piP00.cc.

73 {
74
75 setProbMax(1.5);
76
77}
void setProbMax(double prbmx)

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