14 #ifndef WEBDBI_DETPEDESTALRETRIEVALALG_H 15 #define WEBDBI_DETPEDESTALRETRIEVALALG_H 24 #include "larevt/CalibrationDBI/Interface/CalibrationDBIFwd.h" 25 #include "larevt/CalibrationDBI/Interface/DetPedestalProvider.h" 63 const std::string& url,
64 const std::string& tag =
"");
72 void UpdateTimeStamp(DBTimeStamp_t ts);
75 bool Update(DBTimeStamp_t ts);
78 const DetPedestal& Pedestal(DBChannelID_t ch)
const;
79 float PedMean(DBChannelID_t ch)
const override;
80 float PedRms(DBChannelID_t ch)
const override;
81 float PedMeanErr(DBChannelID_t ch)
const override;
82 float PedRmsErr(DBChannelID_t ch)
const override;
85 static constexpr
unsigned int NCOLUMNS = 5;
86 static constexpr
const char* FIELD_NAMES[NCOLUMNS] = {
"channel",
91 static constexpr
const char* FIELD_TYPES[NCOLUMNS] = {
"unsigned int",
100 bool DBUpdate()
const;
101 bool DBUpdate(DBTimeStamp_t ts)
const;
DBTimeStamp_t fEventTimeStamp
Class def header for a class Snapshot.
bool Update(detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, PFPStruct &pfp)
Class def header for a class DetPedestal.
DataSource::ds fDataSource
Retrieves channel information: pedestal and RMS.
Snapshot< DetPedestal > fData
DBTimeStamp_t fCurrentTimeStamp
Class def header for a class DatabaseRetrievalAlg.
Filters for channels, events, etc.