LArSoft
v09_90_00
Liquid Argon Software toolkit - https://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] |
static constexpr const char * | FIELD_TYPES [NCOLUMNS] |
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 58 of file DetPedestalRetrievalAlg.h.
lariov::DetPedestalRetrievalAlg::DetPedestalRetrievalAlg | ( | const std::string & | foldername, |
const std::string & | url, | ||
const std::string & | tag = "" |
||
) |
Constructors.
Definition at line 22 of file DetPedestalRetrievalAlg.cxx.
References fData, lariov::IOVTimeStamp::MaxTimeStamp(), lariov::IOVTimeStamp::SetStamp(), lariov::IOVTimeStamp::Stamp(), lariov::IOVTimeStamp::SubStamp(), and tmp.
lariov::DetPedestalRetrievalAlg::DetPedestalRetrievalAlg | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 37 of file DetPedestalRetrievalAlg.cxx.
References Reconfigure().
|
inlineinherited |
Get Timestamp information.
Definition at line 63 of file DatabaseRetrievalAlg.h.
Referenced by lariov::SIOVPmtGainProvider::DBUpdate(), lariov::SIOVElectronicsCalibProvider::DBUpdate(), DBUpdate(), and lariov::SIOVChannelStatusProvider::DBUpdate().
|
private |
Do actual database updates.
Definition at line 164 of file DetPedestalRetrievalAlg.cxx.
References fEventTimeStamp.
Referenced by Pedestal(), and Update().
|
private |
Definition at line 172 of file DetPedestalRetrievalAlg.cxx.
References lariov::DatabaseRetrievalAlg::Begin(), lariov::DataSource::Database, lariov::DatabaseRetrievalAlg::End(), fCurrentTimeStamp, fData, fDataSource, lariov::DatabaseRetrievalAlg::fFolder, pmtana::mean(), lariov::DetPedestal::SetPedMean(), lariov::DetPedestal::SetPedMeanErr(), lariov::DetPedestal::SetPedRms(), lariov::DetPedestal::SetPedRmsErr(), and lariov::DatabaseRetrievalAlg::UpdateFolder().
|
inlineinherited |
Definition at line 64 of file DatabaseRetrievalAlg.h.
Referenced by lariov::SIOVPmtGainProvider::DBUpdate(), lariov::SIOVElectronicsCalibProvider::DBUpdate(), DBUpdate(), and lariov::SIOVChannelStatusProvider::DBUpdate().
|
inlineinherited |
Definition at line 59 of file DatabaseRetrievalAlg.h.
const DetPedestal & lariov::DetPedestalRetrievalAlg::Pedestal | ( | DBChannelID_t | ch | ) | const |
Retrieve pedestal information.
Definition at line 219 of file DetPedestalRetrievalAlg.cxx.
References DBUpdate(), and fData.
Referenced by PedMean(), PedMeanErr(), PedRms(), and PedRmsErr().
|
override |
Definition at line 225 of file DetPedestalRetrievalAlg.cxx.
References Pedestal(), and lariov::DetPedestal::PedMean().
|
override |
Definition at line 235 of file DetPedestalRetrievalAlg.cxx.
References Pedestal(), and lariov::DetPedestal::PedMeanErr().
|
override |
Definition at line 230 of file DetPedestalRetrievalAlg.cxx.
References Pedestal(), and lariov::DetPedestal::PedRms().
|
override |
Definition at line 240 of file DetPedestalRetrievalAlg.cxx.
References Pedestal(), and lariov::DetPedestal::PedRmsErr().
|
overridevirtual |
Reconfigure function called by fhicl constructor.
Reimplemented from lariov::DatabaseRetrievalAlg.
Definition at line 44 of file DetPedestalRetrievalAlg.cxx.
References lariov::DataSource::Database, lariov::DataSource::Default, fData, fDataSource, file, lariov::DataSource::File, fhicl::ParameterSet::get(), geo::GeometryCore::Iterate(), geo::kCollection, geo::kInduction, lariov::IOVTimeStamp::MaxTimeStamp(), geo::GeometryCore::PlaneWireToChannel(), lariov::DatabaseRetrievalAlg::Reconfigure(), lariov::ChData::SetChannel(), lariov::DetPedestal::SetPedMean(), lariov::DetPedestal::SetPedMeanErr(), lariov::DetPedestal::SetPedRms(), lariov::DetPedestal::SetPedRmsErr(), lariov::IOVTimeStamp::SetStamp(), geo::GeometryCore::SignalType(), lariov::IOVTimeStamp::Stamp(), lariov::IOVTimeStamp::SubStamp(), and tmp.
Referenced by DetPedestalRetrievalAlg().
|
inlineinherited |
Definition at line 60 of file DatabaseRetrievalAlg.h.
bool lariov::DetPedestalRetrievalAlg::Update | ( | DBTimeStamp_t | ts | ) |
Update Snapshot and inherited DBFolder if using database. Return true if updated.
Definition at line 155 of file DetPedestalRetrievalAlg.cxx.
References DBUpdate(), and fEventTimeStamp.
|
inlineinherited |
Return true if fFolder is successfully updated.
Definition at line 55 of file DatabaseRetrievalAlg.h.
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 147 of file DetPedestalRetrievalAlg.cxx.
References fEventTimeStamp.
Referenced by lariov::SIOVDetPedestalService::PreProcessEvent().
|
inlineinherited |
Get connection information.
Definition at line 58 of file DatabaseRetrievalAlg.h.
|
mutableprivate |
Definition at line 106 of file DetPedestalRetrievalAlg.h.
Referenced by DBUpdate().
|
mutableprivate |
Definition at line 109 of file DetPedestalRetrievalAlg.h.
Referenced by DBUpdate(), DetPedestalRetrievalAlg(), Pedestal(), and Reconfigure().
|
private |
Definition at line 108 of file DetPedestalRetrievalAlg.h.
Referenced by DBUpdate(), and Reconfigure().
|
private |
Definition at line 105 of file DetPedestalRetrievalAlg.h.
Referenced by DBUpdate(), Update(), and UpdateTimeStamp().
|
protectedinherited |
Definition at line 67 of file DatabaseRetrievalAlg.h.
Referenced by lariov::SIOVPmtGainProvider::DBUpdate(), lariov::SIOVElectronicsCalibProvider::DBUpdate(), DBUpdate(), lariov::SIOVChannelStatusProvider::DBUpdate(), and lariov::DatabaseRetrievalAlg::Reconfigure().
|
static |
Definition at line 86 of file DetPedestalRetrievalAlg.h.
|
static |
Definition at line 91 of file DetPedestalRetrievalAlg.h.
|
static |
Definition at line 85 of file DetPedestalRetrievalAlg.h.