BOSS 7.0.9
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 DQADtag::execute(), ChargedDReconstruction::execute(), DsReconstruction::execute(), LambdaCReconstruction::execute(), and NeutralDReconstruction::execute().

◆ getbeamE() [2/2]

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

Definition at line 73 of file Reconstruction/DTagAlg/DTagAlg-00-01-09/src/ReadBeamInfFromDb.cxx.

73 {
74 int absrun=fabs(run);
75 if (!isRunValid(absrun)){
76 return defaultbeamE;
77 fprintf(stderr, "ERROR in ReadBeamInfFromDb: runNo is invalid!\n");
78 }
79 return m_beamE;
80}

◆ 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(), and getbeamE().

◆ isRunValid() [2/2]

bool ReadBeamInfFromDb::isRunValid ( int  run)

◆ setcalib()


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