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 |
Public Member Functions inherited from lariov::DatabaseRetrievalAlg | |
DatabaseRetrievalAlg (const std::string &foldername, const std::string &url, const std::string &url2="", const std::string &tag="", bool usesqlite=false, bool testmode=false) | |
Constructors. More... | |
DatabaseRetrievalAlg (fhicl::ParameterSet const &p) | |
virtual | ~DatabaseRetrievalAlg () |
Default destructor. More... | |
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 |
Public Member Functions inherited from lariov::PmtGainProvider | |
virtual | ~PmtGainProvider ()=default |
virtual float | Gain (raw::ChannelID_t ch) const =0 |
Retrieve pmt gain information. More... | |
virtual float | GainErr (raw::ChannelID_t ch) const =0 |
virtual CalibrationExtraInfo const & | ExtraInfo (raw::ChannelID_t ch) const =0 |
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 |
Additional Inherited Members | |
Protected Attributes inherited from lariov::DatabaseRetrievalAlg | |
std::unique_ptr< DBFolder > | fFolder |
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.
|
private |
Do actual database updates.
Definition at line 112 of file SIOVPmtGainProvider.cxx.
|
private |
Definition at line 119 of file SIOVPmtGainProvider.cxx.
|
override |
Definition at line 170 of file SIOVPmtGainProvider.cxx.
|
override |
Definition at line 162 of file SIOVPmtGainProvider.cxx.
|
override |
Definition at line 166 of file SIOVPmtGainProvider.cxx.
const PmtGain & lariov::SIOVPmtGainProvider::PmtGainObject | ( | DBChannelID_t | ch | ) | const |
Retrieve gain information.
Definition at line 157 of file SIOVPmtGainProvider.cxx.
|
overridevirtual |
Reconfigure function called by fhicl constructor.
Reimplemented from lariov::DatabaseRetrievalAlg.
Definition at line 22 of file SIOVPmtGainProvider.cxx.
bool lariov::SIOVPmtGainProvider::Update | ( | DBTimeStamp_t | ts | ) |
Update Snapshot and inherited DBFolder if using database. Return true if updated.
Definition at line 104 of file SIOVPmtGainProvider.cxx.
void lariov::SIOVPmtGainProvider::UpdateTimeStamp | ( | DBTimeStamp_t | ts | ) |
Update event time stamp.
Definition at line 97 of file SIOVPmtGainProvider.cxx.
|
mutableprivate |
Definition at line 70 of file SIOVPmtGainProvider.h.
Definition at line 74 of file SIOVPmtGainProvider.h.
|
private |
Definition at line 72 of file SIOVPmtGainProvider.h.
|
private |
Definition at line 69 of file SIOVPmtGainProvider.h.