BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
ReadBeamInfFromDb Class Reference

#include <ReadBeamInfFromDb.h>

Public Member Functions

 ReadBeamInfFromDb ()
 
 ~ReadBeamInfFromDb ()
 
bool isRunValid (int run)
 
double getbeamE (int run)
 
 ReadBeamInfFromDb ()
 
 ~ReadBeamInfFromDb ()
 
bool isRunValid (int run)
 
double getbeamE (int run)
 
 ReadBeamInfFromDb ()
 
 ~ReadBeamInfFromDb ()
 
bool isRunValid (int run)
 
double getbeamE (int run, double defaultbeamE)
 
CLHEP::Hep3Vector getbeta ()
 
bool setcalib (bool calib)
 

Detailed Description

Constructor & Destructor Documentation

◆ ReadBeamInfFromDb() [1/3]

ReadBeamInfFromDb::ReadBeamInfFromDb ( )

Definition at line 4 of file DQA/DQADtagAlg/DQADtagAlg-00-00-12/src/util/ReadBeamInfFromDb.cxx.

4 :
5 m_run(-1),
6 m_isRunValid(false),
7 m_beamE(0){
8 }

◆ ~ReadBeamInfFromDb() [1/3]

ReadBeamInfFromDb::~ReadBeamInfFromDb ( )
inline

◆ ReadBeamInfFromDb() [2/3]

ReadBeamInfFromDb::ReadBeamInfFromDb ( )

◆ ~ReadBeamInfFromDb() [2/3]

ReadBeamInfFromDb::~ReadBeamInfFromDb ( )
inline

◆ ReadBeamInfFromDb() [3/3]

ReadBeamInfFromDb::ReadBeamInfFromDb ( )

◆ ~ReadBeamInfFromDb() [3/3]

ReadBeamInfFromDb::~ReadBeamInfFromDb ( )
inline

Member Function Documentation

◆ getbeamE() [1/3]

double ReadBeamInfFromDb::getbeamE ( int  run)

Definition at line 83 of file DQA/DQADtagAlg/DQADtagAlg-00-00-12/src/util/ReadBeamInfFromDb.cxx.

83 {
84 if (!isRunValid(run)){
85 fprintf(stderr, "ERROR in ReadBeamInfFromDb: runNo is invalid!\n");
86 }
87 return m_beamE;
88}

Referenced by DQADtag::execute(), EmcSelBhaEvent::execute(), ChargedDReconstruction::execute(), DsReconstruction::execute(), and NeutralDReconstruction::execute().

◆ getbeamE() [2/3]

double ReadBeamInfFromDb::getbeamE ( int  run)

◆ getbeamE() [3/3]

double ReadBeamInfFromDb::getbeamE ( int  run,
double  defaultbeamE 
)

Definition at line 153 of file Reconstruction/DTagAlg/DTagAlg-00-00-49/src/ReadBeamInfFromDb.cxx.

153 {
154 int absrun=fabs(run);
155
156 if (!isRunValid(absrun)){
157 return defaultbeamE;
158 fprintf(stderr, "ERROR in ReadBeamInfFromDb: runNo is invalid!\n");
159 }
160 return m_beamE;
161}

◆ getbeta()

CLHEP::Hep3Vector ReadBeamInfFromDb::getbeta ( )
inline

◆ isRunValid() [1/3]

bool ReadBeamInfFromDb::isRunValid ( int  run)

Definition at line 74 of file DQA/DQADtagAlg/DQADtagAlg-00-00-12/src/util/ReadBeamInfFromDb.cxx.

74 {
75 if (run == -1 || m_run != run) {
76 ReadDb(run);
77 }
78
79 return m_isRunValid;
80}

Referenced by DQADtag::execute(), EmcSelBhaEvent::execute(), and getbeamE().

◆ isRunValid() [2/3]

bool ReadBeamInfFromDb::isRunValid ( int  run)

◆ isRunValid() [3/3]

bool ReadBeamInfFromDb::isRunValid ( int  run)

◆ setcalib()

bool ReadBeamInfFromDb::setcalib ( bool  calib)
inline

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