#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-16/RunHistory/RunHistory.h"
Classes | |
class | BNEVB |
class | DCM |
class | DiBlock |
class | FEB |
Protected Attributes | |
bool | _getDiBlockMaskFromCondb |
std::string | _dbMaskTag |
Private Member Functions | |
void | InvalidateCaches () |
Call at new run/detector etc. More... | |
void | BuildMC () |
std::map< uint32_t, APDInfo > | PullAPDInfoFromDB () |
std::map< HardwareLocation, std::pair< FEBInfo, APDInfo > > | PullFEBInfoFromDB (std::map< uint32_t, APDInfo > apdinfomap) |
void | MapHardwareToLocation () |
Utilities for accessing run history, calib. constants, etc.
Definition at line 253 of file RunHistory.h.
nova::dbi::RunHistory::RunHistory | ( | ) |
Definition at line 95 of file RunHistory.cxx.
References _analysisDiBlockMasking, _avgpot, _badChanVersion, _currentSR, _dataType, _dbMaskTag, _detGainTag, _fdRHCRunStart, _fdRHCRunStop, _getDiBlockMaskFromCondb, _ndRHCRunStart, _ndRHCRunStop, _nInstalledAPDs, _npot, _nRetryLoads, _runType, _timeParsing, _timeQueries, _verbosity, InvalidateCaches(), nova::dbi::kNDataType, novadaq::cnv::kUNKNOWN_DET, and SetDetector().
|
virtual |
Definition at line 229 of file RunHistory.cxx.
nova::dbi::RunHistory::RunHistory | ( | int | run, |
std::string | det | ||
) |
Definition at line 140 of file RunHistory.cxx.
References _analysisDiBlockMasking, _avgpot, _badChanVersion, _currentSR, _dataType, _dbMaskTag, _detGainTag, _fdRHCRunStart, _fdRHCRunStop, _getDiBlockMaskFromCondb, _ndRHCRunStart, _ndRHCRunStop, _nInstalledAPDs, _npot, _nRetryLoads, _runType, _timeParsing, _timeQueries, _verbosity, InvalidateCaches(), nova::dbi::kNDataType, and SetDetector().
nova::dbi::RunHistory::RunHistory | ( | int | run, |
novadaq::cnv::DetId | detid | ||
) |
Definition at line 185 of file RunHistory.cxx.
References _analysisDiBlockMasking, _avgpot, _badChanVersion, _currentSR, _dataType, _dbMaskTag, _detGainTag, _fdRHCRunStart, _fdRHCRunStop, _getDiBlockMaskFromCondb, _ndRHCRunStart, _ndRHCRunStop, _nInstalledAPDs, _npot, _nRetryLoads, _runType, _timeParsing, _timeQueries, _verbosity, InvalidateCaches(), nova::dbi::kNDataType, and SetDetector().
converts normal mask to analysis rules mask (any continuous chunk of four or more diblocks kept)
Definition at line 1467 of file RunHistory.cxx.
Referenced by LoadGoodDiBlockMask().
|
inline |
Definition at line 392 of file RunHistory.h.
|
inline |
Definition at line 464 of file RunHistory.h.
|
private |
Definition at line 2669 of file RunHistory.cxx.
References _dbList, _detId, _diblockIndex, _gotAPDSettings, _gotCoolingInfo, _gotDAQRunHistory, _gotHardwareInfo, _gotPixelInfo, _gotPOT, _nsubrun, d, febshutoff_auto::db, nova::dbi::RunHistory::DiBlock::dcm, nova::dbi::RunHistory::DCM::diblock, nova::dbi::RunHistory::DCM::feb, nova::dbi::RunHistory::DiBlock::hasNoAPDs, nova::dbi::RunHistory::DCM::isActive, IsGoodDiBlock(), novadaq::cnv::kNEARDET, nova::dbi::RunHistory::DCM::nInstrumentedFEBs, nova::dbi::RunHistory::DiBlock::nInstrumentedFEBs, nova::dbi::RunHistory::DiBlock::num, and nova::dbi::RunHistory::DCM::position.
Referenced by LoadDAQRunHistory().
|
inline |
Definition at line 456 of file RunHistory.h.
|
inline |
Definition at line 461 of file RunHistory.h.
float nova::dbi::RunHistory::Coincidence | ( | geo::OfflineChan | chan, |
time_t | t | ||
) |
Definition at line 2161 of file RunHistory.cxx.
References _chanInfo, febshutoff_auto::chan, MECModelEnuComparisons::i, and confusionMatrixTree::t.
|
inline |
Definition at line 482 of file RunHistory.h.
|
inline |
Definition at line 376 of file RunHistory.h.
Referenced by comi::NearlineAna::analyze(), nova::dbi::RunHistoryService::preBeginRun(), nova::dbi::RunHistoryService::preBeginSubrun(), and ifdb::IFDBSpillInfo::produce().
bool nova::dbi::RunHistory::DetFineTimingSetting | ( | ) | const |
Definition at line 1051 of file RunHistory.cxx.
References _detId, _runNumber, and novadaq::cnv::kFARDET.
Referenced by caf::CAFMaker::produce().
int nova::dbi::RunHistory::DetGainSetting | ( | ) |
Definition at line 1007 of file RunHistory.cxx.
References _abort, _detector, _detGainSetting, _detGainTag, _runNumber, _timeParsing, _timeQueries, _verbosity, om::cerr, novadaq::cnv::DetInfo::DetNameOk(), allTimeWatchdog::endl, nova::dbi::kDataOnly, nova::dbi::kMCOnly, LOG_ERROR, LOG_INFO, LOG_WARNING, and confusionMatrixTree::t.
Referenced by rsim::CommonParameters::CommonParameters(), calib::Calibrator::postBeginRun(), and caf::CAFMaker::produce().
std::string nova::dbi::RunHistory::DiBlockMaskToString | ( | const int | mask | ) | const |
Definition at line 1446 of file RunHistory.cxx.
References string.
Referenced by LoadGoodDiBlockMask(), nova::dbi::RunHistoryService::preBeginRun(), and nova::dbi::RunHistoryService::preBeginSubrun().
void nova::dbi::RunHistory::Dump | ( | ) |
Definition at line 2234 of file RunHistory.cxx.
References _bnevbList, _dbList, _nActiveChannels, _nsubrun, _nTotalChannels, _nTotTrig, _runNumber, om::cout, febshutoff_auto::dcm, allTimeWatchdog::endl, MECModelEnuComparisons::i, calib::j, NLiveDCMs(), TStartAsString(), and TStopAsString().
|
inline |
in units of seconds
Definition at line 389 of file RunHistory.h.
Referenced by mono::DataCheckMonopole::endSubRun(), photrans::ImprovedTransport::StepAlongHit(), and calib::Calibrator::SystematicUncertaintyScale().
|
inline |
Definition at line 474 of file RunHistory.h.
|
inline |
Definition at line 398 of file RunHistory.h.
References sr.
Referenced by zcl::FmmTrackerAna::endJob(), and mono::DataCheckMonopole::farm70_in_configuration().
int nova::dbi::RunHistory::GetConfiguration | ( | ) |
Definition at line 1413 of file RunHistory.cxx.
References _dbList, _detector, gen_hdf5record::config, runNovaSAM::detId, novadaq::cnv::DetInfo::GetId(), MECModelEnuComparisons::i, novadaq::cnv::kFARDET, novadaq::cnv::kNEARDET, and LoadHardwareInfo().
Referenced by remid::ReMIdTrain::analyze(), numue::NumuEAna::analyze(), skim::CellHitSkimmer::CheckEvent(), skim::Evaluator::CheckSliceQuality(), skim::CosmicBeamComparison::FillNumuHistograms(), skim::ParametersNue::ParametersNue(), and skim::ParametersNumu::ParametersNumu().
|
inline |
Definition at line 484 of file RunHistory.h.
Referenced by skim::CellHitSkimmer::endRun(), and skim::POTSummary::event().
|
inline |
Definition at line 452 of file RunHistory.h.
Referenced by calib::AttenFit::beginRun(), calib::DCMTimingOffset::beginRun(), and geo::LiveGeometry::SetInstrumentation().
RunHistory::DiBlock nova::dbi::RunHistory::GetDiBlock | ( | int | i, |
bool | loadAll = true |
||
) |
get ith diblock is RH list (which only includes diblocks with activity), starting with i=0. Set loadAll = false to prevent loading in pixel masks if not needed, as it can be very slow
Definition at line 1760 of file RunHistory.cxx.
References _dbList, allTimeWatchdog::endl, MECModelEnuComparisons::i, LoadAllDetInfo(), LoadHardwareInfo(), and LOG_ERROR.
Referenced by chaninfo::BadChanValidate::BadChansFromOM(), calib::PEResponse::beginRun(), comi::NearlineAna::beginRun(), comi::DataCheck::beginSubRun(), comi::DataCheck::endJob(), GetFEB(), geo::LiveGeometry::GetRHInfo(), chaninfo::BadChanList::NBadInSubRun(), and geo::LiveGeometry::SetInstrumentation().
|
inline |
Definition at line 368 of file RunHistory.h.
Referenced by calhit::RemoveBadChannels::beginRun(), calhit::CalHit::beginRun(), caf::CAFMaker::beginRun(), calhit::RemoveBadChannels::beginSubRun(), calhit::CalHit::beginSubRun(), and caf::CAFMaker::beginSubRun().
std::vector< DQSubrunInfo > nova::dbi::RunHistory::GetDQSubrunInfo | ( | ) |
Definition at line 2072 of file RunHistory.cxx.
References _detector, _dqSRInfo, nova::dbi::DQSubrunInfo::_flag, _gotDQSubrunInfo, nova::dbi::DQSubrunInfo::_miprate, nova::dbi::DQSubrunInfo::_ngooddb, nova::dbi::DQSubrunInfo::_numslc, nova::dbi::DQSubrunInfo::_run, _runNumber, nova::dbi::DQSubrunInfo::_subrun, nova::dbi::DQSubrunInfo::_trkfrac, _verbosity, nova::dbi::DQSubrunInfo::_version, MECModelEnuComparisons::i, and string.
RunHistory::FEB nova::dbi::RunHistory::GetFEB | ( | geo::OfflineChan const & | oChan, |
bool & | ok | ||
) |
Definition at line 1927 of file RunHistory.cxx.
References _detId, geo::OfflineChan::Cell(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getInstance(), and geo::OfflineChan::Plane().
Referenced by GetGain(), GetPixelGain(), and GetPixelGains().
RunHistory::FEB nova::dbi::RunHistory::GetFEB | ( | daqchannelmap::dchan const & | daqChan, |
bool & | ok | ||
) |
Definition at line 1884 of file RunHistory.cxx.
References _dbList, _detId, nova::dbi::RunHistory::DiBlock::dcm, APDHVSetting::feb, nova::dbi::RunHistory::DCM::feb, nova::dbi::RunHistory::DCM::febMask, daqchannelmap::DAQChannelMap::getDCM(), daqchannelmap::DAQChannelMap::getDiBlock(), GetDiBlock(), daqchannelmap::DAQChannelMap::getFEB(), daqchannelmap::DAQChannelMap::getInstance(), nova::dbi::RunHistory::FEB::hasAPD, nova::dbi::RunHistory::DiBlock::hasNoAPDs, nova::dbi::RunHistory::FEB::isEnabled, LoadAPDSettings(), num, and nova::dbi::RunHistory::DCM::position.
float nova::dbi::RunHistory::GetGain | ( | const geo::OfflineChan & | oChan, |
bool & | ok | ||
) |
Definition at line 1951 of file RunHistory.cxx.
References _detId, geo::OfflineChan::Cell(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getInstance(), and geo::OfflineChan::Plane().
float nova::dbi::RunHistory::GetGain | ( | const daqchannelmap::dchan & | daqChan, |
bool & | ok | ||
) |
Definition at line 1939 of file RunHistory.cxx.
References APDHVSetting::feb, nova::dbi::RunHistory::FEB::gain, and GetFEB().
int nova::dbi::RunHistory::GetPedestal | ( | const geo::OfflineChan & | oChan, |
bool & | ok | ||
) |
Definition at line 632 of file RunHistory.cxx.
References _abort, _dbList, _detId, _diblockIndex, geo::OfflineChan::Cell(), febshutoff_auto::dcm, daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), APDHVSetting::feb, daqchannelmap::DAQChannelMap::getDCM(), daqchannelmap::DAQChannelMap::getDiBlock(), daqchannelmap::DAQChannelMap::getFEB(), daqchannelmap::DAQChannelMap::getInstance(), daqchannelmap::DAQChannelMap::getPixel(), makeTrainCVSamples::int, LoadDAQRunHistory(), LoadFEBMasks(), LoadHardwareInfo(), LoadPedestals(), and geo::OfflineChan::Plane().
Referenced by rsim::IFPGAAlgorithm::FetchThresholds(), and chaninfo::BadChanList::IsBadUncached().
int nova::dbi::RunHistory::GetPedestal | ( | const daqchannelmap::dchan & | daqChan, |
bool & | ok | ||
) |
Definition at line 669 of file RunHistory.cxx.
References _abort, _dbList, _detId, _diblockIndex, febshutoff_auto::dcm, APDHVSetting::feb, daqchannelmap::DAQChannelMap::getDCM(), daqchannelmap::DAQChannelMap::getDiBlock(), daqchannelmap::DAQChannelMap::getFEB(), daqchannelmap::DAQChannelMap::getInstance(), daqchannelmap::DAQChannelMap::getPixel(), makeTrainCVSamples::int, LoadDAQRunHistory(), LoadFEBMasks(), LoadHardwareInfo(), LoadPedestals(), and LoadPixelMasks().
float nova::dbi::RunHistory::GetPixelGain | ( | geo::OfflineChan const & | oChan, |
bool & | ok | ||
) |
Definition at line 1974 of file RunHistory.cxx.
References _detId, geo::OfflineChan::Cell(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getInstance(), and geo::OfflineChan::Plane().
float nova::dbi::RunHistory::GetPixelGain | ( | daqchannelmap::dchan const & | daqChan, |
bool & | ok | ||
) |
Definition at line 1961 of file RunHistory.cxx.
References _detId, APDHVSetting::feb, GetFEB(), daqchannelmap::DAQChannelMap::getInstance(), daqchannelmap::DAQChannelMap::getPixel(), and nova::dbi::RunHistory::FEB::pixelGain.
std::vector< float > nova::dbi::RunHistory::GetPixelGains | ( | geo::OfflineChan const & | oChan, |
bool & | ok | ||
) |
Definition at line 1997 of file RunHistory.cxx.
References _detId, geo::OfflineChan::Cell(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getInstance(), and geo::OfflineChan::Plane().
std::vector< float > nova::dbi::RunHistory::GetPixelGains | ( | daqchannelmap::dchan const & | daqChan, |
bool & | ok | ||
) |
Definition at line 1985 of file RunHistory.cxx.
References APDHVSetting::feb, GetFEB(), and nova::dbi::RunHistory::FEB::pixelGain.
int nova::dbi::RunHistory::GetThreshold | ( | const geo::OfflineChan & | oChan, |
bool & | ok | ||
) |
Definition at line 2057 of file RunHistory.cxx.
References _detId, _gotPixelInfo, geo::OfflineChan::Cell(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getInstance(), LoadPixelInfo(), geo::OfflineChan::Plane(), and dump_to_simple_cpp::threshold.
int nova::dbi::RunHistory::GetThreshold | ( | const daqchannelmap::dchan & | daqChan, |
bool & | ok | ||
) |
Definition at line 2008 of file RunHistory.cxx.
References _dbList, _detId, _gotPixelInfo, nova::dbi::RunHistory::DCM::feb, nova::dbi::RunHistory::DCM::febMask, daqchannelmap::DAQChannelMap::getDCM(), daqchannelmap::DAQChannelMap::getDiBlock(), daqchannelmap::DAQChannelMap::getFEB(), daqchannelmap::DAQChannelMap::getInstance(), daqchannelmap::DAQChannelMap::getPixel(), nova::dbi::RunHistory::FEB::hasAPD, nova::dbi::RunHistory::FEB::isEnabled, LoadPixelInfo(), num, nova::dbi::RunHistory::FEB::pixelMask, nova::dbi::RunHistory::FEB::pixelThresh, nova::dbi::RunHistory::DCM::position, and dump_to_simple_cpp::threshold.
Definition at line 1167 of file RunHistory.cxx.
References _currentSR, _getDiBlockMaskFromCondb, _gotGoodDiBlockMask, _subrunList, allTimeWatchdog::endl, LoadGoodDiBlockMask(), LOG_WARNING, and getGoodRuns4SAM::subrun.
Referenced by remid::ReMIdTrain::analyze(), numue::NumuEAna::analyze(), calhit::RemoveBadChannels::beginRun(), calhit::CalHit::beginRun(), caf::CAFMaker::beginRun(), calhit::RemoveBadChannels::beginSubRun(), calhit::CalHit::beginSubRun(), caf::CAFMaker::beginSubRun(), skim::CellHitSkimmer::CheckEvent(), skim::Evaluator::CheckSliceQuality(), CondenseRunList(), skim::CosmicBeamComparison::FillNumuHistograms(), caf::CAFMaker::FillSpillVars(), skim::ParametersNue::ParametersNue(), skim::ParametersNumu::ParametersNumu(), nova::dbi::RunHistoryService::preBeginRun(), nova::dbi::RunHistoryService::preBeginSubrun(), and caf::CAFMaker::produce().
bool nova::dbi::RunHistory::HasAPD | ( | const geo::OfflineChan & | oChan | ) |
basic check for if a channel should be live. Used by BadChannels. Checks if channel has instrumented APD, is active in run, and is not masked
Definition at line 1802 of file RunHistory.cxx.
References _detId, geo::OfflineChan::Cell(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getInstance(), and geo::OfflineChan::Plane().
Referenced by chaninfo::BadChanList::IsBadUncached().
bool nova::dbi::RunHistory::HasAPD | ( | const daqchannelmap::dchan & | daqChan | ) |
Definition at line 1772 of file RunHistory.cxx.
References _dbList, _detId, _gotHardwareInfo, _runNumber, _useMasking, febshutoff_auto::dcm, daqchannelmap::DAQChannelMap::getDCM(), daqchannelmap::DAQChannelMap::getDiBlock(), daqchannelmap::DAQChannelMap::getFEB(), daqchannelmap::DAQChannelMap::getInstance(), MECModelEnuComparisons::i, IsGoodDiBlock(), LoadHardwareInfo(), and num.
|
private |
Call at new run/detector etc.
Definition at line 2257 of file RunHistory.cxx.
References _avgpot, _bnevbList, _customMask, _dbList, _detGainSetting, _diblockIndex, _failedToFindRun, _gotAPDSettings, _gotCoolingInfo, _gotDAQRunHistory, _gotDataEpoch, _gotDQSubrunInfo, _gotFEBMasks, _gotGoodDiBlockMask, _gotHardwareInfo, _gotPedestals, _gotPixelInfo, _gotPixelMasks, _gotPOT, _isMC, _nActiveChannels, _nInstalledAPDs, _npot, _nsubrun, _nTotalChannels, _nTotalFEBs, _nTotTrig, and _subrunList.
Referenced by RunHistory(), SetDetector(), and SetRunNumber().
bool nova::dbi::RunHistory::IsBad | ( | geo::OfflineChan | chan, |
time_t | t | ||
) |
Definition at line 2185 of file RunHistory.cxx.
References _badChan, febshutoff_auto::chan, MECModelEnuComparisons::i, and confusionMatrixTree::t.
bool nova::dbi::RunHistory::IsCooled | ( | const geo::OfflineChan & | oChan | ) |
Definition at line 1874 of file RunHistory.cxx.
References _detId, geo::OfflineChan::Cell(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getInstance(), and geo::OfflineChan::Plane().
bool nova::dbi::RunHistory::IsCooled | ( | const daqchannelmap::dchan & | daqChan | ) |
Definition at line 1834 of file RunHistory.cxx.
References _dbList, _detId, om::cerr, febshutoff_auto::dcm, allTimeWatchdog::endl, APDHVSetting::feb, daqchannelmap::DAQChannelMap::getDCM(), daqchannelmap::DAQChannelMap::getDiBlock(), daqchannelmap::DAQChannelMap::getFEB(), daqchannelmap::DAQChannelMap::getInstance(), nova::dbi::RunHistory::FEB::hasAPD, nova::dbi::RunHistory::FEB::isCooled, nova::dbi::RunHistory::FEB::isEnabled, LoadPixelInfo(), and num.
bool nova::dbi::RunHistory::IsDiBlockFullyInstrumented | ( | int | idb | ) |
returns true if nInstrumentedFEBs in diblock (which counts FEBs that are instrumented, active, and unmasked only) is >= 700
Definition at line 1814 of file RunHistory.cxx.
References _dbList, _detector, runNovaSAM::detId, novadaq::cnv::DetInfo::GetId(), MECModelEnuComparisons::i, novadaq::cnv::kFARDET, novadaq::cnv::kNEARDET, LoadHardwareInfo(), and num.
Referenced by comi::NearlineAna::beginRun(), and geo::LiveGeometry::SetInstrumentation().
< Is diblock kept when applying mask? Generally don't use this, just ask for HasAPD (for a channel) or for nInstrumentedFEBs (in a DCM or Diblock) and any mask asked for will already be applied. Always returns good if masking turned off. Diblock number argument 1-14
Definition at line 1188 of file RunHistory.cxx.
References _currentSR, _getDiBlockMaskFromCondb, _subrunList, _useMasking, allTimeWatchdog::endl, LoadGoodDiBlockMask(), LOG_WARNING, and x1.
Referenced by BuildMC(), HasAPD(), LoadHardwareInfo(), NAnalysisChannels(), NAnalysisDiBlocks(), and chaninfo::BadChanList::NBadInSubRun().
bool nova::dbi::RunHistory::IsRHC | ( | ) |
Definition at line 354 of file RunHistory.cxx.
References _detId, _fdRHCRunStart, _fdRHCRunStop, _ndRHCRunStart, _ndRHCRunStop, _runNumber, om::cerr, allTimeWatchdog::endl, MECModelEnuComparisons::i, novadaq::cnv::kFARDET, and novadaq::cnv::kNEARDET.
Referenced by ifdb::IFDBSpillInfo::produce().
|
inline |
Definition at line 349 of file RunHistory.h.
Referenced by GetDiBlock().
bool nova::dbi::RunHistory::LoadAPDSettings | ( | ) |
Definition at line 1070 of file RunHistory.cxx.
References _dbList, _detector, _gCfgId, _gotAPDSettings, _nInstalledAPDs, std::abs(), febshutoff_auto::apd, nova::dbi::RunHistory::FEB::apdV, febshutoff_auto::dcm, runNovaSAM::detId, MakeMiniprodValidationCuts::f, novadaq::cnv::DetInfo::GetId(), dbutils::dcs::APDSettings::getTemperature(), dbutils::dcs::APDSettings::getTemperatureEnable(), dbutils::dcs::APDSettings::getVoltage(), novadaq::cnv::kFARDET, LoadDAQRunHistory(), LoadHardwareInfo(), LOG_WARNING, MapHardwareToLocation(), num, string, APDHVSetting::temp, nova::dbi::RunHistory::FEB::tempEnabled, and nova::dbi::RunHistory::FEB::temperature.
Referenced by GetFEB().
bool nova::dbi::RunHistory::LoadCoolingInfo | ( | ) |
bool nova::dbi::RunHistory::LoadDAQRunHistory | ( | ) |
Definition at line 1551 of file RunHistory.cxx.
References _abort, _abortIfMissingRunInDB, _bnevbList, _dbList, _detector, _diblockIndex, _failedToFindRun, _gCfgId, _gotDAQRunHistory, _isMC, _nActiveChannels, _nDCMs, _nsubrun, _partition, _runNumber, _runType, _tEnd, _timeParsing, _timeQueries, _tStart, _verbosity, nova::dbi::RunHistory::DCM::appname, nova::dbi::RunHistory::BNEVB::appname, b, BuildMC(), om::cerr, nova::dbi::Row::Col(), d, febshutoff_auto::db, nova::dbi::RunHistory::DiBlock::dcm, runNovaSAM::detector, runNovaSAM::detId, novadaq::cnv::DetInfo::DetNameOk(), nova::dbi::RunHistory::DCM::diblock, allTimeWatchdog::endl, nova::dbi::RunHistory::DCM::feb, Get, nova::dbi::Column::Get(), novadaq::cnv::DetInfo::GetId(), nova::dbi::RunHistory::DiBlock::hasNoAPDs, MECModelEnuComparisons::i, nova::dbi::RunHistory::DCM::isActive, novadaq::cnv::kFARDET, novadaq::cnv::kNEARDET, LOG_ERROR, LOG_INFO, nova::dbi::RunHistory::DCM::nInstrumentedFEBs, nova::dbi::RunHistory::DiBlock::nInstrumentedFEBs, num, nova::dbi::RunHistory::DiBlock::num, elec2geo::pos, nova::dbi::RunHistory::DCM::position, check_grl::row, nova::dbi::SortDiBlocks(), and string.
Referenced by comi::NearlineAna::beginRun(), comi::DataCheck::beginSubRun(), comi::DataCheck::endJob(), GetPedestal(), LoadAPDSettings(), LoadFEBMasks(), LoadFEBMasksFromDAQDB(), LoadHardwareInfo(), LoadPedestals(), LoadPixelInfo(), LoadPixelMasks(), NAnalysisChannels(), NAnalysisDiBlocks(), SubrunTStart(), SubrunTStop(), TStart(), and TStop().
bool nova::dbi::RunHistory::LoadDataEpoch | ( | ) |
Definition at line 1214 of file RunHistory.cxx.
References _dataEpoch, _detector, _gotDataEpoch, _runNumber, _timeParsing, _timeQueries, _verbosity, novadaq::cnv::DetInfo::DetNameOk(), allTimeWatchdog::endl, MECModelEnuComparisons::i, LOG_ERROR, nova::dbi::DataEpoch::name, nova::dbi::DataEpoch::run_end, nova::dbi::DataEpoch::run_start, and confusionMatrixTree::t.
bool nova::dbi::RunHistory::LoadDCSAlarms | ( | int | subrun = -1 | ) |
Definition at line 399 of file RunHistory.cxx.
bool nova::dbi::RunHistory::LoadFEBMasks | ( | ) |
Definition at line 785 of file RunHistory.cxx.
References _abort, _dbList, _detector, _gotFEBMasks, _runNumber, _timeParsing, _timeQueries, _verbosity, om::cerr, nova::dbi::Row::Col(), febshutoff_auto::dcm, runNovaSAM::detId, novadaq::cnv::DetInfo::DetNameOk(), allTimeWatchdog::endl, nova::dbi::Column::Get(), novadaq::cnv::DetInfo::GetId(), nova::dbi::kDataOnly, LoadDAQRunHistory(), LoadHardwareInfo(), LOG_ERROR, LOG_INFO, LOG_WARNING, check_grl::row, and confusionMatrixTree::t.
Referenced by GetPedestal(), LoadPedestals(), and LoadPixelMasks().
bool nova::dbi::RunHistory::LoadFEBMasksFromDAQDB | ( | ) |
Definition at line 853 of file RunHistory.cxx.
References _dbList, _detector, _gCfgId, _gotFEBMasks, _gotPixelInfo, _nTotalChannels, _nTotalFEBs, febshutoff_auto::dcm, allTimeWatchdog::endl, dbutils::daqconfig::PixelEnableMasks::getFEBEnableMask(), dbutils::daqconfig::PixelEnableMasks::hasValidData(), MECModelEnuComparisons::i, calib::j, LoadDAQRunHistory(), LoadHardwareInfo(), LOG_INFO, and string.
bool nova::dbi::RunHistory::LoadGoodDiBlockMask | ( | ) |
Definition at line 1273 of file RunHistory.cxx.
References _abort, _analysisDiBlockMasking, _customMask, _customMasking, _dbMaskTag, _detector, _getDiBlockMaskFromCondb, _gotGoodDiBlockMask, _runNumber, _subrunList, _timeParsing, _timeQueries, _useMasking, _verbosity, ApplyAnalysisDiBlockMask(), om::cerr, nova::dbi::Row::Col(), runNovaSAM::detId, novadaq::cnv::DetInfo::DetNameOk(), DiBlockMaskToString(), allTimeWatchdog::endl, nova::dbi::Column::Get(), novadaq::cnv::DetInfo::GetId(), nova::dbi::kDataOnly, novadaq::cnv::kFARDET, novadaq::cnv::kNEARDET, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING, check_grl::row, string, and confusionMatrixTree::t.
Referenced by GoodDiBlockMask(), and IsGoodDiBlock().
bool nova::dbi::RunHistory::LoadHardwareInfo | ( | ) |
Definition at line 412 of file RunHistory.cxx.
References _dbList, _detector, _diblockIndex, _gotHardwareInfo, _nInstalledAPDs, _nRetryLoads, _timeQueries, _tStart, _useMasking, _verbosity, om::cerr, febshutoff_auto::dcm, runNovaSAM::detId, novadaq::cnv::DetInfo::DetNameOk(), geo2elec::diblock, allTimeWatchdog::endl, APDHVSetting::feb, novadaq::cnv::DetInfo::GetId(), MECModelEnuComparisons::i, IsGoodDiBlock(), novadaq::cnv::kFARDET, nova::dbi::kHardwareTable, novadaq::cnv::kNEARDET, LoadDAQRunHistory(), LOG_ERROR, LOG_INFO, febshutoff_auto::query, and string.
Referenced by GetConfiguration(), GetDiBlock(), GetPedestal(), HasAPD(), IsDiBlockFullyInstrumented(), LoadAPDSettings(), LoadFEBMasks(), LoadFEBMasksFromDAQDB(), LoadPedestals(), LoadPixelInfo(), LoadPixelMasks(), NAnalysisChannels(), NAnalysisDiBlocks(), NDCMs(), and NLiveDCMs().
bool nova::dbi::RunHistory::LoadPedestals | ( | ) |
Definition at line 541 of file RunHistory.cxx.
References _abort, _dbList, _detector, _gotPedestals, _runNumber, _timeParsing, _timeQueries, _verbosity, getBrightness::cell, om::cerr, febshutoff_auto::chan, nova::dbi::Row::Col(), febshutoff_auto::dcm, runNovaSAM::detId, novadaq::cnv::DetInfo::DetNameOk(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), allTimeWatchdog::endl, nova::dbi::Column::Get(), daqchannelmap::DAQChannelMap::getCell(), novadaq::cnv::DetInfo::GetId(), daqchannelmap::DAQChannelMap::getInstance(), daqchannelmap::DAQChannelMap::getPlane(), ip, nova::dbi::kDataOnly, LoadDAQRunHistory(), LoadFEBMasks(), LoadHardwareInfo(), LoadPixelMasks(), LOG_ERROR, LOG_INFO, LOG_WARNING, NDAPDHVSetting::plane, check_grl::row, confusionMatrixTree::t, geo::OfflineChan::ToDBValidityChan(), and x1.
Referenced by GetPedestal().
bool nova::dbi::RunHistory::LoadPixelInfo | ( | int | nAttempt = 0 | ) |
Definition at line 903 of file RunHistory.cxx.
References _dbList, _detector, _gCfgId, _gotPixelInfo, _nRetryLoads, _nTotalChannels, _nTotalFEBs, om::cerr, febshutoff_auto::dcm, allTimeWatchdog::endl, MakeMiniprodValidationCuts::f, dbutils::daqconfig::PixelEnableMasks::febIsEnabled(), dbutils::daqconfig::PixelEnableMasks::getFEBEnableMask(), dbutils::daqconfig::PixelEnableMasks::getPixelEnableMask(), dbutils::daqconfig::PixelThresholds::getThresholdsForFEB(), dbutils::daqconfig::PixelThresholds::hasValidData(), dbutils::daqconfig::PixelEnableMasks::hasValidData(), MECModelEnuComparisons::i, nova::dbi::RunHistory::FEB::isEnabled, calib::j, LoadDAQRunHistory(), LoadHardwareInfo(), LOG_INFO, nova::dbi::RunHistory::FEB::nActivePix, nova::dbi::RunHistory::FEB::pixelMask, nova::dbi::RunHistory::FEB::pixelThresh, and string.
Referenced by calib::PEResponse::beginRun(), GetThreshold(), and IsCooled().
bool nova::dbi::RunHistory::LoadPixelMasks | ( | ) |
Definition at line 709 of file RunHistory.cxx.
References _abort, _dbList, _detector, _gotPixelMasks, _runNumber, _timeParsing, _timeQueries, _verbosity, om::cerr, nova::dbi::Row::Col(), febshutoff_auto::dcm, runNovaSAM::detId, novadaq::cnv::DetInfo::DetNameOk(), allTimeWatchdog::endl, nova::dbi::Column::Get(), novadaq::cnv::DetInfo::GetId(), nova::dbi::kDataOnly, LoadDAQRunHistory(), LoadFEBMasks(), LoadHardwareInfo(), LOG_ERROR, LOG_INFO, LOG_WARNING, check_grl::row, and confusionMatrixTree::t.
Referenced by GetPedestal(), and LoadPedestals().
bool nova::dbi::RunHistory::LoadPOT | ( | ) |
Definition at line 1511 of file RunHistory.cxx.
References _avgpot, _detector, _gotPOT, _npot, _runNumber, _timeParsing, _timeQueries, _verbosity, om::cerr, novadaq::cnv::DetInfo::DetNameOk(), and allTimeWatchdog::endl.
|
private |
Definition at line 2628 of file RunHistory.cxx.
References nova::dbi::HardwareLocation::_dcm, nova::dbi::HardwareLocation::_detid, _detId, nova::dbi::HardwareLocation::_diblock, nova::dbi::HardwareLocation::_feb, nova::dbi::gLocToFA, calib::j, novadaq::cnv::kFARDET, LOG_DEBUG, PullAPDInfoFromDB(), and PullFEBInfoFromDB().
Referenced by LoadAPDSettings().
|
inline |
Definition at line 402 of file RunHistory.h.
Referenced by mono::DataCheckMonopole::endSubRun(), and geo::LiveGeometry::LiveDetectorVolume().
Definition at line 285 of file RunHistory.cxx.
References _dbList, _subrunList, MECModelEnuComparisons::i, IsGoodDiBlock(), LoadDAQRunHistory(), LoadHardwareInfo(), and sr.
Referenced by caf::CAFMaker::produce().
Definition at line 256 of file RunHistory.cxx.
References _dbList, _subrunList, MECModelEnuComparisons::i, IsGoodDiBlock(), LoadDAQRunHistory(), LoadHardwareInfo(), and sr.
|
inline |
Definition at line 413 of file RunHistory.h.
|
inline |
int nova::dbi::RunHistory::NDCMs | ( | ) |
Definition at line 235 of file RunHistory.cxx.
References _gotHardwareInfo, _nDCMs, and LoadHardwareInfo().
Referenced by chaninfo::BadChanValidate::BadChansFromOM(), and caf::CAFMaker::FillSpillVars().
|
inline |
gives number of active diblocks only, may be less than 14
Definition at line 394 of file RunHistory.h.
Referenced by chaninfo::BadChanValidate::BadChansFromOM(), calib::PEResponse::beginRun(), comi::NearlineAna::beginRun(), comi::DataCheck::beginSubRun(), comi::DataCheck::endJob(), mono::DataCheckMonopole::endSubRun(), geo::LiveGeometry::GetRHInfo(), chaninfo::BadChanList::NBadInSubRun(), and geo::LiveGeometry::SetInstrumentation().
|
inline |
Definition at line 404 of file RunHistory.h.
References getGoodRuns4SAM::subrun.
int nova::dbi::RunHistory::NLiveDCMs | ( | ) |
Definition at line 243 of file RunHistory.cxx.
References _dbList, _gotHardwareInfo, febshutoff_auto::dcm, MECModelEnuComparisons::i, calib::j, and LoadHardwareInfo().
Referenced by Dump(), and mono::DataCheckMonopole::endSubRun().
|
inline |
|
inline |
Definition at line 467 of file RunHistory.h.
|
inline |
Definition at line 375 of file RunHistory.h.
Referenced by mono::DataCheckMonopole::endSubRun(), chaninfo::BadChanList::IsBadUncached(), chaninfo::BadChanList::LoadNewData(), chaninfo::BadChanList::NBadInSubRun(), and chaninfo::BadChanList::postBeginSubRun().
|
inline |
Definition at line 403 of file RunHistory.h.
|
inline |
float nova::dbi::RunHistory::Occupancy | ( | geo::OfflineChan | chan, |
time_t | t | ||
) |
Definition at line 2147 of file RunHistory.cxx.
References _chanInfo, febshutoff_auto::chan, MECModelEnuComparisons::i, and confusionMatrixTree::t.
|
inline |
void nova::dbi::RunHistory::PrintChanInfo | ( | ) |
Definition at line 2121 of file RunHistory.cxx.
References _chanInfo, geo::OfflineChan::Cell(), febshutoff_auto::chan, om::cout, allTimeWatchdog::endl, it, calib::j, and geo::OfflineChan::Plane().
|
private |
Definition at line 2304 of file RunHistory.cxx.
References nova::dbi::APDInfo::_barcode, nova::dbi::APDInfo::_batch, _detector, _detId, nova::dbi::APDInfo::_installed, nova::dbi::APDInfo::_modcon, nova::dbi::APDInfo::_module, nova::dbi::APDInfo::_pixelGain, nova::dbi::APDInfo::_sn, nova::dbi::APDInfo::_temp, _timeQueries, _tStart, _verbosity, nova::dbi::APDInfo::_voltage, APDHVSetting::batch, col, daqchannelmap::DAQChannelMap::computeFiberInModule(), novadaq::cnv::DetInfo::DetNameOk(), daqchannelmap::DAQChannelMap::encodeDChan(), allTimeWatchdog::endl, daqchannelmap::DAQChannelMap::getInstance(), novadaq::cnv::kFARDET, nova::dbi::kHardwareTable, LOG_DEBUG, LOG_ERROR, LOG_INFO, nova::dbi::PerformPGQuery(), r(), check_grl::row, fillBadChanDBTables::SQL, and string.
Referenced by MapHardwareToLocation().