LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Retrieves information: electronics calibrations, specifically gain and shaping time. More...
#include "SIOVElectronicsCalibProvider.h"
Public Member Functions | |
SIOVElectronicsCalibProvider (fhicl::ParameterSet const &p) | |
Constructors. More... | |
void | Reconfigure (fhicl::ParameterSet const &p) override |
Reconfigure function called by fhicl constructor. More... | |
void | UpdateTimeStamp (DBTimeStamp_t ts) |
Update event time stamp. More... | |
bool | Update (DBTimeStamp_t ts) |
Update Snapshot and inherited DBFolder if using database. Return true if updated. More... | |
const ElectronicsCalib & | ElectronicsCalibObject (DBChannelID_t ch) const |
Retrieve electronics calibration information. More... | |
float | Gain (DBChannelID_t ch) const override |
float | GainErr (DBChannelID_t ch) const override |
float | ShapingTime (DBChannelID_t ch) const override |
float | ShapingTimeErr (DBChannelID_t ch) const override |
CalibrationExtraInfo const & | ExtraInfo (DBChannelID_t ch) const override |
bool | UpdateFolder (DBTimeStamp_t ts) |
Return true if fFolder is successfully updated. More... | |
const std::string & | URL () const |
Get connection information. More... | |
const std::string & | FolderName () const |
const std::string & | Tag () const |
const IOVTimeStamp & | Begin () const |
Get Timestamp information. More... | |
const IOVTimeStamp & | End () const |
Protected Attributes | |
std::unique_ptr< DBFolder > | fFolder |
Private Member Functions | |
bool | DBUpdate () const |
Do actual database updates. More... | |
bool | DBUpdate (DBTimeStamp_t ts) const |
Private Attributes | |
DBTimeStamp_t | fEventTimeStamp |
DBTimeStamp_t | fCurrentTimeStamp |
DataSource::ds | fDataSource |
Snapshot< ElectronicsCalib > | fData |
Retrieves information: electronics calibrations, specifically gain and shaping time.
Definition at line 42 of file SIOVElectronicsCalibProvider.h.
lariov::SIOVElectronicsCalibProvider::SIOVElectronicsCalibProvider | ( | fhicl::ParameterSet const & | p | ) |
Constructors.
Definition at line 14 of file SIOVElectronicsCalibProvider.cxx.
References Reconfigure().
|
inlineinherited |
Get Timestamp information.
Definition at line 63 of file DatabaseRetrievalAlg.h.
Referenced by lariov::SIOVPmtGainProvider::DBUpdate(), DBUpdate(), lariov::DetPedestalRetrievalAlg::DBUpdate(), and lariov::SIOVChannelStatusProvider::DBUpdate().
|
private |
Do actual database updates.
Definition at line 132 of file SIOVElectronicsCalibProvider.cxx.
References fEventTimeStamp.
Referenced by ElectronicsCalibObject(), and Update().
|
private |
Definition at line 140 of file SIOVElectronicsCalibProvider.cxx.
References lariov::DatabaseRetrievalAlg::Begin(), lariov::DataSource::Database, lariov::DatabaseRetrievalAlg::End(), fCurrentTimeStamp, fData, fDataSource, lariov::DatabaseRetrievalAlg::fFolder, lariov::ElectronicsCalib::SetExtraInfo(), lariov::ElectronicsCalib::SetGain(), lariov::ElectronicsCalib::SetGainErr(), lariov::ElectronicsCalib::SetShapingTime(), lariov::ElectronicsCalib::SetShapingTimeErr(), and lariov::DatabaseRetrievalAlg::UpdateFolder().
const ElectronicsCalib & lariov::SIOVElectronicsCalibProvider::ElectronicsCalibObject | ( | DBChannelID_t | ch | ) | const |
Retrieve electronics calibration information.
Definition at line 184 of file SIOVElectronicsCalibProvider.cxx.
References DBUpdate(), and fData.
Referenced by ExtraInfo(), Gain(), GainErr(), ShapingTime(), and ShapingTimeErr().
|
inlineinherited |
Definition at line 64 of file DatabaseRetrievalAlg.h.
Referenced by lariov::SIOVPmtGainProvider::DBUpdate(), DBUpdate(), lariov::DetPedestalRetrievalAlg::DBUpdate(), and lariov::SIOVChannelStatusProvider::DBUpdate().
|
override |
Definition at line 211 of file SIOVElectronicsCalibProvider.cxx.
References ElectronicsCalibObject(), and lariov::ElectronicsCalib::ExtraInfo().
|
inlineinherited |
Definition at line 59 of file DatabaseRetrievalAlg.h.
|
override |
Definition at line 191 of file SIOVElectronicsCalibProvider.cxx.
References ElectronicsCalibObject(), and lariov::ElectronicsCalib::Gain().
|
override |
Definition at line 196 of file SIOVElectronicsCalibProvider.cxx.
References ElectronicsCalibObject(), and lariov::ElectronicsCalib::GainErr().
|
overridevirtual |
Reconfigure function called by fhicl constructor.
Reimplemented from lariov::DatabaseRetrievalAlg.
Definition at line 23 of file SIOVElectronicsCalibProvider.cxx.
References lariov::DataSource::Database, lariov::DataSource::Default, fData, fDataSource, file, lariov::DataSource::File, fhicl::ParameterSet::get(), geo::GeometryCore::Iterate(), lariov::IOVTimeStamp::MaxTimeStamp(), geo::GeometryCore::PlaneWireToChannel(), lariov::DatabaseRetrievalAlg::Reconfigure(), lariov::ChData::SetChannel(), lariov::ElectronicsCalib::SetExtraInfo(), lariov::ElectronicsCalib::SetGain(), lariov::ElectronicsCalib::SetGainErr(), lariov::ElectronicsCalib::SetShapingTime(), lariov::ElectronicsCalib::SetShapingTimeErr(), lariov::IOVTimeStamp::SetStamp(), lariov::IOVTimeStamp::Stamp(), lariov::IOVTimeStamp::SubStamp(), and tmp.
Referenced by SIOVElectronicsCalibProvider().
|
override |
Definition at line 201 of file SIOVElectronicsCalibProvider.cxx.
References ElectronicsCalibObject(), and lariov::ElectronicsCalib::ShapingTime().
|
override |
Definition at line 206 of file SIOVElectronicsCalibProvider.cxx.
References ElectronicsCalibObject(), and lariov::ElectronicsCalib::ShapingTimeErr().
|
inlineinherited |
Definition at line 60 of file DatabaseRetrievalAlg.h.
bool lariov::SIOVElectronicsCalibProvider::Update | ( | DBTimeStamp_t | ts | ) |
Update Snapshot and inherited DBFolder if using database. Return true if updated.
Definition at line 123 of file SIOVElectronicsCalibProvider.cxx.
References DBUpdate(), and fEventTimeStamp.
|
inlineinherited |
Return true if fFolder is successfully updated.
Definition at line 55 of file DatabaseRetrievalAlg.h.
Referenced by lariov::SIOVPmtGainProvider::DBUpdate(), DBUpdate(), lariov::DetPedestalRetrievalAlg::DBUpdate(), and lariov::SIOVChannelStatusProvider::DBUpdate().
void lariov::SIOVElectronicsCalibProvider::UpdateTimeStamp | ( | DBTimeStamp_t | ts | ) |
Update event time stamp.
Definition at line 114 of file SIOVElectronicsCalibProvider.cxx.
References fEventTimeStamp.
Referenced by lariov::SIOVElectronicsCalibService::PreProcessEvent().
|
inlineinherited |
Get connection information.
Definition at line 58 of file DatabaseRetrievalAlg.h.
|
mutableprivate |
Definition at line 75 of file SIOVElectronicsCalibProvider.h.
Referenced by DBUpdate().
|
mutableprivate |
Definition at line 79 of file SIOVElectronicsCalibProvider.h.
Referenced by DBUpdate(), ElectronicsCalibObject(), and Reconfigure().
|
private |
Definition at line 77 of file SIOVElectronicsCalibProvider.h.
Referenced by DBUpdate(), and Reconfigure().
|
private |
Definition at line 74 of file SIOVElectronicsCalibProvider.h.
Referenced by DBUpdate(), Update(), and UpdateTimeStamp().
|
protectedinherited |
Definition at line 67 of file DatabaseRetrievalAlg.h.
Referenced by lariov::SIOVPmtGainProvider::DBUpdate(), DBUpdate(), lariov::DetPedestalRetrievalAlg::DBUpdate(), lariov::SIOVChannelStatusProvider::DBUpdate(), and lariov::DatabaseRetrievalAlg::Reconfigure().