BOSS 7.0.9
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)
 
 EvtBtoXsgammaFixedMass ()
 
virtual ~EvtBtoXsgammaFixedMass ()
 
void init (int, double *)
 
double GetMass (int code)
 
- Public Member Functions inherited from EvtBtoXsgammaAbsModel
 EvtBtoXsgammaAbsModel ()
 
virtual ~EvtBtoXsgammaAbsModel ()
 
virtual void init (int, double *)
 
virtual double GetMass (int code)=0
 
 EvtBtoXsgammaAbsModel ()
 
virtual ~EvtBtoXsgammaAbsModel ()
 
virtual void init (int, double *)
 
virtual double GetMass (int code)=0
 

Detailed Description

Constructor & Destructor Documentation

◆ EvtBtoXsgammaFixedMass() [1/2]

EvtBtoXsgammaFixedMass::EvtBtoXsgammaFixedMass ( )
inline

◆ ~EvtBtoXsgammaFixedMass() [1/2]

EvtBtoXsgammaFixedMass::~EvtBtoXsgammaFixedMass ( )
virtual

◆ EvtBtoXsgammaFixedMass() [2/2]

EvtBtoXsgammaFixedMass::EvtBtoXsgammaFixedMass ( )
inline

◆ ~EvtBtoXsgammaFixedMass() [2/2]

virtual EvtBtoXsgammaFixedMass::~EvtBtoXsgammaFixedMass ( )
virtual

Member Function Documentation

◆ GetMass() [1/2]

double EvtBtoXsgammaFixedMass::GetMass ( int  code)
virtual

Implements EvtBtoXsgammaAbsModel.

Definition at line 50 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtBtoXsgammaFixedMass.cc.

50 {
51 return _mH;
52}

◆ GetMass() [2/2]

double EvtBtoXsgammaFixedMass::GetMass ( int  code)
virtual

Implements EvtBtoXsgammaAbsModel.

◆ init() [1/2]

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

Reimplemented from EvtBtoXsgammaAbsModel.

Definition at line 32 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/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)

◆ init() [2/2]

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

Reimplemented from EvtBtoXsgammaAbsModel.


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