BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtRadCorr Class Reference

#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 ()
 

Detailed Description

Definition at line 28 of file EvtRadCorr.hh.

Constructor & Destructor Documentation

◆ EvtRadCorr()

EvtRadCorr::EvtRadCorr ( )

Definition at line 36 of file EvtRadCorr.cc.

36 {
37 _isrEngine=0;
38 _alwaysRadCorr=false;
39 _neverRadCorr=false;
40}

◆ ~EvtRadCorr()

EvtRadCorr::~EvtRadCorr ( )

Definition at line 42 of file EvtRadCorr.cc.

42 {
43 if ( _isrEngine ) delete _isrEngine;
44 _isrEngine=0;
45}

Member Function Documentation

◆ alwaysRadCorr()

bool EvtRadCorr::alwaysRadCorr ( )
static

Definition at line 65 of file EvtRadCorr.cc.

65{return _alwaysRadCorr;}

Referenced by EvtDecayAmp::makeDecay(), EvtDecayIncoherent::makeDecay(), and EvtDecayProb::makeDecay().

◆ doRadCorr()

void EvtRadCorr::doRadCorr ( EvtParticle p)
static

Definition at line 52 of file EvtRadCorr.cc.

52 {
53
54 if (_isrEngine==0){
55 report(ERROR,"EvtGen") <<"No RadCorr model available in "
56 <<"EvtRadCorr::doRadCorr()."<<endl;
57 ::abort();
58 }
59
60 if ( !_neverRadCorr) _isrEngine->doRadCorr(p);
61 return;
62}
ostream & report(Severity severity, const char *facility)
Definition: EvtReport.cc:36
@ ERROR
Definition: EvtReport.hh:49
virtual void doRadCorr(EvtParticle *p)=0

Referenced by EvtDecayAmp::makeDecay(), EvtDecayIncoherent::makeDecay(), and EvtDecayProb::makeDecay().

◆ neverRadCorr()

bool EvtRadCorr::neverRadCorr ( )
static

Definition at line 66 of file EvtRadCorr.cc.

66{return _neverRadCorr;}

◆ setAlwaysRadCorr()

void EvtRadCorr::setAlwaysRadCorr ( )
static

Definition at line 68 of file EvtRadCorr.cc.

68{ _alwaysRadCorr=true; _neverRadCorr=false;}

Referenced by EvtDecayTable::readDecayFile().

◆ setNeverRadCorr()

void EvtRadCorr::setNeverRadCorr ( )
static

Definition at line 69 of file EvtRadCorr.cc.

69{ _alwaysRadCorr=false; _neverRadCorr=true;}

Referenced by EvtDecayTable::readDecayFile().

◆ setNormalRadCorr()

void EvtRadCorr::setNormalRadCorr ( )
static

Definition at line 70 of file EvtRadCorr.cc.

70{_alwaysRadCorr=false; _neverRadCorr=false;}

Referenced by EvtDecayTable::readDecayFile().

◆ setRadCorrEngine()

void EvtRadCorr::setRadCorrEngine ( EvtAbsRadCorr isrEngine)
static

Definition at line 47 of file EvtRadCorr.cc.

47 {
48 _isrEngine=isrEngine;
49}

Referenced by EvtGen::EvtGen().


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