BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtDToa0enu Class Reference

#include <EvtDToa0enu.hh>

+ Inheritance diagram for EvtDToa0enu:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDToa0enu()

EvtDToa0enu::EvtDToa0enu ( )
inline

Definition at line 12 of file EvtDToa0enu.hh.

12{}

Referenced by clone().

◆ ~EvtDToa0enu()

EvtDToa0enu::~EvtDToa0enu ( )
virtual

Definition at line 29 of file EvtDToa0enu.cc.

29{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDToa0enu::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 35 of file EvtDToa0enu.cc.

35 {
36 return new EvtDToa0enu;
37}

◆ decay()

void EvtDToa0enu::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 84 of file EvtDToa0enu.cc.

84 {
85/*
86 double maxprob = 0.0;
87 for(int ir=0;ir<=60000000;ir++){
88 p->initializePhaseSpace(getNDaug(),getDaugs());
89 EvtVector4R _pi1 = p->getDaug(0)->getP4();
90 EvtVector4R _pi2 = p->getDaug(1)->getP4();
91 EvtVector4R _e = p->getDaug(2)->getP4();
92 EvtVector4R _nu = p->getDaug(3)->getP4();
93
94 int pid = EvtPDL::getStdHep(p->getDaug(2)->getId());
95 int charm;
96 if(pid == 11) charm = -1;
97 else charm = 1;
98 double m2, q2, cosV, cosL, chi;
99 KinVGen(_pi1, _pi2, _e, _nu, charm, m2, q2, cosV, cosL, chi);
100 double _prob = calPDF(m2, q2, cosV, cosL, chi);
101 if(_prob>maxprob) {
102 maxprob=_prob;
103 std::cout << "Max PDF = " << ir << " charm= " << charm << " prob= " << _prob << std::endl;
104 }
105 }
106 std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
107*/
109 EvtVector4R pi1 = p->getDaug(0)->getP4();
110 EvtVector4R pi2 = p->getDaug(1)->getP4();
111 EvtVector4R e = p->getDaug(2)->getP4();
112 EvtVector4R nu = p->getDaug(3)->getP4();
113
114 int pid = EvtPDL::getStdHep(p->getDaug(2)->getId());
115 int charm;
116 if(pid==11||pid==13) charm =-1;
117 else charm = 1;
118 double m2, q2, cosV, cosL, chi;
119 KinVGen(pi1, pi2, e, nu, charm, m2, q2, cosV, cosL, chi);
120 double prob = calPDF(m2, q2, cosV, cosL, chi);
121 setProb(prob);
122 return;
123}
character *LEPTONflag integer iresonances real pi2
EvtId * getDaugs()
void setProb(double prob)
static int getStdHep(EvtId id)
Definition EvtPDL.hh:56
EvtId getId() const
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
double double * m2
Definition qcdloop1.h:75

◆ getName()

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

Implements EvtDecayBase.

Definition at line 31 of file EvtDToa0enu.cc.

31 {
32 model_name="DToa0enu";
33}

◆ init()

void EvtDToa0enu::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 39 of file EvtDToa0enu.cc.

39 {
40 checkNArg(0);
41 checkNDaug(4);
45
46 mode = 1; // D+
47 ProbMax = 15.85;
48
49 // std::cout << "Initializing EvtDToa0enu (D+ -> a0(980)0 e+ nu_e) ProbMax = " << ProbMax << std::endl;
50
51 double m_Kaon = 0.493677;
52 m2_Kaon = m_Kaon*m_Kaon;
53 double m_K0 = 0.497614;
54 m2_K0 = m_K0*m_K0;
55 double m_eta = 0.547853;
56 m2_eta = m_eta*m_eta;
57 double m_Pion = 0.13957;
58 m2_Pion = m_Pion*m_Pion;
59 double m_Pi0 = 0.1349766;
60 m2_Pi0 = m_Pi0*m_Pi0;
61 m_D0 = 1.86486;
62 m2_D0 = m_D0*m_D0;
63 m_D = 1.86962;
64 m2_D = m_D*m_D;
65
66 ciR = EvtComplex(1.0, 0.0);
67 ciM = EvtComplex(0.0, 1.0);
68
69 ///////////// for D to a0 e nu
70 double mAD0 = 2.42;
71 m2AD0 = mAD0*mAD0;
72 double mAD = 2.42;
73 m2AD = mAD*mAD;
74 double m_a0 = 0.990;
75 m2_a0 = m_a0*m_a0;
76 flatte_g1 = 0.341;
77 flatte_g2 = 0.341*0.892;
78}
*********DOUBLE PRECISION m_pi INTEGER m_lenwt !max no of aux weights INTEGER m_phmax !maximum photon multiplicity ISR FSR *DOUBLE COMPLEX m_Pauli4 DOUBLE COMPLEX m_AmpBorn DOUBLE COMPLEX m_AmpBoxy DOUBLE COMPLEX m_AmpBorn1 DOUBLE COMPLEX m_AmpBorn2 DOUBLE COMPLEX m_AmpExpo2p DOUBLE COMPLEX m_Rmat DOUBLE COMPLEX m_BoxGZut !DOUBLE COMPLEX m_F1finPair2 !DOUBLE PRECISION m_Vcut DOUBLE PRECISION m_Alfinv DOUBLE PRECISION m_Lorin1 DOUBLE PRECISION m_Lorin2 DOUBLE PRECISION m_eta
Definition GPS.h:30
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 EvtDToa0enu::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 80 of file EvtDToa0enu.cc.

80 {
81 setProbMax(ProbMax);
82}
void setProbMax(double prbmx)

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