1 #ifndef MONPULSESHAPEDAT_H
2 #define MONPULSESHAPEDAT_H
22 inline void setSamples( std::vector<float> &samples,
int gain )
23 throw(std::runtime_error)
25 if (samples.size() != 10) {
26 throw(std::runtime_error(
"MonPulseShapeDat::setSamples: There should be 10 samples."));
31 }
else if (gain == 6) {
33 }
else if (gain == 12) {
36 throw(std::runtime_error(
"MonPulseShapeDat::setSamples: Gain should be 1, 6 or 12"));
41 throw(std::runtime_error)
45 }
else if (gain == 6) {
47 }
else if (gain == 12) {
50 throw(std::runtime_error(
"MonPulseShapeDat::getSamples: Gain should be 1, 6 or 12"));
56 throw(std::runtime_error);
59 throw(std::runtime_error);
62 throw(std::runtime_error);
std::vector< float > m_samplesG1
std::vector< float > getSamples(int gain) const
std::vector< float > m_samplesG6
void setSamples(std::vector< float > &samples, int gain)
std::vector< float > m_samplesG12
void fetchData(std::map< EcalLogicID, MonPulseShapeDat > *fillVec, MonRunIOV *iov)
void writeDB(const EcalLogicID *ecid, const MonPulseShapeDat *item, MonRunIOV *iov)