1 #ifndef MONPULSESHAPEDAT_H 2 #define MONPULSESHAPEDAT_H 24 throw(std::runtime_error(
"MonPulseShapeDat::setSamples: There should be 10 samples."));
29 }
else if (
gain == 6) {
31 }
else if (
gain == 12) {
34 throw(std::runtime_error(
"MonPulseShapeDat::setSamples: Gain should be 1, 6 or 12"));
41 }
else if (
gain == 6) {
43 }
else if (
gain == 12) {
46 throw(std::runtime_error(
"MonPulseShapeDat::getSamples: Gain should be 1, 6 or 12"));
std::string getTable() override
std::vector< float > m_samplesG1
std::vector< float > m_samplesG6
void setSamples(std::vector< float > &samples, int gain) noexcept(false)
void prepareWrite() noexcept(false) override
void fetchData(std::map< EcalLogicID, MonPulseShapeDat > *fillVec, MonRunIOV *iov) noexcept(false)
std::vector< float > m_samplesG12
std::vector< float > getSamples(int gain) const noexcept(false)
void writeDB(const EcalLogicID *ecid, const MonPulseShapeDat *item, MonRunIOV *iov) noexcept(false)
~MonPulseShapeDat() override