BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtBtoXsEtap Class Reference

#include <EvtBtoXsEtap.hh>

+ Inheritance diagram for EvtBtoXsEtap:

Public Member Functions

 EvtBtoXsEtap ()
 
virtual ~EvtBtoXsEtap ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void initProbMax ()
 
void init ()
 
void decay (EvtParticle *p)
 
- Public Member Functions inherited from EvtDecayIncoherent
void makeDecay (EvtParticle *p)
 
virtual ~EvtDecayIncoherent ()
 
void setDaughterSpinDensity (int daughter)
 
int isDaughterSpinDensitySet (int daughter)
 
- 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 ()
 

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 29 of file EvtBtoXsEtap.hh.

Constructor & Destructor Documentation

◆ EvtBtoXsEtap()

EvtBtoXsEtap::EvtBtoXsEtap ( )
inline

Definition at line 33 of file EvtBtoXsEtap.hh.

33{}

Referenced by clone().

◆ ~EvtBtoXsEtap()

EvtBtoXsEtap::~EvtBtoXsEtap ( )
virtual

Definition at line 36 of file EvtBtoXsEtap.cc.

36{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtBtoXsEtap::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 44 of file EvtBtoXsEtap.cc.

44 {
45
46 return new EvtBtoXsEtap;
47
48}

◆ decay()

void EvtBtoXsEtap::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 64 of file EvtBtoXsEtap.cc.

64 {
65
66 // useless
67 // if ( p->getNDaug() != 0 ) {
68 // //Will end up here because maxrate multiplies by 1.2
69 // report(DEBUG,"EvtGen") << "In EvtBtoXsEtap: X_s daughters should not be here!"<<endl;
70 // return;
71 //}
72
73 double m_b;
74 int i;
76 EvtParticle *pdaug[MAX_DAUG];
77
78 for(i=0;i<getNDaug();i++){
79 pdaug[i]=p->getDaug(i);
80 }
81
82 static EvtVector4R p4[MAX_DAUG];
83 static double mass[MAX_DAUG];
84
85 m_b = p->mass();
86
87 // Prepare for phase space routine.
88
90
91 double xbox, ybox, min, max,hichfit;
92 min=0.493;
93 max=4.3;
94 const double TwoPi = EvtConst::twoPi;
95 int Xscode = EvtPDL::getStdHep(getDaug(0));
96
97 // A five parameters fit, the shape is taken from Atwood & Soni
98
99 // double par[18];
100 double par[6];
101 if ((Xscode == 30343) || (Xscode == -30343) ||
102 (Xscode == 30353) || (Xscode == -30353)) { // Xsu or Xsd
103 min=0.6373; // Just above K pi threshold for Xsd/u
104 //min=0.6333; // K pi threshold for neutral Xsd
105 // par[0]=-2057.2380371094;
106 par[0]=2.36816;
107 // par[1]=2502.2556152344;
108 par[1]=0.62325725;
109 // par[2]=1151.5632324219;
110 par[2]=2.2;
111 // par[3]=0.82431584596634;
112 par[3]=-0.2109375;
113 // par[4]=-4110.5234375000;
114 par[4]=2.7;
115 // par[5]=8445.6757812500;
116 par[5]=0.54;
117 // par[6]=-3034.1894531250;
118 // par[7]=1.1557708978653;
119 // par[8]=1765.9311523438;
120 // par[9]=1.3730158805847;
121 // par[10]=0.51371538639069;
122 // par[11]=2.0056934356689;
123 // par[12]=37144.097656250;
124 // par[13]=-50296.781250000;
125 // par[14]=27319.095703125;
126 // par[15]=-7408.0678710938;
127 // par[16]=1000.8093261719;
128 // par[17]=-53.834449768066;
129 } else {
130 report(DEBUG,"EvtGen") << "In EvtBtoXsEtap: Particle with id " << Xscode << " is not a Xsd/u particle"<<endl;
131 return;
132 }
133
134 double boxheight=par[5];
135 double boxwidth=max-min;
136
137 mass[0]=0.0;
138 while ((mass[0] > max) || (mass[0] < min)){
139 xbox = EvtRandom::Flat(boxwidth)+min;
140 ybox=EvtRandom::Flat(boxheight);
141 if (xbox<par[2]) {
142
143 hichfit=(1/sqrt(TwoPi*par[1]))*exp(-0.5*pow((xbox-par[0])/par[1],2));
144 // alifit=par[0]+par[1]*xbox+par[2]*pow(xbox,2);
145 // } else if (xbox<par[7]) {
146 // alifit=par[4]+par[5]*xbox+par[6]*pow(xbox,2);
147 // } else if (xbox<par[11]) {
148 // alifit=par[8]*exp(-0.5*pow((xbox-par[9])/par[10],2));
149 } else {
150 hichfit=par[3]*pow((xbox-par[4]),2)+par[5];
151 // alifit=par[12]+par[13]*xbox+par[14]*pow(xbox,2)+par[15]*pow(xbox,3)+par[16]*pow(xbox,4)+par[17]*pow(xbox,5);
152 }
153 if (ybox>hichfit) {
154 mass[0]=0.0;
155 } else {
156 mass[0]=xbox;
157 }
158 }
159
160 // debug stuff: report(INFO,"EvtGen") << "Xscode " << Xscode << " daughter 1 mass " << mass[0] << " daughter 2 mass " << mass[1] << endl;
161
163
164 for(i=0;i<getNDaug();i++){
165 pdaug[i]->init( getDaugs()[i], p4[i] );
166 }
167
168 return ;
169}
double mass
EvtComplex exp(const EvtComplex &c)
Definition: EvtComplex.hh:252
const int MAX_DAUG
Definition: EvtParticle.hh:38
ostream & report(Severity severity, const char *facility)
Definition: EvtReport.cc:36
@ DEBUG
Definition: EvtReport.hh:53
*********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_b
Definition: GPS.h:30
static const double twoPi
Definition: EvtConst.hh:29
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
EvtId getDaug(int i)
Definition: EvtDecayBase.hh:66
static double PhaseSpace(int ndaug, double mass[30], EvtVector4R p4[30], double mp)
Definition: EvtGenKine.cc:50
static int getStdHep(EvtId id)
Definition: EvtPDL.hh:56
static double getMass(EvtId i)
Definition: EvtPDL.hh:46
void makeDaughters(int ndaug, EvtId *id)
virtual void init(EvtId part_n, const EvtVector4R &p4)=0
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:85
double mass() const
Definition: EvtParticle.cc:127
static double Flat()
Definition: EvtRandom.cc:74

◆ getName()

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

Implements EvtDecayBase.

Definition at line 38 of file EvtBtoXsEtap.cc.

38 {
39
40 model_name="BTOXSETAP";
41
42}

◆ init()

void EvtBtoXsEtap::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 51 of file EvtBtoXsEtap.cc.

51 {
52
53 // check that there are no arguments
54
55 checkNArg(0);
56}
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)

◆ initProbMax()

void EvtBtoXsEtap::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 58 of file EvtBtoXsEtap.cc.

58 {
59
60 noProbMax();
61
62}
void noProbMax()

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