14 #ifndef WEBDBI_DETPEDESTALRETRIEVALALG_H
15 #define WEBDBI_DETPEDESTALRETRIEVALALG_H
28 namespace fhicl {
class ParameterSet; }
62 const std::string& url,
63 const std::string& tag=
"");
68 void Reconfigure(fhicl::ParameterSet
const& p)
override;
86 = {
"channel",
"mean",
"mean_err",
"rms",
"rms_err"};
88 = {
"unsigned int",
"float",
"float",
"float",
"float"};
DBTimeStamp_t fEventTimeStamp
std::uint32_t DBChannelID_t
Class def header for a class Snapshot.
float PedMeanErr(DBChannelID_t ch) const override
std::uint64_t DBTimeStamp_t
bool Update(DBTimeStamp_t ts)
Update Snapshot and inherited DBFolder if using database. Return true if updated. ...
const DetPedestal & Pedestal(DBChannelID_t ch) const
Retrieve pedestal information.
static constexpr const char * FIELD_NAMES[NCOLUMNS]
bool DBUpdate() const
Do actual database updates.
static constexpr unsigned int NCOLUMNS
Class def header for a class DetPedestal.
DataSource::ds fDataSource
Retrieves channel information: pedestal and RMS.
DetPedestalRetrievalAlg(const std::string &foldername, const std::string &url, const std::string &tag="")
Constructors.
Snapshot< DetPedestal > fData
DBTimeStamp_t fCurrentTimeStamp
Class def header for a class DatabaseRetrievalAlg.
float PedRmsErr(DBChannelID_t ch) const override
float PedMean(DBChannelID_t ch) const override
float PedRms(DBChannelID_t ch) const override
static constexpr const char * FIELD_TYPES[NCOLUMNS]
void UpdateTimeStamp(DBTimeStamp_t ts)
Update event time stamp.
void Reconfigure(fhicl::ParameterSet const &p) override
Reconfigure function called by fhicl constructor.