BOSS 7.1.2
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 31 of file EvtBtoXsgammaFixedMass.hh.

31{}

◆ ~EvtBtoXsgammaFixedMass()

EvtBtoXsgammaFixedMass::~EvtBtoXsgammaFixedMass ( )
virtual

Definition at line 29 of file EvtBtoXsgammaFixedMass.cc.

29 {
30}

Member Function Documentation

◆ GetMass()

double EvtBtoXsgammaFixedMass::GetMass ( int code)
virtual

Implements EvtBtoXsgammaAbsModel.

Definition at line 50 of file EvtBtoXsgammaFixedMass.cc.

50 {
51 return _mH;
52}

◆ init()

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

Reimplemented from EvtBtoXsgammaAbsModel.

Definition at line 32 of file EvtBtoXsgammaFixedMass.cc.

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

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