CGEM BOSS 6.6.5.h
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, double defaultbeamE)
 
CLHEP::Hep3Vector getbeta ()
 
bool setcalib (bool calib)
 

Detailed Description

Constructor & Destructor Documentation

◆ ReadBeamInfFromDb() [1/2]

ReadBeamInfFromDb::ReadBeamInfFromDb ( )

Definition at line 5 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/src/util/ReadBeamInfFromDb.cxx.

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

◆ ~ReadBeamInfFromDb() [1/2]

ReadBeamInfFromDb::~ReadBeamInfFromDb ( )
inline

◆ ReadBeamInfFromDb() [2/2]

ReadBeamInfFromDb::ReadBeamInfFromDb ( )

◆ ~ReadBeamInfFromDb() [2/2]

ReadBeamInfFromDb::~ReadBeamInfFromDb ( )
inline

Member Function Documentation

◆ getbeamE() [1/2]

double ReadBeamInfFromDb::getbeamE ( int run)

Definition at line 84 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/src/util/ReadBeamInfFromDb.cxx.

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

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

◆ getbeamE() [2/2]

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

Definition at line 153 of file Reconstruction/DTagAlg/DTagAlg-00-00-51/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/2]

bool ReadBeamInfFromDb::isRunValid ( int run)

Definition at line 75 of file DQA/DQADtagAlg/DQADtagAlg-00-00-13/src/util/ReadBeamInfFromDb.cxx.

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

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

◆ isRunValid() [2/2]

bool ReadBeamInfFromDb::isRunValid ( int run)

◆ setcalib()

bool ReadBeamInfFromDb::setcalib ( bool calib)
inline

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