25 HcalRawGains::Container::const_iterator
result = container.begin();
40 std::vector<Item>::const_iterator cell;
44 std::cerr <<
"HcalRawGains::getValues-> container is not sorted. Please sort it to search effectively" << std::endl;
47 if (cell ==
mItems.end() || cell->rawId() !=
target.rawId())
std::vector< DetId > getAllChannels() const
get list of all available channels
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
bool sorted() const
check if data are sorted
U second(std::pair< T, U > const &p)
std::vector< Item > Container
const HcalRawGain * getValues(DetId fId) const
get value
constexpr uint32_t rawId() const
get the raw id
HcalRawGain * addItem(DetId fId)
add new (empty) item
void addValues(DetId fId, const HcalRawGain &fValues)
fill values
void sort()
sort values by channelId