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