EvtBtoXsgammaFixedMass Class Reference

#include <EvtBtoXsgammaFixedMass.hh>

Inheritance diagram for EvtBtoXsgammaFixedMass:

EvtBtoXsgammaAbsModel List of all members.

Public Member Functions

 EvtBtoXsgammaFixedMass ()
virtual ~EvtBtoXsgammaFixedMass ()
void init (int, double *)
double GetMass (int code)

Private Attributes

double _mH

Detailed Description

Definition at line 27 of file EvtBtoXsgammaFixedMass.hh.


Constructor & Destructor Documentation

EvtBtoXsgammaFixedMass::EvtBtoXsgammaFixedMass (  )  [inline]

Definition at line 31 of file EvtBtoXsgammaFixedMass.hh.

00031 {}

EvtBtoXsgammaFixedMass::~EvtBtoXsgammaFixedMass (  )  [virtual]

Definition at line 29 of file EvtBtoXsgammaFixedMass.cc.

00029                                                {
00030 }


Member Function Documentation

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 }


Member Data Documentation

double EvtBtoXsgammaFixedMass::_mH [private]

Definition at line 41 of file EvtBtoXsgammaFixedMass.hh.

Referenced by GetMass(), and init().


Generated on Tue Nov 29 23:18:55 2016 for BOSS_7.0.2 by  doxygen 1.4.7