BOSS 8.0.0
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 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 31 of file EvtCBTo3piP00.hh.

31{}

Referenced by clone().

◆ ~EvtCBTo3piP00()

EvtCBTo3piP00::~EvtCBTo3piP00 ( )
virtual

Definition at line 39 of file EvtCBTo3piP00.cc.

39{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtCBTo3piP00::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 43 of file EvtCBTo3piP00.cc.

43{ return new EvtCBTo3piP00; }

◆ decay()

void EvtCBTo3piP00::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 60 of file EvtCBTo3piP00.cc.

60 {
61
62 // added by Lange Jan4,2000
63 static EvtId BM = EvtPDL::getId( "B-" );
64 static EvtId BP = EvtPDL::getId( "B+" );
65
66 EvtParticle *pi1, *pi2, *pi3;
67
69 pi1 = p->getDaug( 0 );
70 pi2 = p->getDaug( 1 );
71 pi3 = p->getDaug( 2 );
72
73 EvtVector4R p4[3];
74 double alpha = getArg( 0 );
75 int iset;
76 static int first = 1;
77
78 if ( first == 1 )
79 {
80 iset = 10000;
81 first = 0;
82 }
83 else { iset = 0; }
84
85 double p4pi1[4], p4Gamma11[4], p4Gamma12[4];
86 double p4Gamma21[4], p4Gamma22[4];
87
88 double realA, imgA, realbarA, imgbarA;
89
90 evt3pionsp00_( &alpha, &iset, p4pi1, p4Gamma11, p4Gamma12, p4Gamma21, p4Gamma22, &realA,
91 &imgA, &realbarA, &imgbarA );
92
93 p4[0].set( p4pi1[3], p4pi1[0], p4pi1[1], p4pi1[2] );
94 p4[1].set( p4Gamma11[3] + p4Gamma12[3], p4Gamma11[0] + p4Gamma12[0],
95 p4Gamma11[1] + p4Gamma12[1], p4Gamma11[2] + p4Gamma12[2] );
96 p4[2].set( p4Gamma21[3] + p4Gamma22[3], p4Gamma21[0] + p4Gamma22[0],
97 p4Gamma21[1] + p4Gamma22[1], p4Gamma21[2] + p4Gamma22[2] );
98
99 pi1->init( getDaug( 0 ), p4[0] );
100 pi2->init( getDaug( 1 ), p4[1] );
101 pi3->init( getDaug( 2 ), p4[2] );
102
103 EvtComplex A( realA, imgA );
104 EvtComplex Abar( realbarA, imgbarA );
105
106 EvtComplex amp;
107 if ( p->getId() == BP ) { amp = A; }
108 if ( p->getId() == BM ) { amp = Abar; }
109
110 vertex( amp );
111
112 return;
113}
character *LEPTONflag integer iresonances real pi2
void evt3pionsp00_(double *, int *, double *, double *, double *, double *, double *, double *, double *, double *, double *)
double alpha
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)

◆ getName()

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

Implements EvtDecayBase.

Definition at line 41 of file EvtCBTo3piP00.cc.

41{ model_name = "CB3PI-P00"; }

◆ init()

void EvtCBTo3piP00::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 45 of file EvtCBTo3piP00.cc.

45 {
46
47 // check that there are 1 argument
48 checkNArg( 1 );
49 checkNDaug( 3 );
50
52
56}
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 58 of file EvtCBTo3piP00.cc.

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

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