BOSS 7.1.2
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 12 of file EvtEtap2gpipi.hh.

12{}

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 38 of file EvtEtap2gpipi.cc.

38 {
39 return new EvtEtap2gpipi;
40}

◆ decay()

void EvtEtap2gpipi::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 85 of file EvtEtap2gpipi.cc.

85 {
86/*
87 double maxprob = 0.0;
88 for(int ir=0;ir<=60000000;ir++){
89 p->initializePhaseSpace(getNDaug(),getDaugs());
90 _pd[0]=p->getDaug(0)->getP4();
91 _pd[1]=p->getDaug(1)->getP4();
92 _pd[2]=p->getDaug(2)->getP4();
93 double Prob = AMPsq();
94 if(Prob>maxprob) {
95 maxprob=Prob;
96 std::cout << "Max PDF = " << ir << " prob= " << Prob << std::endl;
97 }
98 }
99 std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
100*/
102 _pd[0]=p->getDaug(0)->getP4();
103 _pd[1]=p->getDaug(1)->getP4();
104 _pd[2]=p->getDaug(2)->getP4();
105 double prob = AMPsq();
106 setProb(prob);
107 return;
108}
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 {
35 model_name="Etap2gpipi";
36}

◆ init()

void EvtEtap2gpipi::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 42 of file EvtEtap2gpipi.cc.

42 {
43 checkNArg(1);
44 checkNDaug(3);
47 _flag=getArg(0);
48
49 if (_flag==1) {
50 Mrho = 7.76565e-01;
51 Grho = 1.50839e-01;
52 delta = 1.60865e-03;
53 argdelta = 6.71184e-02;
54 delta2 = 4.15936e-01 ;
55 argdelta2 = 2.00844e-02;
56 Eetap = -2.13798e+01;
57 } else {
58 Mrho = 7.72929e-01;
59 Grho = 1.50184e-01;
60 delta = 1.58745e-03;
61 argdelta = 6.25729e+00;
62 delta2 = 2.58505e-01;
63 argdelta2 = 3.28230e+00;
64 Eetap = 0.000000;
65 }
66 Momega = 0.78265;
67 Gomega = 0.00849;
68 Mrhop = 1.465;
69 Grhop = 0.400;
70
71 PI = 3.14159265;
72 mpi=0.13957018;
73}
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:61

◆ initProbMax()

void EvtEtap2gpipi::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 75 of file EvtEtap2gpipi.cc.

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

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