#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 18 of file HcalIndexLookup.h.
|
inline |
Definition at line 23 of file HcalIndexLookup.h.
References add(), clear(), diffTreeTool::index, and sort().
void HcalIndexLookup::add | ( | unsigned | transformedId, |
unsigned | index | ||
) |
Definition at line 34 of file HcalIndexLookup.cc.
References data_, Exception, InvalidIndex, and sorted_.
Referenced by HcalIndexLookup(), 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 Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), HcalIndexLookup(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().
|
inline |
Definition at line 40 of file HcalIndexLookup.h.
References data_, find(), and largestIndex().
Referenced by Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().
unsigned HcalIndexLookup::find | ( | unsigned | detId | ) | const |
Definition at line 42 of file HcalIndexLookup.cc.
References data_, end, Exception, InvalidIndex, cond::persistency::search(), sorted_, and mitigatedMETSequence_cff::U.
Referenced by BeautifulSoup.Tag::__getattr__(), empty(), BeautifulSoup.Tag::firstText(), HcalItemCollById< HFPhase1PMTData >::getIndex(), and HcalItemArrayCollById< Item, N >::getIndex().
bool HcalIndexLookup::hasDuplicateIds | ( | ) |
Definition at line 20 of file HcalIndexLookup.cc.
References data_, plotBeamSpotDB::first, mps_fire::i, and sort().
Referenced by HcalItemArrayCollById< Item, N >::HcalItemArrayCollById(), HcalItemCollById< HFPhase1PMTData >::HcalItemCollById(), load(), reserve(), and save().
unsigned HcalIndexLookup::largestIndex | ( | ) | const |
Definition at line 60 of file HcalIndexLookup.cc.
References data_, mps_fire::i, InvalidIndex, and edm::second().
Referenced by empty(), HcalItemArrayCollById< Item, N >::HcalItemArrayCollById(), and HcalItemCollById< HFPhase1PMTData >::HcalItemCollById().
|
inlineprivate |
Definition at line 75 of file HcalIndexLookup.h.
References Exception, hasDuplicateIds(), and sorted_.
Referenced by MatrixToProcess.MatrixToProcess::getProcess(), and MatrixToProcess.MatrixToProcess::listAll().
|
inline |
|
inline |
Definition at line 53 of file HcalIndexLookup.h.
References data_, and sorted_.
|
inline |
Definition at line 31 of file HcalIndexLookup.h.
References data_, and hasDuplicateIds().
|
inlineprivate |
Definition at line 66 of file HcalIndexLookup.h.
References Exception, hasDuplicateIds(), and sorted_.
Referenced by Vispa.Main.TabController.TabController::allowClose(), Vispa.Main.TabController.TabController::checkModificationTimestamp(), and 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 11 of file HcalIndexLookup.cc.
References data_, and sorted_.
Referenced by hasDuplicateIds(), and HcalIndexLookup().
|
friend |
Definition at line 63 of file HcalIndexLookup.h.
|
private |
Definition at line 60 of file HcalIndexLookup.h.
Referenced by add(), clear(), empty(), find(), hasDuplicateIds(), largestIndex(), operator==(), reserve(), 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 61 of file HcalIndexLookup.h.
Referenced by add(), clear(), find(), load(), operator==(), save(), and sort().