BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtVll Class Reference

#include <EvtVll.hh>

+ Inheritance diagram for EvtVll:

Public Member Functions

 EvtVll ()
 
virtual ~EvtVll ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void initProbMax ()
 
void init ()
 
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 28 of file EvtVll.hh.

Constructor & Destructor Documentation

◆ EvtVll()

EvtVll::EvtVll ( )
inline

Definition at line 32 of file EvtVll.hh.

32{}

Referenced by clone().

◆ ~EvtVll()

EvtVll::~EvtVll ( )
virtual

Definition at line 35 of file EvtVll.cc.

35{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtVll::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 44 of file EvtVll.cc.

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

◆ decay()

void EvtVll::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 69 of file EvtVll.cc.

69 {
70
72
73 EvtParticle *l1, *l2;
74 l1 = p->getDaug(0);
75 l2 = p->getDaug(1);
76
77 EvtVector4C l11, l12, l21, l22;
78 l11=EvtLeptonVCurrent(l1->spParent(0),l2->spParent(0));
79 l12=EvtLeptonVCurrent(l1->spParent(0),l2->spParent(1));
80 l21=EvtLeptonVCurrent(l1->spParent(1),l2->spParent(0));
81 l22=EvtLeptonVCurrent(l1->spParent(1),l2->spParent(1));
82
83 EvtVector4C eps0=p->eps(0);
84 EvtVector4C eps1=p->eps(1);
85 EvtVector4C eps2=p->eps(2);
86
87 double M2=p->mass();
88 M2*=M2;
89 double m2=l1->mass();
90 m2*=m2;
91
92 double norm=1.0/sqrt(2*M2+4*m2-4*m2*m2/M2);
93
94 vertex(0,0,0,norm*(eps0*l11));
95 vertex(0,0,1,norm*(eps0*l12));
96 vertex(0,1,0,norm*(eps0*l21));
97 vertex(0,1,1,norm*(eps0*l22));
98
99 vertex(1,0,0,norm*(eps1*l11));
100 vertex(1,0,1,norm*(eps1*l12));
101 vertex(1,1,0,norm*(eps1*l21));
102 vertex(1,1,1,norm*(eps1*l22));
103
104 vertex(2,0,0,norm*(eps2*l11));
105 vertex(2,0,1,norm*(eps2*l12));
106 vertex(2,1,0,norm*(eps2*l21));
107 vertex(2,1,1,norm*(eps2*l22));
108
109 return;
110
111}
EvtVector4C EvtLeptonVCurrent(const EvtDiracSpinor &d, const EvtDiracSpinor &dp)
void vertex(const EvtComplex &amp)
Definition: EvtDecayAmp.hh:37
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
virtual EvtDiracSpinor spParent(int) const
Definition: EvtParticle.cc:607
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:85
double mass() const
Definition: EvtParticle.cc:127
virtual EvtVector4C eps(int i) const
Definition: EvtParticle.cc:574
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)

◆ getName()

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

Implements EvtDecayBase.

Definition at line 37 of file EvtVll.cc.

37 {
38
39 model_name="VLL";
40
41}

◆ init()

void EvtVll::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 50 of file EvtVll.cc.

50 {
51
52 // check that there are 0 arguments
53 checkNArg(0);
54 checkNDaug(2);
55
57
60
61}
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 EvtVll::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 63 of file EvtVll.cc.

63 {
64
65 setProbMax(1.0);
66
67}
void setProbMax(double prbmx)

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