#include <HcalIndexLookup.h>
Public Member Functions | |
void | add (unsigned transformedId, unsigned index) |
void | clear () |
bool | empty () const |
unsigned | find (unsigned detId) const |
bool | hasDuplicateIds () |
HcalIndexLookup () | |
unsigned | largestIndex () const |
bool | operator!= (const HcalIndexLookup &r) const |
bool | operator== (const HcalIndexLookup &r) const |
void | reserve (const unsigned n) |
std::size_t | size () const |
void | sort () |
Static Public Attributes | |
static const unsigned | InvalidIndex = UINT_MAX |
Private Member Functions | |
template<class Archive > | |
void | load (Archive &ar, const unsigned) |
template<class Archive > | |
void | save (Archive &ar, const unsigned) const |
Private Attributes | |
std::vector< std::pair< uint32_t, uint32_t > > | data_ |
bool | sorted_ |
Friends | |
class | boost::serialization::access |
Definition at line 19 of file HcalIndexLookup.h.
|
inline |
Definition at line 23 of file HcalIndexLookup.h.
void HcalIndexLookup::add | ( | unsigned | transformedId, |
unsigned | index | ||
) |
Definition at line 29 of file HcalIndexLookup.cc.
References data_, hcalRecHitTable_cff::detId, Exception, InvalidIndex, and sorted_.
Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
void HcalIndexLookup::clear | ( | void | ) |
Definition at line 5 of file HcalIndexLookup.cc.
References data_, and sorted_.
|
inline |
Definition at line 40 of file HcalIndexLookup.h.
References data_.
unsigned HcalIndexLookup::find | ( | unsigned | detId | ) | const |
Definition at line 36 of file HcalIndexLookup.cc.
References data_, hcalRecHitTable_cff::detId, mps_fire::end, Exception, InvalidIndex, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, cond::persistency::search(), sorted_, and mitigatedMETSequence_cff::U.
Referenced by HcalItemCollById< HFPhase1PMTData >::getIndex().
bool HcalIndexLookup::hasDuplicateIds | ( | ) |
Definition at line 17 of file HcalIndexLookup.cc.
References data_, dqmdumpme::first, mps_fire::i, and sort().
Referenced by HcalItemCollById< HFPhase1PMTData >::HcalItemCollById(), load(), and save().
unsigned HcalIndexLookup::largestIndex | ( | ) | const |
Definition at line 54 of file HcalIndexLookup.cc.
References data_, mps_fire::i, InvalidIndex, and edm::second().
Referenced by HcalItemCollById< HFPhase1PMTData >::HcalItemCollById().
|
inlineprivate |
Definition at line 72 of file HcalIndexLookup.h.
References data_, Exception, hasDuplicateIds(), and sorted_.
Referenced by MatrixToProcess.MatrixToProcess::getProcess(), MatrixToProcess.MatrixToProcess::listAll(), and ConfigBuilder.ConfigBuilder::prepare_FILTER().
|
inline |
|
inline |
Definition at line 53 of file HcalIndexLookup.h.
References data_, alignCSCRings::r, and sorted_.
|
inline |
Definition at line 31 of file HcalIndexLookup.h.
References data_, and dqmiodumpmetadata::n.
|
inlineprivate |
Definition at line 64 of file HcalIndexLookup.h.
References data_, Exception, hasDuplicateIds(), and sorted_.
Referenced by SpecificationBuilder_cfi.Specification::saveAll().
|
inline |
Definition at line 39 of file HcalIndexLookup.h.
References data_.
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
void HcalIndexLookup::sort | ( | ) |
Definition at line 10 of file HcalIndexLookup.cc.
References data_, jetUpdater_cfi::sort, and sorted_.
Referenced by hasDuplicateIds().
|
friend |
Definition at line 61 of file HcalIndexLookup.h.
|
private |
Definition at line 58 of file HcalIndexLookup.h.
Referenced by add(), clear(), empty(), find(), hasDuplicateIds(), largestIndex(), load(), operator==(), reserve(), save(), size(), and sort().
|
static |
Definition at line 21 of file HcalIndexLookup.h.
Referenced by add(), find(), HcalItemCollById< HFPhase1PMTData >::HcalItemCollById(), and largestIndex().
|
private |
Definition at line 59 of file HcalIndexLookup.h.
Referenced by add(), clear(), find(), load(), operator==(), save(), and sort().