1 #ifndef CondFormats_HcalObjects_HBHEChannelGroups_h_ 2 #define CondFormats_HcalObjects_HBHEChannelGroups_h_ 6 #include "boost/cstdint.hpp" 7 #include "boost/serialization/access.hpp" 8 #include "boost/serialization/vector.hpp" 26 "In HBHEChannelGroups constructor: invalid input data");
33 inline void setGroup(
const unsigned linearChannel,
const unsigned groupNum)
34 {
group_.at(linearChannel) = groupNum;}
42 inline unsigned getGroup(
const unsigned linearChannel)
const 43 {
return group_.at(linearChannel);}
48 const unsigned sz =
group_.size();
49 const uint32_t* dat = sz ? &
group_[0] : 0;
50 for (
unsigned i=0;
i<sz; ++
i)
61 {
return !(*
this ==
r);}
73 template<
class Archive>
74 inline void save(Archive & ar,
const unsigned )
const 77 "In HBHEChannelGroups::save: invalid data");
81 template<
class Archive>
82 inline void load(Archive & ar,
const unsigned )
86 "In HBHEChannelGroups::load: invalid data");
89 BOOST_SERIALIZATION_SPLIT_MEMBER()
94 #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
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)