BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtHQET2 Class Reference

#include <EvtHQET2.hh>

Inheritance diagram for EvtHQET2:

Public Member Functions

 EvtHQET2 ()
virtual ~EvtHQET2 ()
void getName (std::string &name)
EvtDecayBaseclone ()
void decay (EvtParticle *p)
void initProbMax ()
void init ()
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 23 of file EvtHQET2.hh.

Constructor & Destructor Documentation

◆ EvtHQET2()

EvtHQET2::EvtHQET2 ( )

Definition at line 39 of file EvtHQET2.cc.

39: hqetffmodel( 0 ), calcamp( 0 ) {}

Referenced by clone().

◆ ~EvtHQET2()

EvtHQET2::~EvtHQET2 ( )
virtual

Definition at line 41 of file EvtHQET2.cc.

41 {
42 delete hqetffmodel;
43 hqetffmodel = 0;
44 delete calcamp;
45 calcamp = 0;
46}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtHQET2::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 50 of file EvtHQET2.cc.

50{ return new EvtHQET2; }

◆ decay()

void EvtHQET2::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 52 of file EvtHQET2.cc.

52 {
53
55 calcamp->CalcAmp( p, _amp2, hqetffmodel );
56}
EvtId * getDaugs()
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)

◆ getName()

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

Implements EvtDecayBase.

Definition at line 48 of file EvtHQET2.cc.

48{ model_name = "HQET2"; }

◆ init()

void EvtHQET2::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 72 of file EvtHQET2.cc.

72 {
73
74 checkNDaug( 3 );
75
76 // We expect the parent to be a scalar
77 // and the daughters to be X lepton neutrino
79
82
84 if ( d1type == EvtSpinType::SCALAR )
85 {
86 if ( getNArg() == 2 )
87 {
88 hqetffmodel = new EvtHQET2FF( getArg( 0 ), getArg( 1 ) );
89 calcamp = new EvtSemiLeptonicScalarAmp;
90 }
91 else
92 {
93 report( ERROR, "EvtGen" )
94 << "HQET2 model for scalar meson daughters needs 2 arguments. Sorry." << endl;
95 ::abort();
96 }
97 }
98 else if ( d1type == EvtSpinType::VECTOR )
99 {
100 if ( getNArg() == 4 )
101 {
102 hqetffmodel = new EvtHQET2FF( getArg( 0 ), getArg( 1 ), getArg( 2 ), getArg( 3 ) );
103 calcamp = new EvtSemiLeptonicVectorAmp;
104 }
105 else
106 {
107 report( ERROR, "EvtGen" )
108 << "HQET2 model for vector meson daughtersneeds 4 arguments. Sorry." << endl;
109 ::abort();
110 }
111 }
112 else
113 {
114 report( ERROR, "EvtGen" )
115 << "HQET2 model handles only scalar and vector meson daughters. Sorry." << endl;
116 ::abort();
117 }
118}
ostream & report(Severity severity, const char *facility)
Definition EvtReport.cc:34
@ ERROR
Definition EvtReport.hh:49
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkSpinParent(EvtSpinType::spintype sp)
double getArg(int j)
void checkNDaug(int d1, int d2=-1)
EvtId getDaug(int i)
static EvtSpinType::spintype getSpinType(EvtId i)
Definition EvtPDL.hh:66

◆ initProbMax()

void EvtHQET2::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 58 of file EvtHQET2.cc.

58 {
59
60 EvtId parnum, mesnum, lnum, nunum;
61
62 parnum = getParentId();
63 mesnum = getDaug( 0 );
64 lnum = getDaug( 1 );
65 nunum = getDaug( 2 );
66
67 double mymaxprob = calcamp->CalcMaxProb( parnum, mesnum, lnum, nunum, hqetffmodel );
68
69 setProbMax( mymaxprob );
70}
void setProbMax(double prbmx)
EvtId getParentId()

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