BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtRexc Class Reference

#include <EvtRexc.hh>

+ Inheritance diagram for EvtRexc:

Public Member Functions

 EvtRexc ()
 
virtual ~EvtRexc ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void initProbMax ()
 
void init ()
 
void decay (EvtParticle *p)
 
double baryonAng (double mx)
 
bool angularSampling (EvtParticle *par)
 
- 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 19 of file EvtRexc.hh.

Constructor & Destructor Documentation

◆ EvtRexc()

EvtRexc::EvtRexc ( )
inline

Definition at line 23 of file EvtRexc.hh.

23{}

Referenced by clone().

◆ ~EvtRexc()

EvtRexc::~EvtRexc ( )
virtual

Definition at line 21 of file EvtRexc.cc.

21{}

Member Function Documentation

◆ angularSampling()

bool EvtRexc::angularSampling ( EvtParticle par)

Definition at line 80 of file EvtRexc.cc.

80 {
81 bool tagp,tagk;
82 tagk=0;
83 tagp=0;
84 int nds = par->getNDaug();
85 for(int i=0;i<par->getNDaug();i++){
86 EvtId di=par->getDaug(i)->getId();
87 EvtVector4R p4i = par->getDaug(i)->getP4Lab();
88 int pdgcode =EvtPDL::getStdHep( di );
89 double alpha=1;
90 double angmax = 1+alpha;
91 double costheta = cos(p4i.theta());
92 double ang=1+alpha*costheta*costheta;
93 double xratio = ang/angmax;
94 double xi=EvtRandom::Flat(0.,1);
95 //std::cout<<"pdgcode "<<pdgcode<<std::endl;
96 //std::cout<<ang<<" "<<angmax<<" "<<xi<<" "<<xratio<<std::endl;
97 if(xi>xratio) return false;
98 }//loop over duaghters
99 return true;
100}
const double alpha
double cos(const BesAngle a)
Definition: EvtId.hh:27
static int getStdHep(EvtId id)
Definition: EvtPDL.hh:56
EvtVector4R getP4Lab()
Definition: EvtParticle.cc:685
EvtId getId() const
Definition: EvtParticle.cc:113
int getNDaug() const
Definition: EvtParticle.cc:125
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:85
static double Flat()
Definition: EvtRandom.cc:73
double theta()
Definition: EvtVector4R.cc:249

Referenced by decay().

◆ baryonAng()

double EvtRexc::baryonAng ( double  mx)

Definition at line 102 of file EvtRexc.cc.

102 {
103 double mp=0.938;
104 double u = 0.938/mx;
105 u = u*u;
106 double u2 = (1+u)*(1+u);
107 double uu = u*(1+6*u);
108 double alpha = (u2-uu)/(u2+uu);
109 return alpha;
110}
const double mp
Definition: incllambda.cxx:45

◆ clone()

EvtDecayBase * EvtRexc::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 29 of file EvtRexc.cc.

29 {
30
31 return new EvtRexc;
32
33}
EvtRexc()
Definition: EvtRexc.hh:23

◆ decay()

void EvtRexc::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 49 of file EvtRexc.cc.

49 {
50 double mhds = p->mass();
51 int mymode = EvtConExc::conexcmode;
52 myconexc->init_mode(mymode);
53 //std::cout<<"EvtRexc:: A selected mode is "<<mymode<<" with Mhds= "<<mhds<<std::endl; //debugging
54 int _ndaugs = myconexc->getNdaugs();
55 EvtId *daugs=myconexc->getDaugId();
56 //debugging
57 /*
58 std::cout<<"Ndaugs= "<<_ndaugs<<std::endl;
59 for(int i=0;i<_ndaugs;i++){
60 std::cout<<i<<" "<<EvtPDL::getStdHep(daugs[i])<<std::endl;
61 }
62 */
63 Loop:
64 double totmass=0;
65 p->makeDaughters(_ndaugs,daugs);
66 for(int i=0;i< _ndaugs;i++){
67 EvtParticle* di=p->getDaug(i);
68 double xmi=EvtPDL::getMass(di->getId());
69 di->setMass(xmi);
70 totmass += xmi;
71 }
72 if(totmass > p->mass()) goto Loop;
73
74 double weight = p->initializePhaseSpace( _ndaugs , daugs);
75 // std::cout<<"weight= "<<weight<<std::endl;
76 if( (2.5< mhds && mhds<3.092 || mhds>3.1012) && !angularSampling(p)) goto Loop;
77 return ;
78}
*********Class see also m_nmax DOUBLE PRECISION m_MasPhot DOUBLE PRECISION m_phsu DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_r2 DOUBLE PRECISION m_WtMass INTEGER m_nmax INTEGER m_Nevgen INTEGER m_IsFSR INTEGER m_MarTot *COMMON c_KarFin $ !Output file $ !Event serial number $ !alpha QED at Thomson limit $ !minimum energy at CMS for remooval $ !infrared dimensionless $ !dummy photon IR regulator $ !crude photon multiplicity enhancement factor *EVENT $ !MC crude volume of PhhSpace *Sfactors $ !YFS formfactor IR part only $ !YFS formfactor non IR finite part $ !mass weight
Definition: KarFin.h:34
int getNdaugs()
Definition: EvtConExc.hh:156
static int conexcmode
Definition: EvtConExc.hh:159
void init_mode(int mode)
Definition: EvtConExc.cc:624
EvtId * getDaugId()
Definition: EvtConExc.hh:157
static double getMass(EvtId i)
Definition: EvtPDL.hh:46
void setMass(double m)
Definition: EvtParticle.hh:372
void makeDaughters(int ndaug, EvtId *id)
double mass() const
Definition: EvtParticle.cc:127
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
bool angularSampling(EvtParticle *par)
Definition: EvtRexc.cc:80

◆ getName()

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

Implements EvtDecayBase.

Definition at line 23 of file EvtRexc.cc.

23 {
24
25 model_name="REXC"; //R-scan exclusive decay model
26
27}

◆ init()

void EvtRexc::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 36 of file EvtRexc.cc.

36 {
37
38 // check that there are 0 arguments
39 checkNArg(0);
40 myconexc = new EvtConExc();
41}
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)

◆ initProbMax()

void EvtRexc::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 43 of file EvtRexc.cc.

43 {
44
45 noProbMax();
46
47}
void noProbMax()

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