BOSS 7.0.4
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)
 
 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/4]

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/4]

ReadBeamInfFromDb::~ReadBeamInfFromDb ( )
inline

◆ ReadBeamInfFromDb() [2/4]

ReadBeamInfFromDb::ReadBeamInfFromDb ( )

◆ ~ReadBeamInfFromDb() [2/4]

ReadBeamInfFromDb::~ReadBeamInfFromDb ( )
inline

◆ ReadBeamInfFromDb() [3/4]

ReadBeamInfFromDb::ReadBeamInfFromDb ( )

◆ ~ReadBeamInfFromDb() [3/4]

ReadBeamInfFromDb::~ReadBeamInfFromDb ( )
inline

◆ ReadBeamInfFromDb() [4/4]

ReadBeamInfFromDb::ReadBeamInfFromDb ( )

◆ ~ReadBeamInfFromDb() [4/4]

ReadBeamInfFromDb::~ReadBeamInfFromDb ( )
inline

Member Function Documentation

◆ getbeamE() [1/4]

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(), and NeutralDReconstruction::execute().

◆ getbeamE() [2/4]

double ReadBeamInfFromDb::getbeamE ( int  run)

◆ getbeamE() [3/4]

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

Definition at line 153 of file Reconstruction/DTagAlg/DTagAlg-00-01-05/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}

◆ getbeamE() [4/4]

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

◆ getbeta() [1/2]

CLHEP::Hep3Vector ReadBeamInfFromDb::getbeta ( )
inline

◆ getbeta() [2/2]

CLHEP::Hep3Vector ReadBeamInfFromDb::getbeta ( )
inline

Definition at line 19 of file Reconstruction/DTagAlg/DTagAlg-00-01-05/DTagAlg/ReadBeamInfFromDb.h.

19{return m_beta;}

◆ isRunValid() [1/4]

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/4]

bool ReadBeamInfFromDb::isRunValid ( int  run)

◆ isRunValid() [3/4]

bool ReadBeamInfFromDb::isRunValid ( int  run)

◆ isRunValid() [4/4]

bool ReadBeamInfFromDb::isRunValid ( int  run)

◆ setcalib() [1/2]

bool ReadBeamInfFromDb::setcalib ( bool  calib)
inline

◆ setcalib() [2/2]

bool ReadBeamInfFromDb::setcalib ( bool  calib)
inline

Definition at line 20 of file Reconstruction/DTagAlg/DTagAlg-00-01-05/DTagAlg/ReadBeamInfFromDb.h.

20{m_usecbE=calib;}

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