Simple service to provide a RunHistory configured to the right run. More...
Protected Attributes | |
int | fFakeRunNumber |
bool | fTimeQueries |
bool | fUseMasking |
bool | fAnalysisDiBlockMasking |
bool | fCustomMasking |
std::vector< int > | fCustomMask |
std::string | fCalHitLabel |
bool | fAbort |
bool | fAbortIfMissingRunInDB |
bool | _getDiBlockMaskFromCondb |
std::string | _dbMaskTag |
Private Member Functions | |
void | SetRunNumber (int run) |
void | SetDetector (const std::string &det) |
void | SetDetector (novadaq::cnv::DetId det) |
Simple service to provide a RunHistory configured to the right run.
Definition at line 22 of file RunHistoryService.h.
nova::dbi::RunHistoryService::RunHistoryService | ( | const fhicl::ParameterSet & | pset, |
art::ActivityRegistry & | reg | ||
) |
Definition at line 30 of file RunHistory_service.cc.
References preBeginRun(), preBeginSubrun(), reconfigure(), art::ActivityRegistry::sPreBeginRun, and art::ActivityRegistry::sPreBeginSubRun.
|
virtual |
Definition at line 40 of file RunHistory_service.cc.
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 nova::dbi::RunHistory::LoadGoodDiBlockMask().
|
inlineinherited |
Definition at line 392 of file RunHistory.h.
|
inlineinherited |
Definition at line 464 of file RunHistory.h.
|
inlineinherited |
Definition at line 456 of file RunHistory.h.
|
inlineinherited |
Definition at line 461 of file RunHistory.h.
|
inherited |
Definition at line 2161 of file RunHistory.cxx.
References nova::dbi::RunHistory::_chanInfo, febshutoff_auto::chan, MECModelEnuComparisons::i, and confusionMatrixTree::t.
|
inlineinherited |
Definition at line 482 of file RunHistory.h.
|
inlineinherited |
Definition at line 376 of file RunHistory.h.
Referenced by comi::NearlineAna::analyze(), preBeginRun(), preBeginSubrun(), and ifdb::IFDBSpillInfo::produce().
|
inherited |
Definition at line 1051 of file RunHistory.cxx.
References nova::dbi::RunHistory::_detId, nova::dbi::RunHistory::_runNumber, and novadaq::cnv::kFARDET.
Referenced by caf::CAFMaker::produce().
|
inherited |
Definition at line 1007 of file RunHistory.cxx.
References nova::dbi::RunHistory::_abort, nova::dbi::RunHistory::_detector, nova::dbi::RunHistory::_detGainSetting, nova::dbi::RunHistory::_detGainTag, nova::dbi::RunHistory::_runNumber, nova::dbi::RunHistory::_timeParsing, nova::dbi::RunHistory::_timeQueries, nova::dbi::RunHistory::_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().
|
inherited |
Definition at line 1446 of file RunHistory.cxx.
References string.
Referenced by nova::dbi::RunHistory::LoadGoodDiBlockMask(), preBeginRun(), and preBeginSubrun().
|
inherited |
Definition at line 2234 of file RunHistory.cxx.
References nova::dbi::RunHistory::_bnevbList, nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_nActiveChannels, nova::dbi::RunHistory::_nsubrun, nova::dbi::RunHistory::_nTotalChannels, nova::dbi::RunHistory::_nTotTrig, nova::dbi::RunHistory::_runNumber, om::cout, febshutoff_auto::dcm, allTimeWatchdog::endl, MECModelEnuComparisons::i, calib::j, nova::dbi::RunHistory::NLiveDCMs(), nova::dbi::RunHistory::TStartAsString(), and nova::dbi::RunHistory::TStopAsString().
|
inlineinherited |
in units of seconds
Definition at line 389 of file RunHistory.h.
Referenced by mono::DataCheckMonopole::endSubRun(), photrans::ImprovedTransport::StepAlongHit(), and calib::Calibrator::SystematicUncertaintyScale().
|
inlineinherited |
Definition at line 474 of file RunHistory.h.
|
inlineinherited |
Definition at line 398 of file RunHistory.h.
References sr.
Referenced by zcl::FmmTrackerAna::endJob(), and mono::DataCheckMonopole::farm70_in_configuration().
|
inherited |
Definition at line 1413 of file RunHistory.cxx.
References nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_detector, gen_hdf5record::config, runNovaSAM::detId, novadaq::cnv::DetInfo::GetId(), MECModelEnuComparisons::i, novadaq::cnv::kFARDET, novadaq::cnv::kNEARDET, and nova::dbi::RunHistory::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().
|
inlineinherited |
Definition at line 484 of file RunHistory.h.
Referenced by skim::CellHitSkimmer::endRun(), and skim::POTSummary::event().
|
inlineinherited |
Definition at line 452 of file RunHistory.h.
Referenced by calib::AttenFit::beginRun(), calib::DCMTimingOffset::beginRun(), and geo::LiveGeometry::SetInstrumentation().
|
inherited |
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 nova::dbi::RunHistory::_dbList, allTimeWatchdog::endl, MECModelEnuComparisons::i, nova::dbi::RunHistory::LoadAllDetInfo(), nova::dbi::RunHistory::LoadHardwareInfo(), and LOG_ERROR.
Referenced by chaninfo::BadChanValidate::BadChansFromOM(), calib::PEResponse::beginRun(), comi::NearlineAna::beginRun(), comi::DataCheck::beginSubRun(), comi::DataCheck::endJob(), nova::dbi::RunHistory::GetFEB(), geo::LiveGeometry::GetRHInfo(), chaninfo::BadChanList::NBadInSubRun(), and geo::LiveGeometry::SetInstrumentation().
|
inlineinherited |
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().
|
inherited |
Definition at line 2072 of file RunHistory.cxx.
References nova::dbi::RunHistory::_detector, nova::dbi::RunHistory::_dqSRInfo, nova::dbi::DQSubrunInfo::_flag, nova::dbi::RunHistory::_gotDQSubrunInfo, nova::dbi::DQSubrunInfo::_miprate, nova::dbi::DQSubrunInfo::_ngooddb, nova::dbi::DQSubrunInfo::_numslc, nova::dbi::DQSubrunInfo::_run, nova::dbi::RunHistory::_runNumber, nova::dbi::DQSubrunInfo::_subrun, nova::dbi::DQSubrunInfo::_trkfrac, nova::dbi::RunHistory::_verbosity, nova::dbi::DQSubrunInfo::_version, MECModelEnuComparisons::i, and string.
|
inherited |
Definition at line 1927 of file RunHistory.cxx.
References nova::dbi::RunHistory::_detId, geo::OfflineChan::Cell(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getInstance(), and geo::OfflineChan::Plane().
Referenced by nova::dbi::RunHistory::GetGain(), nova::dbi::RunHistory::GetPixelGain(), and nova::dbi::RunHistory::GetPixelGains().
|
inherited |
Definition at line 1884 of file RunHistory.cxx.
References nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_detId, nova::dbi::RunHistory::DiBlock::dcm, APDHVSetting::feb, nova::dbi::RunHistory::DCM::feb, nova::dbi::RunHistory::DCM::febMask, daqchannelmap::DAQChannelMap::getDCM(), daqchannelmap::DAQChannelMap::getDiBlock(), nova::dbi::RunHistory::GetDiBlock(), daqchannelmap::DAQChannelMap::getFEB(), daqchannelmap::DAQChannelMap::getInstance(), nova::dbi::RunHistory::FEB::hasAPD, nova::dbi::RunHistory::DiBlock::hasNoAPDs, nova::dbi::RunHistory::FEB::isEnabled, nova::dbi::RunHistory::LoadAPDSettings(), num, and nova::dbi::RunHistory::DCM::position.
|
inherited |
Definition at line 1951 of file RunHistory.cxx.
References nova::dbi::RunHistory::_detId, geo::OfflineChan::Cell(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getInstance(), and geo::OfflineChan::Plane().
|
inherited |
Definition at line 1939 of file RunHistory.cxx.
References APDHVSetting::feb, nova::dbi::RunHistory::FEB::gain, and nova::dbi::RunHistory::GetFEB().
|
inherited |
Definition at line 632 of file RunHistory.cxx.
References nova::dbi::RunHistory::_abort, nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_detId, nova::dbi::RunHistory::_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, nova::dbi::RunHistory::LoadDAQRunHistory(), nova::dbi::RunHistory::LoadFEBMasks(), nova::dbi::RunHistory::LoadHardwareInfo(), nova::dbi::RunHistory::LoadPedestals(), and geo::OfflineChan::Plane().
Referenced by rsim::IFPGAAlgorithm::FetchThresholds(), and chaninfo::BadChanList::IsBadUncached().
|
inherited |
Definition at line 669 of file RunHistory.cxx.
References nova::dbi::RunHistory::_abort, nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_detId, nova::dbi::RunHistory::_diblockIndex, febshutoff_auto::dcm, APDHVSetting::feb, daqchannelmap::DAQChannelMap::getDCM(), daqchannelmap::DAQChannelMap::getDiBlock(), daqchannelmap::DAQChannelMap::getFEB(), daqchannelmap::DAQChannelMap::getInstance(), daqchannelmap::DAQChannelMap::getPixel(), makeTrainCVSamples::int, nova::dbi::RunHistory::LoadDAQRunHistory(), nova::dbi::RunHistory::LoadFEBMasks(), nova::dbi::RunHistory::LoadHardwareInfo(), nova::dbi::RunHistory::LoadPedestals(), and nova::dbi::RunHistory::LoadPixelMasks().
|
inherited |
Definition at line 1974 of file RunHistory.cxx.
References nova::dbi::RunHistory::_detId, geo::OfflineChan::Cell(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getInstance(), and geo::OfflineChan::Plane().
|
inherited |
Definition at line 1961 of file RunHistory.cxx.
References nova::dbi::RunHistory::_detId, APDHVSetting::feb, nova::dbi::RunHistory::GetFEB(), daqchannelmap::DAQChannelMap::getInstance(), daqchannelmap::DAQChannelMap::getPixel(), and nova::dbi::RunHistory::FEB::pixelGain.
|
inherited |
Definition at line 1997 of file RunHistory.cxx.
References nova::dbi::RunHistory::_detId, geo::OfflineChan::Cell(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getInstance(), and geo::OfflineChan::Plane().
|
inherited |
Definition at line 1985 of file RunHistory.cxx.
References APDHVSetting::feb, nova::dbi::RunHistory::GetFEB(), and nova::dbi::RunHistory::FEB::pixelGain.
|
inherited |
Definition at line 2057 of file RunHistory.cxx.
References nova::dbi::RunHistory::_detId, nova::dbi::RunHistory::_gotPixelInfo, geo::OfflineChan::Cell(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getInstance(), nova::dbi::RunHistory::LoadPixelInfo(), geo::OfflineChan::Plane(), and dump_to_simple_cpp::threshold.
|
inherited |
Definition at line 2008 of file RunHistory.cxx.
References nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_detId, nova::dbi::RunHistory::_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, nova::dbi::RunHistory::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 nova::dbi::RunHistory::_currentSR, nova::dbi::RunHistory::_getDiBlockMaskFromCondb, nova::dbi::RunHistory::_gotGoodDiBlockMask, nova::dbi::RunHistory::_subrunList, allTimeWatchdog::endl, nova::dbi::RunHistory::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(), preBeginRun(), preBeginSubrun(), and caf::CAFMaker::produce().
|
inherited |
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 nova::dbi::RunHistory::_detId, geo::OfflineChan::Cell(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getInstance(), and geo::OfflineChan::Plane().
Referenced by chaninfo::BadChanList::IsBadUncached().
|
inherited |
Definition at line 1772 of file RunHistory.cxx.
References nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_detId, nova::dbi::RunHistory::_gotHardwareInfo, nova::dbi::RunHistory::_runNumber, nova::dbi::RunHistory::_useMasking, febshutoff_auto::dcm, daqchannelmap::DAQChannelMap::getDCM(), daqchannelmap::DAQChannelMap::getDiBlock(), daqchannelmap::DAQChannelMap::getFEB(), daqchannelmap::DAQChannelMap::getInstance(), MECModelEnuComparisons::i, nova::dbi::RunHistory::IsGoodDiBlock(), nova::dbi::RunHistory::LoadHardwareInfo(), and num.
|
inherited |
Definition at line 2185 of file RunHistory.cxx.
References nova::dbi::RunHistory::_badChan, febshutoff_auto::chan, MECModelEnuComparisons::i, and confusionMatrixTree::t.
|
inherited |
Definition at line 1874 of file RunHistory.cxx.
References nova::dbi::RunHistory::_detId, geo::OfflineChan::Cell(), daqchannelmap::DAQChannelMap::encodeDChan(), daqchannelmap::DAQChannelMap::encodeLChan(), daqchannelmap::DAQChannelMap::getInstance(), and geo::OfflineChan::Plane().
|
inherited |
Definition at line 1834 of file RunHistory.cxx.
References nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_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, nova::dbi::RunHistory::LoadPixelInfo(), and num.
|
inherited |
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 nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_detector, runNovaSAM::detId, novadaq::cnv::DetInfo::GetId(), MECModelEnuComparisons::i, novadaq::cnv::kFARDET, novadaq::cnv::kNEARDET, nova::dbi::RunHistory::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 nova::dbi::RunHistory::_currentSR, nova::dbi::RunHistory::_getDiBlockMaskFromCondb, nova::dbi::RunHistory::_subrunList, nova::dbi::RunHistory::_useMasking, allTimeWatchdog::endl, nova::dbi::RunHistory::LoadGoodDiBlockMask(), LOG_WARNING, and x1.
Referenced by nova::dbi::RunHistory::BuildMC(), nova::dbi::RunHistory::HasAPD(), nova::dbi::RunHistory::LoadHardwareInfo(), nova::dbi::RunHistory::NAnalysisChannels(), nova::dbi::RunHistory::NAnalysisDiBlocks(), and chaninfo::BadChanList::NBadInSubRun().
|
inherited |
Definition at line 354 of file RunHistory.cxx.
References nova::dbi::RunHistory::_detId, nova::dbi::RunHistory::_fdRHCRunStart, nova::dbi::RunHistory::_fdRHCRunStop, nova::dbi::RunHistory::_ndRHCRunStart, nova::dbi::RunHistory::_ndRHCRunStop, nova::dbi::RunHistory::_runNumber, om::cerr, allTimeWatchdog::endl, MECModelEnuComparisons::i, novadaq::cnv::kFARDET, and novadaq::cnv::kNEARDET.
Referenced by ifdb::IFDBSpillInfo::produce().
|
inlineinherited |
Definition at line 349 of file RunHistory.h.
Referenced by nova::dbi::RunHistory::GetDiBlock().
|
inherited |
Definition at line 1070 of file RunHistory.cxx.
References nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_detector, nova::dbi::RunHistory::_gCfgId, nova::dbi::RunHistory::_gotAPDSettings, nova::dbi::RunHistory::_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, nova::dbi::RunHistory::LoadDAQRunHistory(), nova::dbi::RunHistory::LoadHardwareInfo(), LOG_WARNING, nova::dbi::RunHistory::MapHardwareToLocation(), num, string, APDHVSetting::temp, nova::dbi::RunHistory::FEB::tempEnabled, and nova::dbi::RunHistory::FEB::temperature.
Referenced by nova::dbi::RunHistory::GetFEB().
|
inherited |
|
inherited |
Definition at line 1551 of file RunHistory.cxx.
References nova::dbi::RunHistory::_abort, nova::dbi::RunHistory::_abortIfMissingRunInDB, nova::dbi::RunHistory::_bnevbList, nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_detector, nova::dbi::RunHistory::_diblockIndex, nova::dbi::RunHistory::_failedToFindRun, nova::dbi::RunHistory::_gCfgId, nova::dbi::RunHistory::_gotDAQRunHistory, nova::dbi::RunHistory::_isMC, nova::dbi::RunHistory::_nActiveChannels, nova::dbi::RunHistory::_nDCMs, nova::dbi::RunHistory::_nsubrun, nova::dbi::RunHistory::_partition, nova::dbi::RunHistory::_runNumber, nova::dbi::RunHistory::_runType, nova::dbi::RunHistory::_tEnd, nova::dbi::RunHistory::_timeParsing, nova::dbi::RunHistory::_timeQueries, nova::dbi::RunHistory::_tStart, nova::dbi::RunHistory::_verbosity, nova::dbi::RunHistory::DCM::appname, nova::dbi::RunHistory::BNEVB::appname, b, nova::dbi::RunHistory::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(), nova::dbi::RunHistory::GetPedestal(), nova::dbi::RunHistory::LoadAPDSettings(), nova::dbi::RunHistory::LoadFEBMasks(), nova::dbi::RunHistory::LoadFEBMasksFromDAQDB(), nova::dbi::RunHistory::LoadHardwareInfo(), nova::dbi::RunHistory::LoadPedestals(), nova::dbi::RunHistory::LoadPixelInfo(), nova::dbi::RunHistory::LoadPixelMasks(), nova::dbi::RunHistory::NAnalysisChannels(), nova::dbi::RunHistory::NAnalysisDiBlocks(), nova::dbi::RunHistory::SubrunTStart(), nova::dbi::RunHistory::SubrunTStop(), nova::dbi::RunHistory::TStart(), and nova::dbi::RunHistory::TStop().
|
inherited |
Definition at line 1214 of file RunHistory.cxx.
References nova::dbi::RunHistory::_dataEpoch, nova::dbi::RunHistory::_detector, nova::dbi::RunHistory::_gotDataEpoch, nova::dbi::RunHistory::_runNumber, nova::dbi::RunHistory::_timeParsing, nova::dbi::RunHistory::_timeQueries, nova::dbi::RunHistory::_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.
|
inherited |
Definition at line 399 of file RunHistory.cxx.
|
inherited |
Definition at line 785 of file RunHistory.cxx.
References nova::dbi::RunHistory::_abort, nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_detector, nova::dbi::RunHistory::_gotFEBMasks, nova::dbi::RunHistory::_runNumber, nova::dbi::RunHistory::_timeParsing, nova::dbi::RunHistory::_timeQueries, nova::dbi::RunHistory::_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, nova::dbi::RunHistory::LoadDAQRunHistory(), nova::dbi::RunHistory::LoadHardwareInfo(), LOG_ERROR, LOG_INFO, LOG_WARNING, check_grl::row, and confusionMatrixTree::t.
Referenced by nova::dbi::RunHistory::GetPedestal(), nova::dbi::RunHistory::LoadPedestals(), and nova::dbi::RunHistory::LoadPixelMasks().
|
inherited |
Definition at line 853 of file RunHistory.cxx.
References nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_detector, nova::dbi::RunHistory::_gCfgId, nova::dbi::RunHistory::_gotFEBMasks, nova::dbi::RunHistory::_gotPixelInfo, nova::dbi::RunHistory::_nTotalChannels, nova::dbi::RunHistory::_nTotalFEBs, febshutoff_auto::dcm, allTimeWatchdog::endl, dbutils::daqconfig::PixelEnableMasks::getFEBEnableMask(), dbutils::daqconfig::PixelEnableMasks::hasValidData(), MECModelEnuComparisons::i, calib::j, nova::dbi::RunHistory::LoadDAQRunHistory(), nova::dbi::RunHistory::LoadHardwareInfo(), LOG_INFO, and string.
|
inherited |
Definition at line 1273 of file RunHistory.cxx.
References nova::dbi::RunHistory::_abort, nova::dbi::RunHistory::_analysisDiBlockMasking, nova::dbi::RunHistory::_customMask, nova::dbi::RunHistory::_customMasking, nova::dbi::RunHistory::_dbMaskTag, nova::dbi::RunHistory::_detector, nova::dbi::RunHistory::_getDiBlockMaskFromCondb, nova::dbi::RunHistory::_gotGoodDiBlockMask, nova::dbi::RunHistory::_runNumber, nova::dbi::RunHistory::_subrunList, nova::dbi::RunHistory::_timeParsing, nova::dbi::RunHistory::_timeQueries, nova::dbi::RunHistory::_useMasking, nova::dbi::RunHistory::_verbosity, nova::dbi::RunHistory::ApplyAnalysisDiBlockMask(), om::cerr, nova::dbi::Row::Col(), runNovaSAM::detId, novadaq::cnv::DetInfo::DetNameOk(), nova::dbi::RunHistory::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 nova::dbi::RunHistory::GoodDiBlockMask(), and nova::dbi::RunHistory::IsGoodDiBlock().
|
inherited |
Definition at line 412 of file RunHistory.cxx.
References nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_detector, nova::dbi::RunHistory::_diblockIndex, nova::dbi::RunHistory::_gotHardwareInfo, nova::dbi::RunHistory::_nInstalledAPDs, nova::dbi::RunHistory::_nRetryLoads, nova::dbi::RunHistory::_timeQueries, nova::dbi::RunHistory::_tStart, nova::dbi::RunHistory::_useMasking, nova::dbi::RunHistory::_verbosity, om::cerr, febshutoff_auto::dcm, runNovaSAM::detId, novadaq::cnv::DetInfo::DetNameOk(), geo2elec::diblock, allTimeWatchdog::endl, APDHVSetting::feb, novadaq::cnv::DetInfo::GetId(), MECModelEnuComparisons::i, nova::dbi::RunHistory::IsGoodDiBlock(), novadaq::cnv::kFARDET, nova::dbi::kHardwareTable, novadaq::cnv::kNEARDET, nova::dbi::RunHistory::LoadDAQRunHistory(), LOG_ERROR, LOG_INFO, febshutoff_auto::query, and string.
Referenced by nova::dbi::RunHistory::GetConfiguration(), nova::dbi::RunHistory::GetDiBlock(), nova::dbi::RunHistory::GetPedestal(), nova::dbi::RunHistory::HasAPD(), nova::dbi::RunHistory::IsDiBlockFullyInstrumented(), nova::dbi::RunHistory::LoadAPDSettings(), nova::dbi::RunHistory::LoadFEBMasks(), nova::dbi::RunHistory::LoadFEBMasksFromDAQDB(), nova::dbi::RunHistory::LoadPedestals(), nova::dbi::RunHistory::LoadPixelInfo(), nova::dbi::RunHistory::LoadPixelMasks(), nova::dbi::RunHistory::NAnalysisChannels(), nova::dbi::RunHistory::NAnalysisDiBlocks(), nova::dbi::RunHistory::NDCMs(), and nova::dbi::RunHistory::NLiveDCMs().
|
inherited |
Definition at line 541 of file RunHistory.cxx.
References nova::dbi::RunHistory::_abort, nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_detector, nova::dbi::RunHistory::_gotPedestals, nova::dbi::RunHistory::_runNumber, nova::dbi::RunHistory::_timeParsing, nova::dbi::RunHistory::_timeQueries, nova::dbi::RunHistory::_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, nova::dbi::RunHistory::LoadDAQRunHistory(), nova::dbi::RunHistory::LoadFEBMasks(), nova::dbi::RunHistory::LoadHardwareInfo(), nova::dbi::RunHistory::LoadPixelMasks(), LOG_ERROR, LOG_INFO, LOG_WARNING, NDAPDHVSetting::plane, check_grl::row, confusionMatrixTree::t, geo::OfflineChan::ToDBValidityChan(), and x1.
Referenced by nova::dbi::RunHistory::GetPedestal().
|
inherited |
Definition at line 903 of file RunHistory.cxx.
References nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_detector, nova::dbi::RunHistory::_gCfgId, nova::dbi::RunHistory::_gotPixelInfo, nova::dbi::RunHistory::_nRetryLoads, nova::dbi::RunHistory::_nTotalChannels, nova::dbi::RunHistory::_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, nova::dbi::RunHistory::LoadDAQRunHistory(), nova::dbi::RunHistory::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(), nova::dbi::RunHistory::GetThreshold(), and nova::dbi::RunHistory::IsCooled().
|
inherited |
Definition at line 709 of file RunHistory.cxx.
References nova::dbi::RunHistory::_abort, nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_detector, nova::dbi::RunHistory::_gotPixelMasks, nova::dbi::RunHistory::_runNumber, nova::dbi::RunHistory::_timeParsing, nova::dbi::RunHistory::_timeQueries, nova::dbi::RunHistory::_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, nova::dbi::RunHistory::LoadDAQRunHistory(), nova::dbi::RunHistory::LoadFEBMasks(), nova::dbi::RunHistory::LoadHardwareInfo(), LOG_ERROR, LOG_INFO, LOG_WARNING, check_grl::row, and confusionMatrixTree::t.
Referenced by nova::dbi::RunHistory::GetPedestal(), and nova::dbi::RunHistory::LoadPedestals().
|
inherited |
Definition at line 1511 of file RunHistory.cxx.
References nova::dbi::RunHistory::_avgpot, nova::dbi::RunHistory::_detector, nova::dbi::RunHistory::_gotPOT, nova::dbi::RunHistory::_npot, nova::dbi::RunHistory::_runNumber, nova::dbi::RunHistory::_timeParsing, nova::dbi::RunHistory::_timeQueries, nova::dbi::RunHistory::_verbosity, om::cerr, novadaq::cnv::DetInfo::DetNameOk(), and allTimeWatchdog::endl.
|
inlineinherited |
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 nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_subrunList, MECModelEnuComparisons::i, nova::dbi::RunHistory::IsGoodDiBlock(), nova::dbi::RunHistory::LoadDAQRunHistory(), nova::dbi::RunHistory::LoadHardwareInfo(), and sr.
Referenced by caf::CAFMaker::produce().
Definition at line 256 of file RunHistory.cxx.
References nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_subrunList, MECModelEnuComparisons::i, nova::dbi::RunHistory::IsGoodDiBlock(), nova::dbi::RunHistory::LoadDAQRunHistory(), nova::dbi::RunHistory::LoadHardwareInfo(), and sr.
|
inlineinherited |
Definition at line 413 of file RunHistory.h.
|
inlineinherited |
|
inherited |
Definition at line 235 of file RunHistory.cxx.
References nova::dbi::RunHistory::_gotHardwareInfo, nova::dbi::RunHistory::_nDCMs, and nova::dbi::RunHistory::LoadHardwareInfo().
Referenced by chaninfo::BadChanValidate::BadChansFromOM(), and caf::CAFMaker::FillSpillVars().
|
inlineinherited |
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().
|
inlineinherited |
Definition at line 404 of file RunHistory.h.
References getGoodRuns4SAM::subrun.
|
inherited |
Definition at line 243 of file RunHistory.cxx.
References nova::dbi::RunHistory::_dbList, nova::dbi::RunHistory::_gotHardwareInfo, febshutoff_auto::dcm, MECModelEnuComparisons::i, calib::j, and nova::dbi::RunHistory::LoadHardwareInfo().
Referenced by nova::dbi::RunHistory::Dump(), and mono::DataCheckMonopole::endSubRun().
|
inlineinherited |
|
inlineinherited |
Definition at line 467 of file RunHistory.h.
|
inlineinherited |
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().
|
inlineinherited |
Definition at line 403 of file RunHistory.h.
|
inlineinherited |
|
inherited |
Definition at line 2147 of file RunHistory.cxx.
References nova::dbi::RunHistory::_chanInfo, febshutoff_auto::chan, MECModelEnuComparisons::i, and confusionMatrixTree::t.
|
inlineinherited |
Definition at line 68 of file RunHistory_service.cc.
References art::Run::beginTime(), nova::dbi::RunHistory::Detector(), ds::DetectorService::DetId(), nova::dbi::RunHistory::DiBlockMaskToString(), allTimeWatchdog::endl, fAbort, fAbortIfMissingRunInDB, art::Handle< T >::failedToGet(), fAnalysisDiBlockMasking, fCalHitLabel, fCustomMask, fCustomMasking, fFakeRunNumber, fTimeQueries, fUseMasking, art::DataViewImpl::getByLabel(), novadaq::cnv::DetInfo::GetId(), nova::dbi::RunHistory::GoodDiBlockMask(), MECModelEnuComparisons::i, nova::dbi::kDataOnly, novadaq::cnv::kFARDET, nova::dbi::kMCOnly, nova::dbi::kNDataType, novadaq::cnv::kNEARDET, LOG_DEBUG, LOG_INFO, LOG_WARNING, lem_server::mask, art::Run::run(), nova::dbi::RunHistory::SetAbort(), nova::dbi::RunHistory::SetAbortIfMissingRunInDB(), nova::dbi::RunHistory::SetAnalysisDiBlockMasking(), nova::dbi::RunHistory::SetCurrentSubrun(), nova::dbi::RunHistory::SetCustomMask(), nova::dbi::RunHistory::SetDataType(), nova::dbi::RunHistory::SetDetector(), nova::dbi::RunHistory::SetGoodDiBlockMask(), nova::dbi::RunHistory::SetIfAnyMasking(), nova::dbi::RunHistory::SetIfCustomMasking(), nova::dbi::RunHistory::SetRunNumber(), nova::dbi::RunHistory::SetTimeParsing(), nova::dbi::RunHistory::SetTimeQueries(), art::Timestamp::timeHigh(), art::Timestamp::timeLow(), and Munits::year.
Referenced by RunHistoryService().
void nova::dbi::RunHistoryService::preBeginSubrun | ( | const art::SubRun & | subrun | ) |
Definition at line 187 of file RunHistory_service.cc.
References nova::dbi::RunHistory::_getDiBlockMaskFromCondb, DEFINE_ART_SERVICE, nova::dbi::RunHistory::Detector(), nova::dbi::RunHistory::DiBlockMaskToString(), allTimeWatchdog::endl, fAbort, art::Handle< T >::failedToGet(), fCalHitLabel, fCustomMasking, art::DataViewImpl::getByLabel(), novadaq::cnv::DetInfo::GetId(), nova::dbi::RunHistory::GoodDiBlockMask(), novadaq::cnv::kFARDET, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING, lem_server::mask, nova::dbi::RunHistory::RunNumber(), nova::dbi::RunHistory::SetCurrentSubrun(), nova::dbi::RunHistory::SetSubrunDiBlockMask(), and art::SubRun::subRun().
Referenced by RunHistoryService().
|
inherited |
Definition at line 2121 of file RunHistory.cxx.
References nova::dbi::RunHistory::_chanInfo, geo::OfflineChan::Cell(), febshutoff_auto::chan, om::cout, allTimeWatchdog::endl, it, calib::j, and geo::OfflineChan::Plane().
void nova::dbi::RunHistoryService::reconfigure | ( | const fhicl::ParameterSet & | pset | ) |
Definition at line 45 of file RunHistory_service.cc.
References nova::dbi::RunHistory::_dbMaskTag, nova::dbi::RunHistory::_getDiBlockMaskFromCondb, fAbort, fAbortIfMissingRunInDB, fAnalysisDiBlockMasking, fCalHitLabel, fCustomMask, fCustomMasking, fFakeRunNumber, fTimeQueries, fUseMasking, fhicl::ParameterSet::get(), nova::dbi::RunHistory::SetFDRHCRunStart(), nova::dbi::RunHistory::SetFDRHCRunStop(), nova::dbi::RunHistory::SetGainSettingTag(), nova::dbi::RunHistory::SetNDRHCRunStart(), nova::dbi::RunHistory::SetNDRHCRunStop(), nova::dbi::RunHistory::SetVerbosity(), and string.
Referenced by RunHistoryService().
|
inlineinherited |
Definition at line 374 of file RunHistory.h.
Referenced by chaninfo::BadChanList::LoadNewData(), chaninfo::BadChanList::NBadInSubRun(), calib::Calibrator::postBeginRun(), and preBeginSubrun().
|
inlineinherited |
Definition at line 379 of file RunHistory.h.
|
inlineinherited |
|
inlineinherited |
Definition at line 450 of file RunHistory.h.
Referenced by preBeginRun().
|
inlineinherited |
set from fcl: do we want to use the analysis rules when we mask (not for custom masking)?
Definition at line 364 of file RunHistory.h.
References MakeMiniprodValidationCuts::f.
Referenced by preBeginRun().
|
inlineinherited |
|
inherited |
Definition at line 2135 of file RunHistory.cxx.
References nova::dbi::RunHistory::_chanInfo, febshutoff_auto::chan, nova::dbi::ChanInfo_t::coinc, nova::dbi::ChanInfo_t::occ, confusionMatrixTree::t, and nova::dbi::ChanInfo_t::tstart.
|
inlineinherited |
set from fcl: what is our custom mask?
Definition at line 366 of file RunHistory.h.
References MECModelEnuComparisons::i.
Referenced by preBeginRun().
|
inlineinherited |
Definition at line 448 of file RunHistory.h.
References makeHTMLView::dt.
Referenced by CondenseRunList(), and preBeginRun().
|
inherited |
Definition at line 305 of file RunHistory.cxx.
References nova::dbi::RunHistory::_dbhost, nova::dbi::RunHistory::_dbname, nova::dbi::RunHistory::_dbport, nova::dbi::RunHistory::_dbuser, and drop_table::user.
|
private |
|
private |
|
inlineinherited |
Definition at line 470 of file RunHistory.h.
Definition at line 358 of file RunHistory.h.
References r().
Referenced by reconfigure().
Definition at line 359 of file RunHistory.h.
References r().
Referenced by reconfigure().
|
inlineinherited |
Definition at line 473 of file RunHistory.h.
References getGoodRuns4SAM::tag.
Referenced by reconfigure().
|
inlineinherited |
Definition at line 367 of file RunHistory.h.
References MakeMiniprodValidationCuts::f.
Referenced by CondenseRunList().
Definition at line 408 of file RunHistory.h.
References MECModelEnuComparisons::i, and getGoodRuns4SAM::subrun.
Referenced by preBeginRun().
|
inlineinherited |
set from fcl: do we want to use any masking at all? If no, other masking options irrelevant
Definition at line 363 of file RunHistory.h.
References MakeMiniprodValidationCuts::f.
Referenced by CondenseRunList(), and preBeginRun().
|
inlineinherited |
set from fcl: do we want to use a custom mask?
Definition at line 365 of file RunHistory.h.
References MakeMiniprodValidationCuts::f.
Referenced by CondenseRunList(), and preBeginRun().
|
inherited |
Definition at line 2175 of file RunHistory.cxx.
References nova::dbi::RunHistory::_badChan, b, febshutoff_auto::chan, nova::dbi::BadChan_t::isBad, confusionMatrixTree::t, and nova::dbi::BadChan_t::tstart.
Definition at line 356 of file RunHistory.h.
References r().
Referenced by reconfigure().
Definition at line 357 of file RunHistory.h.
References r().
Referenced by reconfigure().
Definition at line 370 of file RunHistory.h.
References m, lem_server::mask, and string.
Referenced by preBeginSubrun().
|
inlineinherited |
Definition at line 362 of file RunHistory.h.
References MakeMiniprodValidationCuts::f.
Referenced by preBeginRun().
|
inlineinherited |
Definition at line 361 of file RunHistory.h.
References MakeMiniprodValidationCuts::f.
Referenced by preBeginRun().
Definition at line 478 of file RunHistory.h.
References MECModelEnuComparisons::i.
Referenced by reconfigure().
|
inherited |
Definition at line 2193 of file RunHistory.cxx.
References nova::dbi::RunHistory::_nsubrun, nova::dbi::RunHistory::_subrunList, nova::dbi::RunHistory::LoadDAQRunHistory(), and nova::dbi::RunHistory::TStart().
|
inherited |
Definition at line 2201 of file RunHistory.cxx.
References nova::dbi::RunHistory::_nsubrun, nova::dbi::RunHistory::_subrunList, nova::dbi::RunHistory::LoadDAQRunHistory(), and nova::dbi::RunHistory::TStop().
|
inherited |
Definition at line 2209 of file RunHistory.cxx.
References nova::dbi::RunHistory::_tStart, nova::dbi::RunHistory::LoadDAQRunHistory(), confusionMatrixTree::t, and nova::dbi::Util::TimeAsStringToTime_t().
Referenced by CondenseRunList(), calib::Calibrator::EnsureTimingCacheVldTime(), plotTime(), photrans::ImprovedTransport::StepAlongHit(), nova::dbi::RunHistory::SubrunTStart(), and calib::Calibrator::SystematicUncertaintyScale().
|
inlineinherited |
|
inherited |
Definition at line 2220 of file RunHistory.cxx.
References nova::dbi::RunHistory::_tEnd, nova::dbi::RunHistory::LoadDAQRunHistory(), string, confusionMatrixTree::t, and nova::dbi::Util::TimeAsStringToTime_t().
Referenced by CondenseRunList(), calib::Calibrator::EnsureTimingCacheVldTime(), plotTime(), and nova::dbi::RunHistory::SubrunTStop().