RecoPixelVertexing
PixelTriplets
src
HitTripletGenerator.cc
Go to the documentation of this file.
1
#include "
RecoPixelVertexing/PixelTriplets/interface/HitTripletGenerator.h
"
2
3
HitTripletGenerator::HitTripletGenerator
(
unsigned
int
nSize) : localRA(nSize) {}
4
5
const
OrderedHitTriplets
&
HitTripletGenerator::run
(
const
TrackingRegion
&
region
,
6
const
edm::Event
&
ev
,
7
const
edm::EventSetup
& es) {
8
assert
(
theTriplets
.empty());
9
assert
(
theTriplets
.capacity() == 0);
10
theTriplets
.reserve(
localRA
.
upper
());
11
hitTriplets
(
region
,
theTriplets
,
ev
, es);
12
localRA
.
update
(
theTriplets
.
size
());
13
theTriplets
.shrink_to_fit();
14
return
theTriplets
;
15
}
16
17
void
HitTripletGenerator::clear
() {
18
theTriplets
.clear();
19
theTriplets
.shrink_to_fit();
20
}
cms::cuda::assert
assert(be >=bs)
HitTripletGenerator.h
HitTripletGenerator::theTriplets
OrderedHitTriplets theTriplets
Definition:
HitTripletGenerator.h:40
edm::RunningAverage::update
void update(unsigned int q)
Definition:
RunningAverage.h:35
HitTripletGenerator::clear
void clear() final
Definition:
HitTripletGenerator.cc:17
HitTripletGenerator::run
const OrderedHitTriplets & run(const TrackingRegion ®ion, const edm::Event &ev, const edm::EventSetup &es) final
Definition:
HitTripletGenerator.cc:5
HitTripletGenerator::HitTripletGenerator
HitTripletGenerator(unsigned int size=500)
Definition:
HitTripletGenerator.cc:3
OrderedHitTriplets
Definition:
OrderedHitTriplets.h:9
HLT_FULL_cff.region
region
Definition:
HLT_FULL_cff.py:84949
OrderedHitTriplets::size
unsigned int size() const override
Definition:
OrderedHitTriplets.h:13
edm::EventSetup
Definition:
EventSetup.h:57
HitTripletGenerator::hitTriplets
virtual void hitTriplets(const TrackingRegion ®, OrderedHitTriplets &prs, const edm::EventSetup &es)
Definition:
HitTripletGenerator.h:30
edm::RunningAverage::upper
int upper() const
Definition:
RunningAverage.h:30
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
TrackingRegion
Definition:
TrackingRegion.h:41
edm::Event
Definition:
Event.h:73
HitTripletGenerator::localRA
edm::RunningAverage localRA
Definition:
HitTripletGenerator.h:41
Generated for CMSSW Reference Manual by
1.8.16