LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Retrieves information: pmt gain. More...
#include "SIOVPmtGainProvider.h"
Public Member Functions | |
SIOVPmtGainProvider (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 PmtGain & | PmtGainObject (DBChannelID_t ch) const |
Retrieve gain information. More... | |
float | Gain (DBChannelID_t ch) const override |
float | GainErr (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< PmtGain > | fData |
Retrieves information: pmt gain.
Definition at line 38 of file SIOVPmtGainProvider.h.
lariov::SIOVPmtGainProvider::SIOVPmtGainProvider | ( | fhicl::ParameterSet const & | p | ) |
Constructors.
Definition at line 14 of file SIOVPmtGainProvider.cxx.
References Reconfigure().
|
inlineinherited |
Get Timestamp information.
Definition at line 63 of file DatabaseRetrievalAlg.h.
Referenced by DBUpdate(), lariov::SIOVElectronicsCalibProvider::DBUpdate(), lariov::DetPedestalRetrievalAlg::DBUpdate(), and lariov::SIOVChannelStatusProvider::DBUpdate().
|
private |
Do actual database updates.
Definition at line 118 of file SIOVPmtGainProvider.cxx.
References fEventTimeStamp.
Referenced by PmtGainObject(), and Update().
|
private |
Definition at line 126 of file SIOVPmtGainProvider.cxx.
References lariov::DatabaseRetrievalAlg::Begin(), lariov::DataSource::Database, lariov::DatabaseRetrievalAlg::End(), fCurrentTimeStamp, fData, fDataSource, lariov::DatabaseRetrievalAlg::fFolder, lariov::PmtGain::SetExtraInfo(), lariov::PmtGain::SetGain(), lariov::PmtGain::SetGainErr(), and lariov::DatabaseRetrievalAlg::UpdateFolder().
|
inlineinherited |
Definition at line 64 of file DatabaseRetrievalAlg.h.
Referenced by DBUpdate(), lariov::SIOVElectronicsCalibProvider::DBUpdate(), lariov::DetPedestalRetrievalAlg::DBUpdate(), and lariov::SIOVChannelStatusProvider::DBUpdate().
|
override |
Definition at line 182 of file SIOVPmtGainProvider.cxx.
References lariov::PmtGain::ExtraInfo(), and PmtGainObject().
|
inlineinherited |
Definition at line 59 of file DatabaseRetrievalAlg.h.
|
override |
Definition at line 172 of file SIOVPmtGainProvider.cxx.
References lariov::PmtGain::Gain(), and PmtGainObject().
|
override |
Definition at line 177 of file SIOVPmtGainProvider.cxx.
References lariov::PmtGain::GainErr(), and PmtGainObject().
const PmtGain & lariov::SIOVPmtGainProvider::PmtGainObject | ( | DBChannelID_t | ch | ) | const |
Retrieve gain information.
Definition at line 166 of file SIOVPmtGainProvider.cxx.
References DBUpdate(), and fData.
Referenced by ExtraInfo(), Gain(), and GainErr().
|
overridevirtual |
Reconfigure function called by fhicl constructor.
Reimplemented from lariov::DatabaseRetrievalAlg.
Definition at line 23 of file SIOVPmtGainProvider.cxx.
References lariov::DataSource::Database, lariov::DataSource::Default, fData, fDataSource, file, lariov::DataSource::File, fhicl::ParameterSet::get(), geo::GeometryCore::IsValidOpChannel(), lariov::IOVTimeStamp::MaxTimeStamp(), geo::GeometryCore::NOpDets(), lariov::DatabaseRetrievalAlg::Reconfigure(), lariov::ChData::SetChannel(), lariov::PmtGain::SetExtraInfo(), lariov::PmtGain::SetGain(), lariov::PmtGain::SetGainErr(), lariov::IOVTimeStamp::SetStamp(), lariov::IOVTimeStamp::Stamp(), lariov::IOVTimeStamp::SubStamp(), and tmp.
Referenced by SIOVPmtGainProvider().
|
inlineinherited |
Definition at line 60 of file DatabaseRetrievalAlg.h.
bool lariov::SIOVPmtGainProvider::Update | ( | DBTimeStamp_t | ts | ) |
Update Snapshot and inherited DBFolder if using database. Return true if updated.
Definition at line 109 of file SIOVPmtGainProvider.cxx.
References DBUpdate(), and fEventTimeStamp.
|
inlineinherited |
Return true if fFolder is successfully updated.
Definition at line 55 of file DatabaseRetrievalAlg.h.
Referenced by DBUpdate(), lariov::SIOVElectronicsCalibProvider::DBUpdate(), lariov::DetPedestalRetrievalAlg::DBUpdate(), and lariov::SIOVChannelStatusProvider::DBUpdate().
void lariov::SIOVPmtGainProvider::UpdateTimeStamp | ( | DBTimeStamp_t | ts | ) |
Update event time stamp.
Definition at line 101 of file SIOVPmtGainProvider.cxx.
References fEventTimeStamp.
Referenced by lariov::SIOVPmtGainService::PreProcessEvent().
|
inlineinherited |
Get connection information.
Definition at line 58 of file DatabaseRetrievalAlg.h.
|
mutableprivate |
Definition at line 68 of file SIOVPmtGainProvider.h.
Referenced by DBUpdate().
Definition at line 72 of file SIOVPmtGainProvider.h.
Referenced by DBUpdate(), PmtGainObject(), and Reconfigure().
|
private |
Definition at line 70 of file SIOVPmtGainProvider.h.
Referenced by DBUpdate(), and Reconfigure().
|
private |
Definition at line 67 of file SIOVPmtGainProvider.h.
Referenced by DBUpdate(), Update(), and UpdateTimeStamp().
|
protectedinherited |
Definition at line 67 of file DatabaseRetrievalAlg.h.
Referenced by DBUpdate(), lariov::SIOVElectronicsCalibProvider::DBUpdate(), lariov::DetPedestalRetrievalAlg::DBUpdate(), lariov::SIOVChannelStatusProvider::DBUpdate(), and lariov::DatabaseRetrievalAlg::Reconfigure().