LArSoft
v07_13_02
Liquid Argon Software toolkit - http://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 17 of file SIOVElectronicsCalibProvider.cxx.
References Reconfigure().
|
inlineinherited |
Get Timestamp information.
Definition at line 59 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
Referenced by lariov::SIOVPmtGainProvider::DBUpdate(), DBUpdate(), lariov::DetPedestalRetrievalAlg::DBUpdate(), and lariov::SIOVChannelStatusProvider::DBUpdate().
|
private |
Do actual database updates.
Definition at line 126 of file SIOVElectronicsCalibProvider.cxx.
References fEventTimeStamp.
Referenced by ElectronicsCalibObject(), and Update().
|
private |
Definition at line 133 of file SIOVElectronicsCalibProvider.cxx.
References lariov::DatabaseRetrievalAlg::Begin(), lariov::DatabaseRetrievalAlg::End(), fCurrentTimeStamp, fData, fDataSource, lariov::DatabaseRetrievalAlg::fFolder, and lariov::DatabaseRetrievalAlg::UpdateFolder().
const ElectronicsCalib & lariov::SIOVElectronicsCalibProvider::ElectronicsCalibObject | ( | DBChannelID_t | ch | ) | const |
Retrieve electronics calibration information.
Definition at line 176 of file SIOVElectronicsCalibProvider.cxx.
References DBUpdate(), and fData.
Referenced by ExtraInfo(), Gain(), GainErr(), ShapingTime(), and ShapingTimeErr().
|
inlineinherited |
Definition at line 60 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
Referenced by lariov::SIOVPmtGainProvider::DBUpdate(), DBUpdate(), lariov::DetPedestalRetrievalAlg::DBUpdate(), and lariov::SIOVChannelStatusProvider::DBUpdate().
|
override |
Definition at line 197 of file SIOVElectronicsCalibProvider.cxx.
References ElectronicsCalibObject().
|
inlineinherited |
Definition at line 55 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
|
override |
Definition at line 181 of file SIOVElectronicsCalibProvider.cxx.
References ElectronicsCalibObject().
|
override |
Definition at line 185 of file SIOVElectronicsCalibProvider.cxx.
References ElectronicsCalibObject().
|
overridevirtual |
Reconfigure function called by fhicl constructor.
Reimplemented from lariov::DatabaseRetrievalAlg.
Definition at line 25 of file SIOVElectronicsCalibProvider.cxx.
References geo::GeometryCore::begin_wire_id(), geo::GeometryCore::end_wire_id(), fData, fDataSource, file, fhicl::ParameterSet::get(), geo::GeometryCore::PlaneWireToChannel(), lariov::DatabaseRetrievalAlg::Reconfigure(), and tmp.
Referenced by SIOVElectronicsCalibProvider().
|
override |
Definition at line 189 of file SIOVElectronicsCalibProvider.cxx.
References ElectronicsCalibObject().
|
override |
Definition at line 193 of file SIOVElectronicsCalibProvider.cxx.
References ElectronicsCalibObject().
|
inlineinherited |
Definition at line 56 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
bool lariov::SIOVElectronicsCalibProvider::Update | ( | DBTimeStamp_t | ts | ) |
Update Snapshot and inherited DBFolder if using database. Return true if updated.
Definition at line 118 of file SIOVElectronicsCalibProvider.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 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 111 of file SIOVElectronicsCalibProvider.cxx.
References fEventTimeStamp.
Referenced by lariov::SIOVElectronicsCalibService::PreProcessEvent().
|
inlineinherited |
Get connection information.
Definition at line 54 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
|
mutableprivate |
Definition at line 76 of file SIOVElectronicsCalibProvider.h.
Referenced by DBUpdate().
|
mutableprivate |
Definition at line 80 of file SIOVElectronicsCalibProvider.h.
Referenced by DBUpdate(), ElectronicsCalibObject(), and Reconfigure().
|
private |
Definition at line 78 of file SIOVElectronicsCalibProvider.h.
Referenced by DBUpdate(), and Reconfigure().
|
private |
Definition at line 75 of file SIOVElectronicsCalibProvider.h.
Referenced by DBUpdate(), Update(), and UpdateTimeStamp().
|
protectedinherited |
Definition at line 65 of file DatabaseRetrievalAlg.h.
Referenced by lariov::DatabaseRetrievalAlg::Begin(), lariov::SIOVPmtGainProvider::DBUpdate(), 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().