#include <EvtBtoXsgammaFixedMass.hh>
Inheritance diagram for EvtBtoXsgammaFixedMass:
Public Member Functions | |
EvtBtoXsgammaFixedMass () | |
virtual | ~EvtBtoXsgammaFixedMass () |
void | init (int, double *) |
double | GetMass (int code) |
Private Attributes | |
double | _mH |
Definition at line 27 of file EvtBtoXsgammaFixedMass.hh.
EvtBtoXsgammaFixedMass::EvtBtoXsgammaFixedMass | ( | ) | [inline] |
EvtBtoXsgammaFixedMass::~EvtBtoXsgammaFixedMass | ( | ) | [virtual] |
double EvtBtoXsgammaFixedMass::GetMass | ( | int | code | ) | [virtual] |
Implements EvtBtoXsgammaAbsModel.
Definition at line 50 of file EvtBtoXsgammaFixedMass.cc.
References _mH.
00050 { 00051 return _mH; 00052 }
void EvtBtoXsgammaFixedMass::init | ( | int | , | |
double * | ||||
) | [virtual] |
Reimplemented from EvtBtoXsgammaAbsModel.
Definition at line 32 of file EvtBtoXsgammaFixedMass.cc.
References _mH, calibUtil::ERROR, and report().
00032 { 00033 00034 if ((nArg) > 2 || (nArg > 1 && nArg <2)){ 00035 00036 report(ERROR,"EvtGen") << "EvtBtoXsgamma generator model " 00037 << "EvtBtoXsgammaFixedMass expected " 00038 << "either 1(default config) or two arguments but found: "<<nArg<<endl; 00039 report(ERROR,"EvtGen") << "Will terminate execution!"<<endl; 00040 ::abort(); 00041 } 00042 00043 if(nArg == 1){ 00044 _mH = 2.0; 00045 }else{ 00046 _mH=args[1]; 00047 } 00048 }
double EvtBtoXsgammaFixedMass::_mH [private] |