Classes | |
class | BNEVB |
class | DCM |
class | FEB |
Public Member Functions | |
RunHistory (int run, std::string det) | |
RunHistory (int run, int detid) | |
~RunHistory () | |
void | Load () |
void | SetDBInfo (std::string dbname="", std::string dbhost="", std::string user="", std::string port="") |
void | SetRunNumber (int run) |
void | SetDetector (std::string det) |
void | Dump () |
int | RunNumber () const |
int | NSubruns () const |
std::string | Detector () const |
time_t | TStart () const |
time_t | TStop () const |
std::string | TStartAsString () const |
std::string | TStopAsString () const |
int | Duration () const |
in units of seconds More... | |
int | NTriggers () const |
int | NDCMs () const |
int | NBNEVBs () const |
int | NActiveChannels () const |
int | NTotalChannels () const |
int | NTotalFEBs () const |
int | NMaskedOffFEBs () const |
const DCM | GetDCM (int idcm) |
int | NDCMInstalled () const |
int | NFEBInstalled () const |
int | NAPDInstalled () const |
bool | FEBEnableMask (const std::string &dcmName, int64_t &febMask) |
bool | PixelEnableMask (const std::string &dcmName, const int &febId, int32_t &pixelMask) |
bool | PixelThresholdsForFEB (const std::string &dcmName, const int &febId, std::vector< int16_t > &thresholdList) |
Private Attributes | |
int | _runNumber |
int | _nsubrun |
int | _nTotTrig |
int | _nActiveChannels |
int | _nTotalChannels |
int | _nTotalFEBs |
int | _nMaskedOffFEBs |
int | _nInstalledDCMs |
int | _nInstalledFEBs |
int | _nInstalledAPDs |
std::string | _detector |
std::string | _tStart |
std::string | _tEnd |
std::vector< int > | _nEvtTrig |
std::vector< DCM > | _dcmList |
std::vector< BNEVB > | _bnevbList |
int64_t | _gCfgId |
std::unique_ptr< db::Table > | runsTable |
std::unique_ptr< db::Table > | resTable |
std::unique_ptr< db::Table > | hwposTable |
std::unique_ptr< daqcfg::PixelEnableMasks > | _pixMaskPtr |
std::unique_ptr< daqcfg::PixelThresholds > | _pixThreshPtr |
Utilities for accessing DB via kerberos
Definition at line 27 of file RunHistory.h.
dbutils::RunHistory::RunHistory | ( | int | run, |
std::string | det | ||
) |
Definition at line 14 of file RunHistory.cpp.
References _detector, fillBadChanDBTables::det, novadaq::cnv::DetInfo::DetNameOk(), hwposTable, Load(), resTable, runsTable, and string.
Definition at line 45 of file RunHistory.cpp.
References _detector, novadaq::cnv::DetInfo::DetIdOk(), novadaq::cnv::DetInfo::GetName(), hwposTable, Load(), resTable, runsTable, and string.
dbutils::RunHistory::~RunHistory | ( | ) |
Definition at line 77 of file RunHistory.cpp.
|
inline |
void dbutils::RunHistory::Dump | ( | ) |
Definition at line 265 of file RunHistory.cpp.
References _bnevbList, _dcmList, _nActiveChannels, _nsubrun, _nTotTrig, _runNumber, om::cout, allTimeWatchdog::endl, MECModelEnuComparisons::i, TStartAsString(), and TStopAsString().
Referenced by SetRunNumber().
|
inline |
bool dbutils::RunHistory::FEBEnableMask | ( | const std::string & | dcmName, |
int64_t & | febMask | ||
) |
Definition at line 285 of file RunHistory.cpp.
References _dcmList, _gCfgId, _pixMaskPtr, and MECModelEnuComparisons::i.
Referenced by NAPDInstalled().
void dbutils::RunHistory::Load | ( | ) |
Definition at line 115 of file RunHistory.cpp.
References _bnevbList, _dcmList, _detector, _gCfgId, _nActiveChannels, _nMaskedOffFEBs, _nsubrun, _nTotalChannels, _nTotalFEBs, _nTotTrig, _runNumber, _tEnd, _tStart, dbutils::RunHistory::FEB::apdV, dbutils::RunHistory::DCM::appname, dbutils::RunHistory::BNEVB::appname, b, elec2geo::block, run_hadd::cmd, nova::dbi::Row::Col(), d, dbutils::RunHistory::FEB::dcmid, MakeMiniprodValidationCuts::f, dbutils::daqconfig::PixelEnableMasks::febIsEnabled(), nova::dbi::Column::Get(), dbutils::daqconfig::PixelEnableMasks::getFEBEnableMask(), dbutils::daqconfig::PixelEnableMasks::getPixelEnableMask(), dbutils::dcs::APDSettings::getTemperature(), dbutils::dcs::APDSettings::getTemperatureEnable(), dbutils::dcs::APDSettings::hasValidData(), hwposTable, MECModelEnuComparisons::i, dbutils::RunHistory::FEB::isCooled, dbutils::RunHistory::FEB::isEnabled, dbutils::RunHistory::FEB::loc, dbutils::RunHistory::FEB::nActivePix, dbutils::RunHistory::FEB::pixelMask, NDAPDHVSetting::plane, resTable, check_grl::row, runsTable, string, APDHVSetting::temp, dbutils::RunHistory::FEB::tempEnabled, and dbutils::RunHistory::FEB::temperature.
Referenced by RunHistory().
|
inline |
|
inline |
Definition at line 103 of file RunHistory.h.
References _nInstalledAPDs, FEBEnableMask(), PixelEnableMask(), dbutils::RunHistory::FEB::pixelMask, PixelThresholdsForFEB(), and string.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool dbutils::RunHistory::PixelEnableMask | ( | const std::string & | dcmName, |
const int & | febId, | ||
int32_t & | pixelMask | ||
) |
Definition at line 301 of file RunHistory.cpp.
References _dcmList, _gCfgId, _pixMaskPtr, and MECModelEnuComparisons::i.
Referenced by NAPDInstalled().
bool dbutils::RunHistory::PixelThresholdsForFEB | ( | const std::string & | dcmName, |
const int & | febId, | ||
std::vector< int16_t > & | thresholdList | ||
) |
Definition at line 317 of file RunHistory.cpp.
References _dcmList, _gCfgId, _pixThreshPtr, and MECModelEnuComparisons::i.
Referenced by NAPDInstalled().
|
inline |
void dbutils::RunHistory::SetDBInfo | ( | std::string | dbname = "" , |
std::string | dbhost = "" , |
||
std::string | user = "" , |
||
std::string | port = "" |
||
) |
void dbutils::RunHistory::SetDetector | ( | std::string | det | ) |
Referenced by SetRunNumber().
Definition at line 76 of file RunHistory.h.
References _runNumber, fillBadChanDBTables::det, Dump(), updateRunHistoryTables::run, SetDetector(), and string.
time_t dbutils::RunHistory::TStart | ( | ) | const |
Definition at line 242 of file RunHistory.cpp.
References _tStart, confusionMatrixTree::t, and nova::database::Util::TimeAsStringToTime_t().
Referenced by Detector(), and Duration().
|
inline |
time_t dbutils::RunHistory::TStop | ( | ) | const |
Definition at line 252 of file RunHistory.cpp.
References _tEnd, confusionMatrixTree::t, and nova::database::Util::TimeAsStringToTime_t().
Referenced by Detector(), and Duration().
|
inline |
|
private |
Definition at line 130 of file RunHistory.h.
|
private |
Definition at line 129 of file RunHistory.h.
Referenced by Dump(), FEBEnableMask(), GetDCM(), Load(), NDCMs(), PixelEnableMask(), and PixelThresholdsForFEB().
|
private |
Definition at line 125 of file RunHistory.h.
Referenced by Detector(), Load(), and RunHistory().
|
private |
Definition at line 132 of file RunHistory.h.
Referenced by FEBEnableMask(), Load(), PixelEnableMask(), and PixelThresholdsForFEB().
|
private |
Definition at line 117 of file RunHistory.h.
Referenced by Dump(), Load(), and NActiveChannels().
|
private |
Definition at line 128 of file RunHistory.h.
|
private |
Definition at line 123 of file RunHistory.h.
Referenced by NAPDInstalled().
|
private |
Definition at line 121 of file RunHistory.h.
Referenced by NDCMInstalled().
|
private |
Definition at line 122 of file RunHistory.h.
Referenced by NFEBInstalled().
|
private |
Definition at line 120 of file RunHistory.h.
Referenced by Load(), and NMaskedOffFEBs().
|
private |
Definition at line 115 of file RunHistory.h.
Referenced by Dump(), Load(), and NSubruns().
|
private |
Definition at line 118 of file RunHistory.h.
Referenced by Load(), and NTotalChannels().
|
private |
Definition at line 119 of file RunHistory.h.
Referenced by Load(), and NTotalFEBs().
|
private |
Definition at line 116 of file RunHistory.h.
Referenced by Dump(), Load(), and NTriggers().
|
private |
Definition at line 137 of file RunHistory.h.
Referenced by FEBEnableMask(), and PixelEnableMask().
|
private |
Definition at line 138 of file RunHistory.h.
Referenced by PixelThresholdsForFEB().
|
private |
Definition at line 114 of file RunHistory.h.
Referenced by Dump(), Load(), RunNumber(), and SetRunNumber().
|
private |
Definition at line 127 of file RunHistory.h.
Referenced by Load(), TStop(), and TStopAsString().
|
private |
Definition at line 126 of file RunHistory.h.
Referenced by Load(), TStart(), and TStartAsString().
|
private |
Definition at line 136 of file RunHistory.h.
Referenced by Load(), and RunHistory().
|
private |
Definition at line 135 of file RunHistory.h.
Referenced by Load(), RunHistory(), and SetDBInfo().
|
private |
Definition at line 134 of file RunHistory.h.
Referenced by Load(), RunHistory(), and SetDBInfo().