LArSoft
v06_85_00
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... | |
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 Attributes | |
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 19 of file DetPedestalRetrievalAlg.cxx.
lariov::DetPedestalRetrievalAlg::DetPedestalRetrievalAlg | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 32 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::Update(), lariov::SIOVElectronicsCalibProvider::Update(), Update(), and lariov::SIOVChannelStatusProvider::Update().
|
inlineinherited |
Definition at line 60 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
Referenced by lariov::SIOVPmtGainProvider::Update(), lariov::SIOVElectronicsCalibProvider::Update(), Update(), and lariov::SIOVChannelStatusProvider::Update().
|
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 167 of file DetPedestalRetrievalAlg.cxx.
References fData.
Referenced by PedMean(), PedMeanErr(), PedRms(), and PedRmsErr().
|
override |
Definition at line 171 of file DetPedestalRetrievalAlg.cxx.
References Pedestal().
|
override |
Definition at line 179 of file DetPedestalRetrievalAlg.cxx.
References Pedestal().
|
override |
Definition at line 175 of file DetPedestalRetrievalAlg.cxx.
References Pedestal().
|
override |
Definition at line 183 of file DetPedestalRetrievalAlg.cxx.
References Pedestal().
|
overridevirtual |
Reconfigure function called by fhicl constructor.
Reimplemented from lariov::DatabaseRetrievalAlg.
Definition at line 38 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 134 of file DetPedestalRetrievalAlg.cxx.
References lariov::DatabaseRetrievalAlg::Begin(), lariov::DatabaseRetrievalAlg::End(), fData, fDataSource, lariov::DatabaseRetrievalAlg::fFolder, pmtana::mean(), and lariov::DatabaseRetrievalAlg::UpdateFolder().
Referenced by lariov::SIOVDetPedestalService::PreProcessEvent().
|
inlineinherited |
Return true if fFolder is successfully updated.
Definition at line 49 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
Referenced by lariov::SIOVPmtGainProvider::Update(), lariov::SIOVElectronicsCalibProvider::Update(), Update(), and lariov::SIOVChannelStatusProvider::Update().
|
inlineinherited |
Get connection information.
Definition at line 54 of file DatabaseRetrievalAlg.h.
References lariov::DatabaseRetrievalAlg::fFolder.
|
private |
Definition at line 89 of file DetPedestalRetrievalAlg.h.
Referenced by DetPedestalRetrievalAlg(), Pedestal(), Reconfigure(), and Update().
|
private |
Definition at line 87 of file DetPedestalRetrievalAlg.h.
Referenced by Reconfigure(), and Update().
|
protectedinherited |
Definition at line 65 of file DatabaseRetrievalAlg.h.
Referenced by lariov::DatabaseRetrievalAlg::Begin(), lariov::DatabaseRetrievalAlg::End(), lariov::DatabaseRetrievalAlg::FolderName(), lariov::DatabaseRetrievalAlg::Reconfigure(), lariov::DatabaseRetrievalAlg::Tag(), lariov::SIOVPmtGainProvider::Update(), lariov::SIOVElectronicsCalibProvider::Update(), Update(), lariov::SIOVChannelStatusProvider::Update(), lariov::DatabaseRetrievalAlg::UpdateFolder(), and lariov::DatabaseRetrievalAlg::URL().
|
static |
Definition at line 81 of file DetPedestalRetrievalAlg.h.
|
static |
Definition at line 83 of file DetPedestalRetrievalAlg.h.
|
static |
Definition at line 79 of file DetPedestalRetrievalAlg.h.