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

#include <EvtS2GV.hh>

+ Inheritance diagram for EvtS2GV:

Public Member Functions

 EvtS2GV ()
 
virtual ~EvtS2GV ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void decay (EvtParticle *p)
 
void init ()
 
void initProbMax ()
 
- Public Member Functions inherited from EvtDecayAmp
void makeDecay (EvtParticle *p)
 
void setWeight (double weight)
 
void vertex (const EvtComplex &amp)
 
void vertex (int i1, const EvtComplex &amp)
 
void vertex (int i1, int i2, const EvtComplex &amp)
 
void vertex (int i1, int i2, int i3, const EvtComplex &amp)
 
void vertex (int *i1, const EvtComplex &amp)
 
virtual ~EvtDecayAmp ()
 
- 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 EvtDecayAmp
EvtAmp _amp2
 
- Protected Attributes inherited from EvtDecayBase
bool _daugsDecayedByParentModel
 

Detailed Description

Definition at line 28 of file EvtS2GV.hh.

Constructor & Destructor Documentation

◆ EvtS2GV()

EvtS2GV::EvtS2GV ( )
inline

Definition at line 32 of file EvtS2GV.hh.

32{}

Referenced by clone().

◆ ~EvtS2GV()

EvtS2GV::~EvtS2GV ( )
virtual

Definition at line 36 of file EvtS2GV.cc.

36{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtS2GV::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 45 of file EvtS2GV.cc.

45 {
46
47 return new EvtS2GV;
48
49}
EvtS2GV()
Definition EvtS2GV.hh:32

◆ decay()

void EvtS2GV::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 72 of file EvtS2GV.cc.

72 {
74
75 double phs=0.;
76 EvtComplex F11=exp(EvtComplex(0,phs));
77
78 vertex(0,0, F11);
79 vertex(0,2, 0);
80 vertex(0,1, 0);
81 vertex(1,0, 0);
82 vertex(1,2, 0);
83 vertex(1,1,-F11);
84 return ;
85
86}
EvtComplex exp(const EvtComplex &c)
void vertex(const EvtComplex &amp)
EvtId * getDaugs()
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)

◆ getName()

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

Implements EvtDecayBase.

Definition at line 38 of file EvtS2GV.cc.

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

◆ init()

void EvtS2GV::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 51 of file EvtS2GV.cc.

51 {
52static EvtId GAM=EvtPDL::getId("gamma");
53// check that there are 0 arguments
54 checkNArg(0);
55 checkNDaug(2);
59 if (!(getDaug(0)==GAM)) {
60 report(ERROR,"EvtGen") << "EvtS2GV generator radiative decays expected "<<endl;
61 ::abort();
62}
63 }
ostream & report(Severity severity, const char *facility)
Definition EvtReport.cc:36
@ ERROR
Definition EvtReport.hh:49
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)
EvtId getDaug(int i)
Definition EvtId.hh:27
static EvtId getId(const std::string &name)
Definition EvtPDL.cc:287

◆ initProbMax()

void EvtS2GV::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 66 of file EvtS2GV.cc.

66 {
67
68//Hard coded... should not be hard to calculate...
69setProbMax(2.0001);
70}
void setProbMax(double prbmx)

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