DetPedestalProvider.h
Go to the documentation of this file.
1 /**
2  * \file DetPedestalProvider
3  *
4  * \brief Class def header for a class DetPedestalProvider
5  *
6  * @author eberly@slac.stanford.edu
7  */
8 
9 #ifndef DETPEDESTALPROVIDER_H
10 #define DETPEDESTALPROVIDER_H
11 
12 // LArSoft libraries
14 #include "larcoreobj/SimpleTypesAndConstants/RawTypes.h" // raw::ChannelID_t
15 
16 
17 namespace lariov {
18 
19  /**
20  \class DetPedestalProvider
21  Pure abstract interface class for retrieving detector pedestals.
22  Includes a feature to encourage database use: an Update method that can be used to update
23  an implementation's local state to ensure that the correct information is retrieved
24  */
26 
27  public:
28 
29  virtual ~DetPedestalProvider() = default;
30 
31  /// Retrieve pedestal information
32  virtual float PedMean(raw::ChannelID_t ch) const = 0;
33  virtual float PedRms(raw::ChannelID_t ch) const = 0;
34  virtual float PedMeanErr(raw::ChannelID_t ch) const = 0;
35  virtual float PedRmsErr(raw::ChannelID_t ch) const = 0;
36 
37  /* TODO DELME
38  /// Update local state of implementation
39  virtual bool Update(DBTimeStamp_t ts) = 0;
40  */
41  };
42 }//end namespace lariov
43 
44 #endif
virtual float PedRms(raw::ChannelID_t ch) const =0
An empty class that can't be copied nor moved.
Defines classes that can't be copied nor moved.
virtual float PedMeanErr(raw::ChannelID_t ch) const =0
virtual ~DetPedestalProvider()=default
Filters for channels, events, etc.
virtual float PedMean(raw::ChannelID_t ch) const =0
Retrieve pedestal information.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:28
virtual float PedRmsErr(raw::ChannelID_t ch) const =0