CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSLN Class Reference

#include <EvtSLN.hh>

+ Inheritance diagram for EvtSLN:

Public Member Functions

 EvtSLN ()
 
virtual ~EvtSLN ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void init ()
 
void initProbMax ()
 
void decay (EvtParticle *p)
 
- 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 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 EvtDecayAmp
EvtAmp _amp2
 
- Protected Attributes inherited from EvtDecayBase
bool _daugsDecayedByParentModel
 

Detailed Description

Definition at line 30 of file EvtSLN.hh.

Constructor & Destructor Documentation

◆ EvtSLN()

EvtSLN::EvtSLN ( )
inline

Definition at line 34 of file EvtSLN.hh.

34{}

Referenced by clone().

◆ ~EvtSLN()

EvtSLN::~EvtSLN ( )
virtual

Definition at line 33 of file EvtSLN.cc.

33{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtSLN::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 41 of file EvtSLN.cc.

41 {
42
43 return new EvtSLN;
44
45}
EvtSLN()
Definition: EvtSLN.hh:34

◆ decay()

void EvtSLN::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 74 of file EvtSLN.cc.

74 {
75
76 static EvtId EM=EvtPDL::getId("e-");
77 static EvtId MUM=EvtPDL::getId("mu-");
78 static EvtId TAUM=EvtPDL::getId("tau-");
79
81
82 EvtParticle *l, *nul;
83 l= p->getDaug(0);
84 nul= p->getDaug(1);
85
86 EvtVector4R p4_p;
87 p4_p.set(p->mass(),0.0,0.0,0.0);
88
89 EvtVector4C l1, l2;
90
91 if (getDaug(0)==TAUM || getDaug(0)==MUM || getDaug(0)==EM) {
94 }
95 else{
98 }
99
100 vertex(0,p4_p*l1);
101 vertex(1,p4_p*l2);
102
103 return;
104
105}
EvtVector4C EvtLeptonVACurrent(const EvtDiracSpinor &d, const EvtDiracSpinor &dp)
void vertex(const EvtComplex &amp)
Definition: EvtDecayAmp.hh:37
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
EvtId getDaug(int i)
Definition: EvtDecayBase.hh:66
Definition: EvtId.hh:27
static EvtId getId(const std::string &name)
Definition: EvtPDL.cc:287
virtual EvtDiracSpinor spParentNeutrino() const
Definition: EvtParticle.cc:633
virtual EvtDiracSpinor spParent(int) const
Definition: EvtParticle.cc:607
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:85
double mass() const
Definition: EvtParticle.cc:127
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
void set(int i, double d)
Definition: EvtVector4R.hh:183

◆ getName()

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

Implements EvtDecayBase.

Definition at line 35 of file EvtSLN.cc.

35 {
36
37 model_name="SLN";
38
39}

◆ init()

void EvtSLN::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 48 of file EvtSLN.cc.

48 {
49
50 // check that there are 0 arguments
51 checkNArg(0);
52 checkNDaug(2);
53
55
58
59}
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 EvtSLN::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 62 of file EvtSLN.cc.

62 {
63
65 double m=EvtPDL::getMeanMass(getDaug(0));
66
67 double probMax=8.0*(M*M-m*m)*m*m;
68
69 setProbMax(probMax);
70
71}
void setProbMax(double prbmx)
EvtId getParentId()
Definition: EvtDecayBase.hh:60
static double getMeanMass(EvtId i)
Definition: EvtPDL.hh:45

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