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

#include <EvtBtoXsgammaFixedMass.hh>

Inheritance diagram for EvtBtoXsgammaFixedMass:

Public Member Functions

 EvtBtoXsgammaFixedMass ()
virtual ~EvtBtoXsgammaFixedMass ()
void init (int, double *)
double GetMass (int code)
Public Member Functions inherited from EvtBtoXsgammaAbsModel
 EvtBtoXsgammaAbsModel ()
virtual ~EvtBtoXsgammaAbsModel ()

Detailed Description

Definition at line 27 of file EvtBtoXsgammaFixedMass.hh.

Constructor & Destructor Documentation

◆ EvtBtoXsgammaFixedMass()

EvtBtoXsgammaFixedMass::EvtBtoXsgammaFixedMass ( )
inline

Definition at line 30 of file EvtBtoXsgammaFixedMass.hh.

30{}

◆ ~EvtBtoXsgammaFixedMass()

EvtBtoXsgammaFixedMass::~EvtBtoXsgammaFixedMass ( )
virtual

Definition at line 29 of file EvtBtoXsgammaFixedMass.cc.

29{}

Member Function Documentation

◆ GetMass()

double EvtBtoXsgammaFixedMass::GetMass ( int code)
virtual

Implements EvtBtoXsgammaAbsModel.

Definition at line 48 of file EvtBtoXsgammaFixedMass.cc.

48{ return _mH; }

◆ init()

void EvtBtoXsgammaFixedMass::init ( int nArg,
double * args )
virtual

Reimplemented from EvtBtoXsgammaAbsModel.

Definition at line 31 of file EvtBtoXsgammaFixedMass.cc.

31 {
32
33 if ( ( nArg ) > 2 || ( nArg > 1 && nArg < 2 ) )
34 {
35
36 report( ERROR, "EvtGen" ) << "EvtBtoXsgamma generator model "
37 << "EvtBtoXsgammaFixedMass expected "
38 << "either 1(default config) or two arguments but found: "
39 << nArg << endl;
40 report( ERROR, "EvtGen" ) << "Will terminate execution!" << endl;
41 ::abort();
42 }
43
44 if ( nArg == 1 ) { _mH = 2.0; }
45 else { _mH = args[1]; }
46}
ostream & report(Severity severity, const char *facility)
Definition EvtReport.cc:34
@ ERROR
Definition EvtReport.hh:49

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