#include <CaloRecHitMetaCollectionFast.h>
Public Types | |
typedef CaloRecHitMetaCollectionV::Iterator | const_iterator |
Public Types inherited from CaloRecHitMetaCollectionV | |
typedef Iterator | const_iterator |
Public Member Functions | |
void | add (const CaloRecHit *hit) |
add an item to the collection More... | |
virtual const CaloRecHit * | at (const_iterator::offset_type i) const |
get an item by index More... | |
CaloRecHitMetaCollectionFast () | |
create an empty collection More... | |
CaloRecHitMetaCollectionFast (const CaloRecHitMetaCollectionFast &c) | |
copy constructor More... | |
virtual const_iterator | find (const DetId &id) const |
find by id (default version is very slow unsorted find) More... | |
virtual | ~CaloRecHitMetaCollectionFast () |
destructor More... | |
Public Member Functions inherited from CaloRecHitMetaCollectionV | |
const_iterator | begin () const |
get the starting iterator More... | |
const_iterator | end () const |
get the ending iterator More... | |
unsigned int | size () const |
get the size of the collection More... | |
virtual | ~CaloRecHitMetaCollectionV () |
Private Member Functions | |
void | sort () const |
Private Attributes | |
bool | dirty_ |
std::vector< const CaloRecHit * > | hits_ |
Additional Inherited Members | |
Protected Member Functions inherited from CaloRecHitMetaCollectionV | |
CaloRecHitMetaCollectionV () | |
Protected Attributes inherited from CaloRecHitMetaCollectionV | |
unsigned int | size_ |
Implementation of CaloRecHitMetaCollectionV which internally stores a vector of const CaloRecHit pointers. Fast for access and relatively fast to build, but uses more memory than CaloRecHitMetaCollectionCompact.
Appropriate class for subcollections produced by selection algorithms.
Definition at line 20 of file CaloRecHitMetaCollectionFast.h.
Definition at line 22 of file CaloRecHitMetaCollectionFast.h.
CaloRecHitMetaCollectionFast::CaloRecHitMetaCollectionFast | ( | ) |
create an empty collection
Definition at line 4 of file CaloRecHitMetaCollectionFast.cc.
References dirty_.
CaloRecHitMetaCollectionFast::CaloRecHitMetaCollectionFast | ( | const CaloRecHitMetaCollectionFast & | c | ) |
copy constructor
|
inlinevirtual |
void CaloRecHitMetaCollectionFast::add | ( | const CaloRecHit * | hit | ) |
add an item to the collection
Definition at line 8 of file CaloRecHitMetaCollectionFast.cc.
References dirty_, hits_, and CaloRecHitMetaCollectionV::size_.
Referenced by CaloConeSelector::select(), and CaloDualConeSelector::select().
|
virtual |
get an item by index
Implements CaloRecHitMetaCollectionV.
Definition at line 40 of file CaloRecHitMetaCollectionFast.cc.
References dirty_, hits_, CaloRecHitMetaCollectionV::size_, and sort().
|
virtual |
find by id (default version is very slow unsorted find)
Reimplemented from CaloRecHitMetaCollectionV.
Definition at line 25 of file CaloRecHitMetaCollectionFast.cc.
References dirty_, CaloRecHitMetaCollectionV::end(), first, hits_, prof2calltree::last, and sort().
Referenced by BeautifulSoup.Tag::_invert(), and BeautifulSoup.PageElement::insert().
|
private |
Definition at line 46 of file CaloRecHitMetaCollectionFast.cc.
References dirty_, hits_, and python.multivaluedict::sort().
Referenced by at(), and find().
|
mutableprivate |
Definition at line 42 of file CaloRecHitMetaCollectionFast.h.
Referenced by add(), at(), CaloRecHitMetaCollectionFast(), find(), and sort().
|
mutableprivate |