1 #ifndef CondFormats_HcalObjects_HBHEChannelGroups_h_
2 #define CondFormats_HcalObjects_HBHEChannelGroups_h_
6 #include "boost/serialization/access.hpp"
7 #include "boost/serialization/vector.hpp"
23 throw cms::Exception(
"In HBHEChannelGroups constructor: invalid input data");
30 inline void setGroup(
const unsigned linearChannel,
const unsigned groupNum) {
group_.at(linearChannel) = groupNum; }
37 inline unsigned getGroup(
const unsigned linearChannel)
const {
return group_.at(linearChannel); }
41 const unsigned sz =
group_.size();
42 const uint32_t*
dat = sz ? &
group_[0] :
nullptr;
43 for (
unsigned i = 0;
i < sz; ++
i)
61 template <
class Archive>
62 inline void save(Archive& ar,
const unsigned )
const {
68 template <
class Archive>
69 inline void load(Archive& ar,
const unsigned ) {
75 BOOST_SERIALIZATION_SPLIT_MEMBER()
80 #endif // CondFormats_HcalObjects_HBHEChannelGroups_h_
unsigned getGroup(const unsigned linearChannel) const
std::vector< uint32_t > group_
bool operator!=(const HBHEChannelGroups &r) const
void load(Archive &ar, const unsigned)
unsigned largestGroupNumber() const
void save(Archive &ar, const unsigned) const
bool operator==(const HBHEChannelGroups &r) const
static std::vector< std::string > checklist dat
const uint32_t * groupData() const
friend class boost::serialization::access
char data[epos_bytes_allocation]
HBHEChannelGroups(const unsigned *data, const unsigned len)
void setGroup(const unsigned linearChannel, const unsigned groupNum)