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

#include <EvtEtap2gpipi.hh>

Inheritance diagram for EvtEtap2gpipi:

Public Member Functions

 EvtEtap2gpipi ()
virtual ~EvtEtap2gpipi ()
void getName (std::string &name)
EvtDecayBaseclone ()
void init ()
void initProbMax ()
void decay (EvtParticle *p)
Public Member Functions inherited from EvtDecayProb
void makeDecay (EvtParticle *p)
void setProb (double prob)
double getProb ()
void setWeight (double weight)
virtual ~EvtDecayProb ()
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 EvtDecayBase
bool _daugsDecayedByParentModel

Detailed Description

Definition at line 8 of file EvtEtap2gpipi.hh.

Constructor & Destructor Documentation

◆ EvtEtap2gpipi()

EvtEtap2gpipi::EvtEtap2gpipi ( )
inline

Definition at line 11 of file EvtEtap2gpipi.hh.

11{}

Referenced by clone().

◆ ~EvtEtap2gpipi()

EvtEtap2gpipi::~EvtEtap2gpipi ( )
virtual

Definition at line 32 of file EvtEtap2gpipi.cc.

32{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtEtap2gpipi::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 36 of file EvtEtap2gpipi.cc.

36{ return new EvtEtap2gpipi; }

◆ decay()

void EvtEtap2gpipi::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 89 of file EvtEtap2gpipi.cc.

89 {
90 /*
91 double maxprob = 0.0;
92 for(int ir=0;ir<=60000000;ir++){
93 p->initializePhaseSpace(getNDaug(),getDaugs());
94 _pd[0]=p->getDaug(0)->getP4();
95 _pd[1]=p->getDaug(1)->getP4();
96 _pd[2]=p->getDaug(2)->getP4();
97 double Prob = AMPsq();
98 if(Prob>maxprob) {
99 maxprob=Prob;
100 std::cout << "Max PDF = " << ir << " prob= " << Prob << std::endl;
101 }
102 }
103 std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
104 */
106 _pd[0] = p->getDaug( 0 )->getP4();
107 _pd[1] = p->getDaug( 1 )->getP4();
108 _pd[2] = p->getDaug( 2 )->getP4();
109 double prob = AMPsq();
110 setProb( prob );
111 return;
112}
EvtId * getDaugs()
void setProb(double prob)
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)

◆ getName()

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

Implements EvtDecayBase.

Definition at line 34 of file EvtEtap2gpipi.cc.

34{ model_name = "Etap2gpipi"; }

◆ init()

void EvtEtap2gpipi::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 38 of file EvtEtap2gpipi.cc.

38 {
39 checkNArg( 1 );
40 checkNDaug( 3 );
43 _flag = getArg( 0 );
44
45 if ( _flag == 1 )
46 {
47 Mrho = 7.76565e-01;
48 Grho = 1.50839e-01;
49 delta = 1.60865e-03;
50 argdelta = 6.71184e-02;
51 delta2 = 4.15936e-01;
52 argdelta2 = 2.00844e-02;
53 Eetap = -2.13798e+01;
54 }
55 else
56 {
57 Mrho = 7.72929e-01;
58 Grho = 1.50184e-01;
59 delta = 1.58745e-03;
60 argdelta = 6.25729e+00;
61 delta2 = 2.58505e-01;
62 argdelta2 = 3.28230e+00;
63 Eetap = 0.000000;
64 }
65 Momega = 0.78265;
66 Gomega = 0.00849;
67 Mrhop = 1.465;
68 Grhop = 0.400;
69
70 PI = 3.14159265;
71 mpi = 0.13957018;
72}
void checkSpinParent(EvtSpinType::spintype sp)
double getArg(int j)
EvtId getParentId()
void checkNDaug(int d1, int d2=-1)
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
static EvtSpinType::spintype getSpinType(EvtId i)
Definition EvtPDL.hh:66

◆ initProbMax()

void EvtEtap2gpipi::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 74 of file EvtEtap2gpipi.cc.

74 {
75 if ( _flag == 1 )
76 {
77 // std::cout << "Initializing EvtEtap2gpipi... flag= " << _flag << " MaxProb= " << 0.0786
78 // << std::endl;
79 setProbMax( 0.0786 );
80 }
81 else
82 {
83 // std::cout << "Initializing EvtEtap2gpipi... flag= " << _flag << " MaxProb= " << 0.2760
84 // << std::endl;
85 setProbMax( 0.2760 );
86 }
87}
void setProbMax(double prbmx)

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