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
18
class
CaloRecHitMetaCollectionFast
:
public
CaloRecHitMetaCollectionV
{
19
public
:
20
typedef
CaloRecHitMetaCollectionV::Iterator
const_iterator
;
21
23
CaloRecHitMetaCollectionFast
();
25
CaloRecHitMetaCollectionFast
(
const
CaloRecHitMetaCollectionFast
&
c
);
27
virtual
~CaloRecHitMetaCollectionFast
() { }
28
29
31
void
add
(
const
CaloRecHit
*
hit
);
32
33
virtual
const_iterator
find
(
const
DetId
&
id
)
const
;
34
virtual
const
CaloRecHit
*
at
(
const_iterator::offset_type
i
)
const
;
35
36
private
:
37
void
sort
()
const
;
38
39
mutable
std::vector<const CaloRecHit*>
hits_
;
40
mutable
bool
dirty_
;
41
};
42
#endif
CaloRecHitMetaCollectionV
Definition:
CaloRecHitMetaCollectionV.h:16
i
int i
Definition:
DBlmapReader.cc:9
CaloRecHitMetaCollectionV::Iterator
Definition:
CaloRecHitMetaCollectionV.h:18
CaloRecHitMetaCollectionFast::hits_
std::vector< const CaloRecHit * > hits_
Definition:
CaloRecHitMetaCollectionFast.h:39
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:12
CaloRecHitMetaCollectionV.h
CaloRecHitMetaCollectionFast::~CaloRecHitMetaCollectionFast
virtual ~CaloRecHitMetaCollectionFast()
destructor
Definition:
CaloRecHitMetaCollectionFast.h:27
CaloRecHitMetaCollectionFast::dirty_
bool dirty_
Definition:
CaloRecHitMetaCollectionFast.h:40
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:18
CaloRecHitMetaCollectionV::Iterator::offset_type
int offset_type
Definition:
CaloRecHitMetaCollectionV.h:25
trackerHits.c
tuple c
Definition:
trackerHits.py:26
hit
Definition:
SiStripHitEffFromCalibTree.cc:85
CaloRecHitMetaCollectionFast::const_iterator
CaloRecHitMetaCollectionV::Iterator const_iterator
Definition:
CaloRecHitMetaCollectionFast.h:20
CaloRecHitMetaCollectionFast
Definition:
CaloRecHitMetaCollectionFast.h:18
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