LArSoft
v07_13_02
Liquid Argon Software toolkit - http://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 17 of file SIOVPmtGainProvider.cxx.
References Reconfigure().
|
inlineinherited |
Get Timestamp information.
Definition at line 59 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
Referenced by DBUpdate(), lariov::SIOVElectronicsCalibProvider::DBUpdate(), lariov::DetPedestalRetrievalAlg::DBUpdate(), and lariov::SIOVChannelStatusProvider::DBUpdate().
|
private |
Do actual database updates.
Definition at line 115 of file SIOVPmtGainProvider.cxx.
References fEventTimeStamp.
Referenced by PmtGainObject(), and Update().
|
private |
Definition at line 122 of file SIOVPmtGainProvider.cxx.
References lariov::DatabaseRetrievalAlg::Begin(), lariov::DatabaseRetrievalAlg::End(), fCurrentTimeStamp, fData, fDataSource, lariov::DatabaseRetrievalAlg::fFolder, and lariov::DatabaseRetrievalAlg::UpdateFolder().
|
inlineinherited |
Definition at line 60 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
Referenced by DBUpdate(), lariov::SIOVElectronicsCalibProvider::DBUpdate(), lariov::DetPedestalRetrievalAlg::DBUpdate(), and lariov::SIOVChannelStatusProvider::DBUpdate().
|
override |
Definition at line 173 of file SIOVPmtGainProvider.cxx.
References PmtGainObject().
|
inlineinherited |
Definition at line 55 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
|
override |
Definition at line 165 of file SIOVPmtGainProvider.cxx.
References PmtGainObject().
|
override |
Definition at line 169 of file SIOVPmtGainProvider.cxx.
References PmtGainObject().
const PmtGain & lariov::SIOVPmtGainProvider::PmtGainObject | ( | DBChannelID_t | ch | ) | const |
Retrieve gain information.
Definition at line 160 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 25 of file SIOVPmtGainProvider.cxx.
References fData, fDataSource, file, fhicl::ParameterSet::get(), geo::GeometryCore::IsValidOpChannel(), geo::GeometryCore::NOpDets(), lariov::DatabaseRetrievalAlg::Reconfigure(), and tmp.
Referenced by SIOVPmtGainProvider().
|
inlineinherited |
Definition at line 56 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
bool lariov::SIOVPmtGainProvider::Update | ( | DBTimeStamp_t | ts | ) |
Update Snapshot and inherited DBFolder if using database. Return true if updated.
Definition at line 107 of file SIOVPmtGainProvider.cxx.
References DBUpdate(), and fEventTimeStamp.
|
inlineinherited |
Return true if fFolder is successfully updated.
Definition at line 49 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
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 100 of file SIOVPmtGainProvider.cxx.
References fEventTimeStamp.
Referenced by lariov::SIOVPmtGainService::PreProcessEvent().
|
inlineinherited |
Get connection information.
Definition at line 54 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
|
mutableprivate |
Definition at line 70 of file SIOVPmtGainProvider.h.
Referenced by DBUpdate().
|
mutableprivate |
Definition at line 74 of file SIOVPmtGainProvider.h.
Referenced by DBUpdate(), PmtGainObject(), and Reconfigure().
|
private |
Definition at line 72 of file SIOVPmtGainProvider.h.
Referenced by DBUpdate(), and Reconfigure().
|
private |
Definition at line 69 of file SIOVPmtGainProvider.h.
Referenced by DBUpdate(), Update(), and UpdateTimeStamp().
|
protectedinherited |
Definition at line 65 of file DatabaseRetrievalAlg.h.
Referenced by lariov::DatabaseRetrievalAlg::Begin(), DBUpdate(), lariov::SIOVElectronicsCalibProvider::DBUpdate(), lariov::DetPedestalRetrievalAlg::DBUpdate(), lariov::SIOVChannelStatusProvider::DBUpdate(), lariov::DatabaseRetrievalAlg::End(), lariov::DatabaseRetrievalAlg::FolderName(), lariov::DatabaseRetrievalAlg::Reconfigure(), lariov::DatabaseRetrievalAlg::Tag(), lariov::DatabaseRetrievalAlg::UpdateFolder(), and lariov::DatabaseRetrievalAlg::URL().