Main Page
Namespaces
Classes
Package Documentation
RecoPixelVertexing
PixelTriplets
src
HitQuadrupletGenerator.cc
Go to the documentation of this file.
1
#include "
RecoPixelVertexing/PixelTriplets/interface/HitQuadrupletGenerator.h
"
2
3
HitQuadrupletGenerator::HitQuadrupletGenerator
(
unsigned
int
nSize): localRA(nSize) {}
4
5
const
OrderedHitSeeds
&
HitQuadrupletGenerator::run
(
6
const
TrackingRegion
& region,
const
edm::Event
&
ev
,
const
edm::EventSetup
& es)
7
{
8
assert(
theQuadruplets
.empty());assert(
theQuadruplets
.capacity()==0);
9
theQuadruplets
.reserve(
localRA
.
upper
());
10
hitQuadruplets
(region,
theQuadruplets
, ev, es);
11
localRA
.
update
(
theQuadruplets
.
size
());
12
theQuadruplets
.shrink_to_fit();
13
return
theQuadruplets
;
14
}
15
16
void
HitQuadrupletGenerator::clear
()
17
{
18
theQuadruplets
.clear();
theQuadruplets
.shrink_to_fit();
19
}
20
HitQuadrupletGenerator::localRA
edm::RunningAverage localRA
Definition:
HitQuadrupletGenerator.h:34
OrderedHitSeeds
Definition:
OrderedHitSeeds.h:9
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
HitQuadrupletGenerator::clear
void clear() final
Definition:
HitQuadrupletGenerator.cc:16
TrackingRegion
Definition:
TrackingRegion.h:40
edm::RunningAverage::upper
int upper() const
Definition:
RunningAverage.h:29
OrderedHitSeeds::size
unsigned int size() const override
Definition:
OrderedHitSeeds.h:14
edm::EventSetup
Definition:
EventSetup.h:44
HitQuadrupletGenerator::HitQuadrupletGenerator
HitQuadrupletGenerator(unsigned int size=500)
Definition:
HitQuadrupletGenerator.cc:3
HitQuadrupletGenerator::theQuadruplets
OrderedHitSeeds theQuadruplets
Definition:
HitQuadrupletGenerator.h:33
HitQuadrupletGenerator::hitQuadruplets
virtual void hitQuadruplets(const TrackingRegion ®, OrderedHitSeeds &prs, const edm::Event &ev, const edm::EventSetup &es)=0
HitQuadrupletGenerator::run
const OrderedHitSeeds & run(const TrackingRegion ®ion, const edm::Event &ev, const edm::EventSetup &es) final
Definition:
HitQuadrupletGenerator.cc:5
edm::Event
Definition:
Event.h:69
HitQuadrupletGenerator.h
edm::RunningAverage::update
void update(unsigned int q)
Definition:
RunningAverage.h:31
Generated for CMSSW Reference Manual by
1.8.11