Go to the documentation of this file. 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_
std::vector< uint32_t > group_
void setGroup(const unsigned linearChannel, const unsigned groupNum)
void load(Archive &ar, const unsigned)
bool operator!=(const HBHEChannelGroups &r) const
void save(Archive &ar, const unsigned) const
friend class boost::serialization::access
bool operator==(const HBHEChannelGroups &r) const
unsigned getGroup(const unsigned linearChannel) const
HBHEChannelGroups(const unsigned *data, const unsigned len)
const uint32_t * groupData() const
char data[epos_bytes_allocation]
unsigned largestGroupNumber() const