11 #include "UTIL/LCFixedObject.h"
13 #define PedestalNINTVals 2 // DAQ channel number and readout module ID here called channelID and readoutGroup
14 #define PedestalNFLOATVals 2 // Pedestal Value and Pedestal Width
15 #define PedestalNDOUBLEVals 0
22 typedef Pedestal LCPedestal;
32 class Pedestal :
public UTIL::LCFixedObject<PedestalNINTVals,PedestalNFLOATVals,PedestalNDOUBLEVals>
39 Pedestal(
int channelID,
int readoutGroup,
float pedestalValue,
float pedestalWidth);
43 Pedestal(std::pair<int,int> hardwareID,
float pedestalValue,
float pedestalWidth);
47 Pedestal(
int channelID,
int readoutGroup);
51 Pedestal(std::pair<int,int> hardwareID);
55 Pedestal(EVENT::LCObject* obj):UTIL::LCFixedObject<PedestalNINTVals,
57 PedestalNDOUBLEVals>(obj) { }
69 float getPedestalValue()
const;
70 float getPedestalWidth()
const;
72 void setPedestalValue(
float pedestalValue);
73 void setPedestalWidth(
float pedestalWidth);
75 static std::string getRevision();
76 static std::string getDefaultColName();
78 void print( std::ostream& os = std::cout )
const;
81 const std::string getTypeName()
const
83 return std::string(
"Pedestal");
85 const std::string getDataDescription()
const
87 return std::string(
"i:ChannelID,ModuleID,f:PedestalValue,PedestalWidth");
92 typedef std::pair<int, int> key_type;
94 key_type conditions_key()
const;
100 void setHardwareID(
int channelID,
int readoutGroup);
104 std::ostream &operator<<(std::ostream &os,
const Pedestal &p);
Class that combines information on pedestals for storage.
Definition: Pedestal.h:32
virtual ~Pedestal()
Important for memory handling.
Definition: Pedestal.cc:53
Pedestal(EVENT::LCObject *obj)
'Copy constructor' needed to interpret LCCollection read from file/database.
Definition: Pedestal.h:55
std::pair< int, int > getHardwareID() const
Returns a pair of integers of which the first element ist the channel ID and the second element the r...
Definition: Pedestal.cc:56
Pedestal(int channelID, int readoutGroup, float pedestalValue, float pedestalWidth)
Convenient constructor using to integers for channel / readout group.
Definition: Pedestal.cc:21