#include <EvtBtoXsgammaFlatEnergy.hh>
Definition at line 27 of file EvtBtoXsgammaFlatEnergy.hh.
◆ EvtBtoXsgammaFlatEnergy()
| EvtBtoXsgammaFlatEnergy::EvtBtoXsgammaFlatEnergy |
( |
| ) |
|
|
inline |
◆ ~EvtBtoXsgammaFlatEnergy()
| EvtBtoXsgammaFlatEnergy::~EvtBtoXsgammaFlatEnergy |
( |
| ) |
|
|
virtual |
◆ GetMass()
| double EvtBtoXsgammaFlatEnergy::GetMass |
( |
int | code | ) |
|
|
virtual |
◆ init()
| void EvtBtoXsgammaFlatEnergy::init |
( |
int | nArg, |
|
|
double * | args ) |
|
virtual |
Reimplemented from EvtBtoXsgammaAbsModel.
Definition at line 32 of file EvtBtoXsgammaFlatEnergy.cc.
32 {
33
34 if ( ( nArg ) > 3 || ( nArg > 1 && nArg < 3 ) )
35 {
36
37 report(
ERROR,
"EvtGen" ) <<
"EvtBtoXsgamma generator model "
38 << "EvtBtoXsgammaFlatEnergy expected "
39 << "either 1(default config) or two arguments but found: "
40 << nArg << endl;
41 report(
ERROR,
"EvtGen" ) <<
"Will terminate execution!" << endl;
42 ::abort();
43 }
44 _mB0 = 5.2794;
46 double mK = 0.494;
47 if ( nArg == 1 )
48 {
49 _eMin = 1.7;
50
51
52 _eMax = ( pow( _mB0, 2 ) - pow(
mPi + mK, 2 ) ) / ( 2.0 * _mB0 );
53 }
54 else
55 {
56 _eMin = args[1];
57 _eMax = args[2];
58 }
59 if ( _eMax > ( pow( _mB0, 2 ) - pow(
mPi + mK, 2 ) ) / ( 2.0 * _mB0 ) )
60 {
61 report(
ERROR,
"EvtGen" ) <<
"Emax greater than Kinematic limit" << endl;
62 report(
ERROR,
"EvtGen" ) <<
"Reset to the kinematic limit" << endl;
63 report(
ERROR,
"EvtGen" ) <<
"(m_B**2-(m_pi+m_k)**2)/(2m_B)" << endl;
64 _eMax = ( pow( _mB0, 2 ) - pow(
mPi + mK, 2 ) ) / ( 2.0 * _mB0 );
65 }
66 _eRange = _eMax - _eMin;
67}
ostream & report(Severity severity, const char *facility)
The documentation for this class was generated from the following files: