#include <EvtRadCorr.hh>
Public Member Functions | |
EvtRadCorr () | |
~EvtRadCorr () | |
Static Public Member Functions | |
static void | doRadCorr (EvtParticle *p) |
static void | setRadCorrEngine (EvtAbsRadCorr *isrEngine) |
static bool | alwaysRadCorr () |
static bool | neverRadCorr () |
static void | setAlwaysRadCorr () |
static void | setNeverRadCorr () |
static void | setNormalRadCorr () |
Static Private Attributes | |
static EvtAbsRadCorr * | _isrEngine = 0 |
static bool | _alwaysRadCorr = false |
static bool | _neverRadCorr = false |
Definition at line 28 of file EvtRadCorr.hh.
EvtRadCorr::EvtRadCorr | ( | ) |
Definition at line 36 of file EvtRadCorr.cc.
References _alwaysRadCorr, _isrEngine, and _neverRadCorr.
00036 { 00037 _isrEngine=0; 00038 _alwaysRadCorr=false; 00039 _neverRadCorr=false; 00040 }
EvtRadCorr::~EvtRadCorr | ( | ) |
Definition at line 42 of file EvtRadCorr.cc.
References _isrEngine.
00042 { 00043 if ( _isrEngine ) delete _isrEngine; 00044 _isrEngine=0; 00045 }
bool EvtRadCorr::alwaysRadCorr | ( | ) | [static] |
Definition at line 65 of file EvtRadCorr.cc.
References _alwaysRadCorr.
Referenced by EvtDecayProb::makeDecay(), EvtDecayIncoherent::makeDecay(), and EvtDecayAmp::makeDecay().
00065 {return _alwaysRadCorr;}
void EvtRadCorr::doRadCorr | ( | EvtParticle * | p | ) | [static] |
Definition at line 52 of file EvtRadCorr.cc.
References _isrEngine, _neverRadCorr, EvtAbsRadCorr::doRadCorr(), calibUtil::ERROR, and report().
Referenced by EvtDecayProb::makeDecay(), EvtDecayIncoherent::makeDecay(), and EvtDecayAmp::makeDecay().
00052 { 00053 00054 if (_isrEngine==0){ 00055 report(ERROR,"EvtGen") <<"No RadCorr model available in " 00056 <<"EvtRadCorr::doRadCorr()."<<endl; 00057 ::abort(); 00058 } 00059 00060 if ( !_neverRadCorr) _isrEngine->doRadCorr(p); 00061 return; 00062 }
bool EvtRadCorr::neverRadCorr | ( | ) | [static] |
void EvtRadCorr::setAlwaysRadCorr | ( | ) | [static] |
Definition at line 68 of file EvtRadCorr.cc.
References _alwaysRadCorr, and _neverRadCorr.
Referenced by EvtDecayTable::readDecayFile().
00068 { _alwaysRadCorr=true; _neverRadCorr=false;}
void EvtRadCorr::setNeverRadCorr | ( | ) | [static] |
Definition at line 69 of file EvtRadCorr.cc.
References _alwaysRadCorr, and _neverRadCorr.
Referenced by EvtDecayTable::readDecayFile().
00069 { _alwaysRadCorr=false; _neverRadCorr=true;}
void EvtRadCorr::setNormalRadCorr | ( | ) | [static] |
Definition at line 70 of file EvtRadCorr.cc.
References _alwaysRadCorr, and _neverRadCorr.
Referenced by EvtDecayTable::readDecayFile().
00070 {_alwaysRadCorr=false; _neverRadCorr=false;}
void EvtRadCorr::setRadCorrEngine | ( | EvtAbsRadCorr * | isrEngine | ) | [static] |
Definition at line 47 of file EvtRadCorr.cc.
References _isrEngine.
Referenced by EvtGen::EvtGen().
00047 { 00048 _isrEngine=isrEngine; 00049 }
bool EvtRadCorr::_alwaysRadCorr = false [static, private] |
Definition at line 49 of file EvtRadCorr.hh.
Referenced by alwaysRadCorr(), EvtRadCorr(), setAlwaysRadCorr(), setNeverRadCorr(), and setNormalRadCorr().
EvtAbsRadCorr * EvtRadCorr::_isrEngine = 0 [static, private] |
Definition at line 48 of file EvtRadCorr.hh.
Referenced by doRadCorr(), EvtRadCorr(), setRadCorrEngine(), and ~EvtRadCorr().
bool EvtRadCorr::_neverRadCorr = false [static, private] |
Definition at line 50 of file EvtRadCorr.hh.
Referenced by doRadCorr(), EvtRadCorr(), neverRadCorr(), setAlwaysRadCorr(), setNeverRadCorr(), and setNormalRadCorr().