Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoCaloTools
MetaCollections
interface
CaloRecHitMetaCollectionFast.h
Go to the documentation of this file.
1
#ifndef RECOCALOTOOLS_METACOLLECTIONS_CALORECHITMETACOLLECTIONFAST_H
2
#define RECOCALOTOOLS_METACOLLECTIONS_CALORECHITMETACOLLECTIONFAST_H 1
3
4
#include "
RecoCaloTools/MetaCollections/interface/CaloRecHitMetaCollectionV.h
"
5
#include <vector>
6
20
class
CaloRecHitMetaCollectionFast
:
public
CaloRecHitMetaCollectionV
{
21
public
:
22
typedef
CaloRecHitMetaCollectionV::Iterator
const_iterator
;
23
25
CaloRecHitMetaCollectionFast
();
27
CaloRecHitMetaCollectionFast
(
const
CaloRecHitMetaCollectionFast
&
c
);
29
virtual
~CaloRecHitMetaCollectionFast
() { }
30
31
33
void
add
(
const
CaloRecHit
*
hit
);
34
35
virtual
const_iterator
find
(
const
DetId
&
id
)
const
;
36
virtual
const
CaloRecHit
*
at
(
const_iterator::offset_type
i
)
const
;
37
38
private
:
39
void
sort
()
const
;
40
41
mutable
std::vector<const CaloRecHit*>
hits_
;
42
mutable
bool
dirty_
;
43
};
44
#endif
CaloRecHitMetaCollectionV
Definition:
CaloRecHitMetaCollectionV.h:18
i
int i
Definition:
DBlmapReader.cc:9
CaloRecHitMetaCollectionV::Iterator
Definition:
CaloRecHitMetaCollectionV.h:20
CaloRecHitMetaCollectionFast::hits_
std::vector< const CaloRecHit * > hits_
Definition:
CaloRecHitMetaCollectionFast.h:41
CaloRecHitMetaCollectionFast::sort
void sort() const
Definition:
CaloRecHitMetaCollectionFast.cc:46
CaloRecHitMetaCollectionFast::CaloRecHitMetaCollectionFast
CaloRecHitMetaCollectionFast()
create an empty collection
Definition:
CaloRecHitMetaCollectionFast.cc:4
CaloRecHitMetaCollectionFast::add
void add(const CaloRecHit *hit)
add an item to the collection
Definition:
CaloRecHitMetaCollectionFast.cc:8
CaloRecHit
Definition:
CaloRecHit.h:14
CaloRecHitMetaCollectionV.h
CaloRecHitMetaCollectionFast::~CaloRecHitMetaCollectionFast
virtual ~CaloRecHitMetaCollectionFast()
destructor
Definition:
CaloRecHitMetaCollectionFast.h:29
CaloRecHitMetaCollectionFast::dirty_
bool dirty_
Definition:
CaloRecHitMetaCollectionFast.h:42
CaloRecHitMetaCollectionFast::find
virtual const_iterator find(const DetId &id) const
find by id (default version is very slow unsorted find)
Definition:
CaloRecHitMetaCollectionFast.cc:25
DetId
Definition:
DetId.h:20
CaloRecHitMetaCollectionV::Iterator::offset_type
int offset_type
Definition:
CaloRecHitMetaCollectionV.h:27
trackerHits.c
tuple c
Definition:
trackerHits.py:26
hit
Definition:
SiStripHitEffFromCalibTree.cc:87
CaloRecHitMetaCollectionFast::const_iterator
CaloRecHitMetaCollectionV::Iterator const_iterator
Definition:
CaloRecHitMetaCollectionFast.h:22
CaloRecHitMetaCollectionFast
Definition:
CaloRecHitMetaCollectionFast.h:20
CaloRecHitMetaCollectionFast::at
virtual const CaloRecHit * at(const_iterator::offset_type i) const
get an item by index
Definition:
CaloRecHitMetaCollectionFast.cc:40
Generated for CMSSW Reference Manual by
1.8.5