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

#include <EvtBToKpipiCP.hh>

+ Inheritance diagram for EvtBToKpipiCP:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtBToKpipiCP()

EvtBToKpipiCP::EvtBToKpipiCP ( )
inline

Definition at line 32 of file EvtBToKpipiCP.hh.

32{}

Referenced by clone().

◆ ~EvtBToKpipiCP()

EvtBToKpipiCP::~EvtBToKpipiCP ( )
virtual

Definition at line 47 of file EvtBToKpipiCP.cc.

47{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtBToKpipiCP::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 57 of file EvtBToKpipiCP.cc.

57 {
58
59 return new EvtBToKpipiCP;
60
61}

◆ decay()

void EvtBToKpipiCP::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 78 of file EvtBToKpipiCP.cc.

78 {
79
80 //added by Lange Jan4,2000
81 static EvtId B0=EvtPDL::getId("B0");
82 static EvtId B0B=EvtPDL::getId("anti-B0");
83
84 double t;
85 EvtId other_b;
86
87 EvtCPUtil::OtherB(p,t,other_b);
88
89 EvtParticle *Kp,*pim,*pi0;
90
92 Kp=p->getDaug(0);
93 pim=p->getDaug(1);
94 pi0=p->getDaug(2);
95
96 EvtVector4R p4[3];
97
98 //double dm=getArg(0);
99 double alpha=getArg(1);
100 double beta=getArg(2);
101 int iset;
102
103 static int first=1;
104
105 if (first==1) {
106 iset=10000;
107 first=0;
108 }
109 else{
110 iset=0;
111 }
112
113 double p4Kplus[4],p4piminus[4],p4gamm1[4],p4gamm2[4];
114
115 double realA,imgA,realbarA,imgbarA;
116
117 evtkpipi_(&alpha,&beta,&iset,p4Kplus,p4piminus,p4gamm1,p4gamm2,
118 &realA,&imgA,&realbarA,&imgbarA);
119
120 p4[0].set(p4Kplus[3],p4Kplus[0],p4Kplus[1],p4Kplus[2]);
121 p4[1].set(p4piminus[3],p4piminus[0],p4piminus[1],p4piminus[2]);
122 p4[2].set(p4gamm1[3]+p4gamm2[3],p4gamm1[0]+p4gamm2[0],
123 p4gamm1[1]+p4gamm2[1],p4gamm1[2]+p4gamm2[2]);
124
125 Kp->init( getDaug(0), p4[0] );
126 pim->init( getDaug(1), p4[1] );
127 pi0->init( getDaug(2), p4[2] );
128
129 EvtComplex amp;
130
131 EvtComplex A(realA,imgA);
132 EvtComplex Abar(realbarA,imgbarA);
133
134 if (other_b==B0B){
135 amp=Abar;
136 }
137 if (other_b==B0){
138 amp=A;
139 }
140
141 vertex(amp);
142
143 return ;
144}
void evtkpipi_(double *, double *, int *, double *, double *, double *, double *, double *, double *, double *, double *)
const double alpha
static void OtherB(EvtParticle *p, double &t, EvtId &otherb)
Definition: EvtCPUtil.cc:229
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
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
int t()
Definition: t.c:1

◆ getName()

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

Implements EvtDecayBase.

Definition at line 50 of file EvtBToKpipiCP.cc.

50 {
51
52 model_name="BTOKPIPI_CP";
53
54}

◆ init()

void EvtBToKpipiCP::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 63 of file EvtBToKpipiCP.cc.

63 {
64
65 // check that there are 3 arguments
66 checkNArg(3);
67 checkNDaug(3);
68
70
74
75}
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: