src
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
}
makeMEIFBenchmarkPlots.ev
ev
Definition:
makeMEIFBenchmarkPlots.py:55
edm::RunningAverage::upper
int upper() const
Definition:
RunningAverage.h:30
HitPairGenerator::localRA
edm::RunningAverage localRA
Definition:
HitPairGenerator.h:41
cms::cuda::assert
assert(be >=bs)
OrderedHitPairs
Definition:
OrderedHitPairs.h:8
TrackingRegion
Definition:
TrackingRegion.h:40
HitPairGenerator::hitPairs
virtual void hitPairs(const TrackingRegion ®, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &es)=0
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:56
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
nano_mu_digi_cff.region
region
Definition:
nano_mu_digi_cff.py:45
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.14