BOSS 8.0.0
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 27 of file EvtRadCorr.hh.

Constructor & Destructor Documentation

◆ EvtRadCorr()

EvtRadCorr::EvtRadCorr ( )

Definition at line 35 of file EvtRadCorr.cc.

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

◆ ~EvtRadCorr()

EvtRadCorr::~EvtRadCorr ( )

Definition at line 41 of file EvtRadCorr.cc.

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

Member Function Documentation

◆ alwaysRadCorr()

bool EvtRadCorr::alwaysRadCorr ( )
static

Definition at line 61 of file EvtRadCorr.cc.

61{ return _alwaysRadCorr; }

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

◆ doRadCorr()

void EvtRadCorr::doRadCorr ( EvtParticle * p)
static

Definition at line 48 of file EvtRadCorr.cc.

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

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

◆ neverRadCorr()

bool EvtRadCorr::neverRadCorr ( )
static

Definition at line 62 of file EvtRadCorr.cc.

62{ return _neverRadCorr; }

◆ setAlwaysRadCorr()

void EvtRadCorr::setAlwaysRadCorr ( )
static

Definition at line 64 of file EvtRadCorr.cc.

64 {
65 _alwaysRadCorr = true;
66 _neverRadCorr = false;
67}

Referenced by EvtDecayTable::readDecayFile().

◆ setNeverRadCorr()

void EvtRadCorr::setNeverRadCorr ( )
static

Definition at line 68 of file EvtRadCorr.cc.

68 {
69 _alwaysRadCorr = false;
70 _neverRadCorr = true;
71}

Referenced by EvtDecayTable::readDecayFile().

◆ setNormalRadCorr()

void EvtRadCorr::setNormalRadCorr ( )
static

Definition at line 72 of file EvtRadCorr.cc.

72 {
73 _alwaysRadCorr = false;
74 _neverRadCorr = false;
75}

Referenced by EvtDecayTable::readDecayFile().

◆ setRadCorrEngine()

void EvtRadCorr::setRadCorrEngine ( EvtAbsRadCorr * isrEngine)
static

Definition at line 46 of file EvtRadCorr.cc.

46{ _isrEngine = isrEngine; }

Referenced by EvtGen::EvtGen().


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