BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPyGaGa Class Reference

#include <EvtPyGaGa.hh>

+ Inheritance diagram for EvtPyGaGa:

Public Member Functions

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

Detailed Description

Constructor & Destructor Documentation

◆ EvtPyGaGa() [1/2]

EvtPyGaGa::EvtPyGaGa ( )
inline

Definition at line 32 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtPyGaGa.hh.

32{}

Referenced by clone().

◆ ~EvtPyGaGa() [1/2]

EvtPyGaGa::~EvtPyGaGa ( )
virtual

Definition at line 44 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtPyGaGa.cc.

45{
46 int i=1;
47 pystat_(i);
48}
void pystat_(int &)

◆ EvtPyGaGa() [2/2]

EvtPyGaGa::EvtPyGaGa ( )
inline

◆ ~EvtPyGaGa() [2/2]

virtual EvtPyGaGa::~EvtPyGaGa ( )
virtual

Member Function Documentation

◆ clone() [1/2]

EvtDecayBase * EvtPyGaGa::clone ( )
virtual

◆ clone() [2/2]

EvtDecayBase * EvtPyGaGa::clone ( )
virtual

Implements EvtDecayBase.

◆ decay() [1/2]

void EvtPyGaGa::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 73 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtPyGaGa.cc.

74{
76 EvtVector4R p4[100];
77
78 double energy=p->mass();
79
80 int i,more;
81 int ndaugjs;
82 int kf[100];
83 EvtId id[100];
84 int type[MAX_DAUG];
85
86 double px[100],py[100],pz[100],e[100];
87
88 if ( p->getNDaug() != 0 ) { return;}
89 do{
90 EvtPythia::pythiacont(&energy,&ndaugjs,kf,px,py,pz,e);
91
92 for(i=0;i<ndaugjs;i++)
93 {
94
95 id[i]=EvtPDL::evtIdFromStdHep(kf[i]);
96
97 type[i]=EvtPDL::getSpinType(id[i]);
98
99 // have to protect against negative mass^2 for massless particles
100 // i.e. neutrinos and photons.
101 // this is uggly but I need to fix it right now....
102
103 if (px[i]*px[i]+py[i]*py[i]+pz[i]*pz[i]>=e[i]*e[i])
104 e[i]=sqrt(px[i]*px[i]+py[i]*py[i]+pz[i]*pz[i])+0.0000000000001;
105
106 p4[i].set(e[i],px[i],py[i],pz[i]);
107
108 }
109
110 int channel=EvtDecayTable::inChannelList(p->getId(),ndaugjs,id);
111
112 more=((channel!=-1)&&(channel!=p->getChannel()));
113
114 }while(more);
115
116 p->makeDaughters(ndaugjs,id);
117
118 for(i=0;i<ndaugjs;i++)
119 p->getDaug(i)->init( id[i], p4[i] );
120
121 return ;
122}
************Class m_ypar INTEGER m_KeyWgt INTEGER m_KeyIHVP INTEGER m_KeyGPS INTEGER m_IsBeamPolarized INTEGER m_EvtGenInterface DOUBLE PRECISION m_Emin DOUBLE PRECISION m_sphot DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_q2 DOUBLE PRECISION m_PolBeam2 DOUBLE PRECISION m_xErrPb *COMMON c_KK2f $ !CMS energy average $ !Spin Polarization vector first beam $ !Spin Polarization vector second beam $ !Beam energy spread[GeV] $ !minimum hadronization energy[GeV] $ !input READ never touch them !$ !debug facility $ !maximum weight $ !inverse alfaQED $ !minimum real photon energy
Definition: KK2f.h:50
static int inChannelList(EvtId parent, int ndaug, EvtId *daugs)
static EvtSpinType::spintype getSpinType(EvtId i)
virtual void init(EvtId part_n, const EvtVector4R &p4)=0
static void pythiacont(double *, int *, int *, double *, double *, double *, double *)

◆ decay() [2/2]

void EvtPyGaGa::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

◆ getName() [1/2]

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

Implements EvtDecayBase.

Definition at line 50 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtPyGaGa.cc.

51{
52 model_name="PYGAGA";
53}

◆ getName() [2/2]

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

Implements EvtDecayBase.

◆ init() [1/2]

void EvtPyGaGa::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 60 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtPyGaGa.cc.

61{
62 // check that there are 1 argument
63 checkNArg(0);
64 for( int i=0; i<18; i++)
65 decaych_.dc[i]=0;
66}
struct @22 decaych_
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)

◆ init() [2/2]

void EvtPyGaGa::init ( )
virtual

Reimplemented from EvtDecayBase.

◆ initProbMax() [1/2]

void EvtPyGaGa::initProbMax ( )
virtual

◆ initProbMax() [2/2]

void EvtPyGaGa::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.


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