1 #ifndef HcalL1TriggerObjects_h
2 #define HcalL1TriggerObjects_h
16 #ifndef HCAL_COND_SUPPRESS_DEFAULT
24 if (fTag.size() > maxCharacters) {
25 throw cms::Exception(
"HcalL1TriggerObjects::setTagString: string exceeds array size");
27 strncpy(
mTag, fTag.c_str(), maxCharacters);
28 mTag[maxCharacters] =
'\0';
33 if (fAlgo.size() > maxCharacters) {
34 throw cms::Exception(
"HcalL1TriggerObjects::setAlgoString: string exceeds array size");
36 strncpy(
mAlgo, fAlgo.c_str(), maxCharacters);
37 mAlgo[maxCharacters] =
'\0';
static constexpr std::size_t charArraySize
HcalL1TriggerObjects(const HcalTopology *topo)
std::string getTagString() const
std::string myname() const override
std::string getAlgoString() const
#define COND_SERIALIZABLE
void setTagString(std::string const &fTag)
char mAlgo[charArraySize]
void setAlgoString(std::string const &fAlgo)
const HcalTopology * topo() const