Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
RecoTracker
TkHitPairs
src
HitPairGenerator.cc
Go to the documentation of this file.
1
#include "
RecoTracker/TkHitPairs/interface/HitPairGenerator.h
"
2
3
HitPairGenerator::HitPairGenerator
(
unsigned
int
nSize) : localRA(nSize) {}
4
5
const
OrderedHitPairs
&
HitPairGenerator::run
(
const
TrackingRegion
&
region
,
6
const
edm::Event
&
ev
,
7
const
edm::EventSetup
& es) {
8
assert
(
thePairs
.empty());
9
assert
(
thePairs
.capacity() == 0);
10
thePairs
.reserve(
localRA
.
upper
());
11
hitPairs
(region,
thePairs
, ev, es);
12
thePairs
.shrink_to_fit();
13
return
thePairs
;
14
}
15
16
void
HitPairGenerator::clear
() {
17
localRA
.
update
(
thePairs
.
size
());
18
thePairs
.clear();
19
thePairs
.shrink_to_fit();
20
}
HitPairGenerator::localRA
edm::RunningAverage localRA
Definition:
HitPairGenerator.h:41
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:96
cms::cuda::assert
assert(be >=bs)
OrderedHitPairs
Definition:
OrderedHitPairs.h:8
TrackingRegion
Definition:
TrackingRegion.h:40
HLT_FULL_cff.region
tuple region
Definition:
HLT_FULL_cff.py:85941
HitPairGenerator::hitPairs
virtual void hitPairs(const TrackingRegion ®, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &es)=0
edm::RunningAverage::upper
int upper() const
Definition:
RunningAverage.h:30
HitPairGenerator::run
const OrderedHitPairs & run(const TrackingRegion ®ion, const edm::Event &ev, const edm::EventSetup &es) override
Definition:
HitPairGenerator.cc:5
HitPairGenerator::clear
void clear() final
Definition:
HitPairGenerator.cc:16
edm::EventSetup
Definition:
EventSetup.h:59
OrderedHitPairs::size
unsigned int size() const override
Definition:
OrderedHitPairs.h:12
HitPairGenerator::thePairs
OrderedHitPairs thePairs
Definition:
HitPairGenerator.h:40
HitPairGenerator::HitPairGenerator
HitPairGenerator(unsigned int size=4000)
Definition:
HitPairGenerator.cc:3
HitPairGenerator.h
edm::Event
Definition:
Event.h:73
edm::RunningAverage::update
void update(unsigned int q)
Definition:
RunningAverage.h:35
Generated for CMSSW Reference Manual by
1.8.5