BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPBB2 Class Reference

#include <EvtPBB2.hh>

+ Inheritance diagram for EvtPBB2:

Public Member Functions

 EvtPBB2 ()
 
virtual ~EvtPBB2 ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void decay (EvtParticle *p)
 
void init ()
 
void init (int, double *)
 
void initProbMax ()
 
- 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 ()
 

Public Attributes

double alpha
 
double u
 

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 30 of file EvtPBB2.hh.

Constructor & Destructor Documentation

◆ EvtPBB2()

EvtPBB2::EvtPBB2 ( )
inline

Definition at line 34 of file EvtPBB2.hh.

34{}

Referenced by clone().

◆ ~EvtPBB2()

EvtPBB2::~EvtPBB2 ( )
virtual

Definition at line 42 of file EvtPBB2.cc.

42{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtPBB2::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 51 of file EvtPBB2.cc.

51 {
52
53 return new EvtPBB2;
54
55}
EvtPBB2()
Definition: EvtPBB2.hh:34

◆ decay()

void EvtPBB2::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 74 of file EvtPBB2.cc.

74 {
75
76
78
79 double rt =getArg(0);
80 double phs=getArg(0);
81
82 int ii,jj;
83 for(ii=0;ii<4;ii++){
84 for(jj=0;jj<4;jj++){
85 vertex(ii,jj,0);
86 }
87 }
88
89 vertex(0,0, 1.);
90 vertex(1,1, rt*exp(EvtComplex(0,phs)));
91 vertex(2,2,-rt*exp(EvtComplex(0,phs)));
92 vertex(3,3, -1);
93 return ;
94
95}
EvtComplex exp(const EvtComplex &c)
Definition: EvtComplex.hh:252
void vertex(const EvtComplex &amp)
Definition: EvtDecayAmp.hh:37
double getArg(int j)
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)

◆ getName()

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

Implements EvtDecayBase.

Definition at line 44 of file EvtPBB2.cc.

44 {
45
46 model_name="PBB2";
47
48}

◆ init() [1/2]

void EvtPBB2::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 57 of file EvtPBB2.cc.

57 {
58 checkNDaug(2);
62
63 }
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkSpinParent(EvtSpinType::spintype sp)
void checkNDaug(int d1, int d2=-1)

◆ init() [2/2]

void EvtPBB2::init ( int  ,
double *   
)

◆ initProbMax()

void EvtPBB2::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 66 of file EvtPBB2.cc.

66 {
67
68 //Hard coded... should not be hard to calculate...
69 double rt =getArg(0);
70 double pmax=2+2*rt*rt;
71 setProbMax(pmax);
72}
void setProbMax(double prbmx)

Member Data Documentation

◆ alpha

double EvtPBB2::alpha

Definition at line 45 of file EvtPBB2.hh.

◆ u

double EvtPBB2::u

Definition at line 46 of file EvtPBB2.hh.


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