#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_, Exception, InvalidIndex, and sorted_.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
void HcalIndexLookup::clear | ( | void | ) |
Definition at line 5 of file HcalIndexLookup.cc.
References data_, and sorted_.
Referenced by BeautifulSoup.Tag::setString().
|
inline |
unsigned HcalIndexLookup::find | ( | unsigned | detId | ) | const |
Definition at line 36 of file HcalIndexLookup.cc.
References data_, end, Exception, InvalidIndex, cuda_std::lower_bound(), cond::persistency::search(), sorted_, and mitigatedMETSequence_cff::U.
Referenced by BeautifulSoup.Tag::__getattr__(), BeautifulSoup.Tag::firstText(), HcalItemCollById< HFPhase1PMTData >::getIndex(), and HcalItemArrayCollById< Item, N >::getIndex().
bool HcalIndexLookup::hasDuplicateIds | ( | ) |
Definition at line 17 of file HcalIndexLookup.cc.
References data_, dqmdumpme::first, mps_fire::i, and sort().
Referenced by HcalItemArrayCollById< Item, N >::HcalItemArrayCollById(), 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 HcalItemArrayCollById< Item, N >::HcalItemArrayCollById(), and 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_, 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(), HcalItemArrayCollById< Item, N >::HcalItemArrayCollById(), HcalItemCollById< HFPhase1PMTData >::HcalItemCollById(), and largestIndex().
|
private |
Definition at line 59 of file HcalIndexLookup.h.
Referenced by add(), clear(), find(), load(), operator==(), save(), and sort().