LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Retrieves channel information: pedestal and RMS. More...
#include "DetPedestalRetrievalAlg.h"
Public Member Functions | |
DetPedestalRetrievalAlg (const std::string &foldername, const std::string &url, const std::string &tag="") | |
Constructors. More... | |
DetPedestalRetrievalAlg (fhicl::ParameterSet const &p) | |
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 DetPedestal & | Pedestal (DBChannelID_t ch) const |
Retrieve pedestal information. More... | |
float | PedMean (DBChannelID_t ch) const override |
float | PedRms (DBChannelID_t ch) const override |
float | PedMeanErr (DBChannelID_t ch) const override |
float | PedRmsErr (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 |
Static Public Attributes | |
static constexpr unsigned int | NCOLUMNS = 5 |
static constexpr const char * | FIELD_NAMES [NCOLUMNS] = {"channel", "mean", "mean_err", "rms", "rms_err"} |
static constexpr const char * | FIELD_TYPES [NCOLUMNS] = {"unsigned int", "float", "float", "float", "float"} |
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< DetPedestal > | fData |
Retrieves channel information: pedestal and RMS.
Definition at line 54 of file DetPedestalRetrievalAlg.h.
lariov::DetPedestalRetrievalAlg::DetPedestalRetrievalAlg | ( | const std::string & | foldername, |
const std::string & | url, | ||
const std::string & | tag = "" |
||
) |
Constructors.
Definition at line 20 of file DetPedestalRetrievalAlg.cxx.
lariov::DetPedestalRetrievalAlg::DetPedestalRetrievalAlg | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 35 of file DetPedestalRetrievalAlg.cxx.
References Reconfigure().
|
inlineinherited |
Get Timestamp information.
Definition at line 59 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
Referenced by lariov::SIOVPmtGainProvider::DBUpdate(), lariov::SIOVElectronicsCalibProvider::DBUpdate(), DBUpdate(), and lariov::SIOVChannelStatusProvider::DBUpdate().
|
private |
Do actual database updates.
Definition at line 154 of file DetPedestalRetrievalAlg.cxx.
References fEventTimeStamp.
Referenced by Pedestal(), and Update().
|
private |
Definition at line 161 of file DetPedestalRetrievalAlg.cxx.
References lariov::DatabaseRetrievalAlg::Begin(), lariov::DatabaseRetrievalAlg::End(), fCurrentTimeStamp, fData, fDataSource, lariov::DatabaseRetrievalAlg::fFolder, pmtana::mean(), and lariov::DatabaseRetrievalAlg::UpdateFolder().
|
inlineinherited |
Definition at line 60 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
Referenced by lariov::SIOVPmtGainProvider::DBUpdate(), lariov::SIOVElectronicsCalibProvider::DBUpdate(), DBUpdate(), and lariov::SIOVChannelStatusProvider::DBUpdate().
|
inlineinherited |
Definition at line 55 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
const DetPedestal & lariov::DetPedestalRetrievalAlg::Pedestal | ( | DBChannelID_t | ch | ) | const |
Retrieve pedestal information.
Definition at line 203 of file DetPedestalRetrievalAlg.cxx.
References DBUpdate(), and fData.
Referenced by PedMean(), PedMeanErr(), PedRms(), and PedRmsErr().
|
override |
Definition at line 208 of file DetPedestalRetrievalAlg.cxx.
References Pedestal().
|
override |
Definition at line 216 of file DetPedestalRetrievalAlg.cxx.
References Pedestal().
|
override |
Definition at line 212 of file DetPedestalRetrievalAlg.cxx.
References Pedestal().
|
override |
Definition at line 220 of file DetPedestalRetrievalAlg.cxx.
References Pedestal().
|
overridevirtual |
Reconfigure function called by fhicl constructor.
Reimplemented from lariov::DatabaseRetrievalAlg.
Definition at line 41 of file DetPedestalRetrievalAlg.cxx.
References geo::GeometryCore::begin_wire_id(), geo::GeometryCore::end_wire_id(), fData, fDataSource, file, fhicl::ParameterSet::get(), geo::kCollection, geo::kInduction, geo::GeometryCore::PlaneWireToChannel(), lariov::DatabaseRetrievalAlg::Reconfigure(), geo::GeometryCore::SignalType(), and tmp.
Referenced by DetPedestalRetrievalAlg().
|
inlineinherited |
Definition at line 56 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
bool lariov::DetPedestalRetrievalAlg::Update | ( | DBTimeStamp_t | ts | ) |
Update Snapshot and inherited DBFolder if using database. Return true if updated.
Definition at line 146 of file DetPedestalRetrievalAlg.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(), lariov::SIOVElectronicsCalibProvider::DBUpdate(), DBUpdate(), and lariov::SIOVChannelStatusProvider::DBUpdate().
void lariov::DetPedestalRetrievalAlg::UpdateTimeStamp | ( | DBTimeStamp_t | ts | ) |
Update event time stamp.
Definition at line 139 of file DetPedestalRetrievalAlg.cxx.
References fEventTimeStamp.
Referenced by lariov::SIOVDetPedestalService::PreProcessEvent().
|
inlineinherited |
Get connection information.
Definition at line 54 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
|
mutableprivate |
Definition at line 98 of file DetPedestalRetrievalAlg.h.
Referenced by DBUpdate().
|
mutableprivate |
Definition at line 101 of file DetPedestalRetrievalAlg.h.
Referenced by DBUpdate(), DetPedestalRetrievalAlg(), Pedestal(), and Reconfigure().
|
private |
Definition at line 100 of file DetPedestalRetrievalAlg.h.
Referenced by DBUpdate(), and Reconfigure().
|
private |
Definition at line 97 of file DetPedestalRetrievalAlg.h.
Referenced by DBUpdate(), Update(), and UpdateTimeStamp().
|
protectedinherited |
Definition at line 65 of file DatabaseRetrievalAlg.h.
Referenced by lariov::DatabaseRetrievalAlg::Begin(), lariov::SIOVPmtGainProvider::DBUpdate(), lariov::SIOVElectronicsCalibProvider::DBUpdate(), DBUpdate(), lariov::SIOVChannelStatusProvider::DBUpdate(), lariov::DatabaseRetrievalAlg::End(), lariov::DatabaseRetrievalAlg::FolderName(), lariov::DatabaseRetrievalAlg::Reconfigure(), lariov::DatabaseRetrievalAlg::Tag(), lariov::DatabaseRetrievalAlg::UpdateFolder(), and lariov::DatabaseRetrievalAlg::URL().
|
static |
Definition at line 84 of file DetPedestalRetrievalAlg.h.
|
static |
Definition at line 86 of file DetPedestalRetrievalAlg.h.
|
static |
Definition at line 82 of file DetPedestalRetrievalAlg.h.