BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtBTo3piCP Class Reference

#include <EvtBTo3piCP.hh>

Inheritance diagram for EvtBTo3piCP:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtBTo3piCP()

EvtBTo3piCP::EvtBTo3piCP ( )
inline

Definition at line 31 of file EvtBTo3piCP.hh.

31{}

Referenced by clone().

◆ ~EvtBTo3piCP()

EvtBTo3piCP::~EvtBTo3piCP ( )
virtual

Definition at line 38 of file EvtBTo3piCP.cc.

38{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtBTo3piCP::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 42 of file EvtBTo3piCP.cc.

42{ return new EvtBTo3piCP; }

◆ decay()

void EvtBTo3piCP::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 59 of file EvtBTo3piCP.cc.

59 {
60
61 // added by Lange Jan4,2000
62 static EvtId B0 = EvtPDL::getId( "B0" );
63 static EvtId B0B = EvtPDL::getId( "anti-B0" );
64
65 double t;
66 EvtId other_b;
67
68 EvtCPUtil::OtherB( p, t, other_b );
69
70 EvtParticle *pip, *pim, *pi0;
71
73
74 // p->init_daug(SCALAR,&pip,SCALAR,&pim,SCALAR,&pi0);
75 pip = p->getDaug( 0 );
76 pim = p->getDaug( 1 );
77 pi0 = p->getDaug( 2 );
78
79 EvtVector4R p4[3];
80
81 double dm = getArg( 0 );
82 double alpha = getArg( 1 );
83 int iset;
84
85 static int first = 1;
86
87 if ( first == 1 )
88 {
89 iset = 10000;
90 first = 0;
91 }
92 else { iset = 0; }
93
94 double p4piplus[4], p4piminus[4], p4gamm1[4], p4gamm2[4];
95
96 double realA, imgA, realbarA, imgbarA;
97
98 evt3pions_( &alpha, &iset, p4piplus, p4piminus, p4gamm1, p4gamm2, &realA, &imgA, &realbarA,
99 &imgbarA );
100
101 p4[0].set( p4piplus[3], p4piplus[0], p4piplus[1], p4piplus[2] );
102 p4[1].set( p4piminus[3], p4piminus[0], p4piminus[1], p4piminus[2] );
103 p4[2].set( p4gamm1[3] + p4gamm2[3], p4gamm1[0] + p4gamm2[0], p4gamm1[1] + p4gamm2[1],
104 p4gamm1[2] + p4gamm2[2] );
105
106 if ( pip->getId() == EvtPDL::getId( "pi+" ) )
107 {
108 pip->init( getDaug( 0 ), p4[0] );
109 pim->init( getDaug( 1 ), p4[1] );
110 }
111 else
112 {
113 pip->init( getDaug( 0 ), p4[1] );
114 pim->init( getDaug( 1 ), p4[0] );
115 }
116
117 pi0->init( getDaug( 2 ), p4[2] );
118
119 EvtComplex amp;
120
121 EvtComplex A( realA, imgA );
122 EvtComplex Abar( realbarA, imgbarA );
123
124 if ( other_b == B0B )
125 {
126 amp = A * cos( dm * t / ( 2 * EvtConst::c ) ) +
127 EvtComplex( 0., 1. ) * Abar * sin( dm * t / ( 2 * EvtConst::c ) );
128 }
129 if ( other_b == B0 )
130 {
131 amp = Abar * cos( dm * t / ( 2 * EvtConst::c ) ) +
132 EvtComplex( 0., 1. ) * A * sin( dm * t / ( 2 * EvtConst::c ) );
133 }
134
135 vertex( amp );
136
137 return;
138}
void evt3pions_(double *, int *, double *, double *, double *, double *, double *, double *, double *, double *)
double alpha
static void OtherB(EvtParticle *p, double &t, EvtId &otherb)
Definition EvtCPUtil.cc:225
static const double c
Definition EvtConst.hh:31
void vertex(const EvtComplex &amp)
double getArg(int j)
EvtId * getDaugs()
EvtId getDaug(int i)
static EvtId getId(const std::string &name)
Definition EvtPDL.cc:272
void makeDaughters(int ndaug, EvtId *id)
virtual void init(EvtId part_n, const EvtVector4R &p4)=0
EvtId getId() const
EvtParticle * getDaug(int i)
void set(int i, double d)
Index first(Pair i)
int t()
Definition t.c:1

◆ getName()

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

Implements EvtDecayBase.

Definition at line 40 of file EvtBTo3piCP.cc.

40{ model_name = "BTO3PI_CP"; }

◆ init()

void EvtBTo3piCP::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 44 of file EvtBTo3piCP.cc.

44 {
45
46 // check that there are 2 arguments
47 checkNArg( 2 );
48 checkNDaug( 3 );
49
51
55}
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 EvtBTo3piCP::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 57 of file EvtBTo3piCP.cc.

57{ setProbMax( 1.5 ); }
void setProbMax(double prbmx)

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