Main Page
Namespaces
Classes
Package Documentation
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
(
6
const
TrackingRegion
& region,
const
edm::Event
&
ev
,
const
edm::EventSetup
& es)
7
{
8
assert(
thePairs
.empty()); assert(
thePairs
.capacity()==0);
9
thePairs
.reserve(
localRA
.
upper
());
10
hitPairs
(region,
thePairs
, ev, es);
11
thePairs
.shrink_to_fit();
12
return
thePairs
;
13
}
14
15
16
void
HitPairGenerator::clear
()
17
{
18
localRA
.
update
(
thePairs
.
size
());
19
thePairs
.clear();
thePairs
.shrink_to_fit();
20
}
21
HitPairGenerator::localRA
edm::RunningAverage localRA
Definition:
HitPairGenerator.h:38
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
OrderedHitPairs
Definition:
OrderedHitPairs.h:8
TrackingRegion
Definition:
TrackingRegion.h:39
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:29
HitPairGenerator::run
const OrderedHitPairs & run(const TrackingRegion ®ion, const edm::Event &ev, const edm::EventSetup &es) override
Definition:
HitPairGenerator.cc:5
OrderedHitPairs::size
unsigned int size() const override
Definition:
OrderedHitPairs.h:13
HitPairGenerator::clear
void clear() final
Definition:
HitPairGenerator.cc:16
edm::EventSetup
Definition:
EventSetup.h:51
HitPairGenerator::thePairs
OrderedHitPairs thePairs
Definition:
HitPairGenerator.h:37
HitPairGenerator::HitPairGenerator
HitPairGenerator(unsigned int size=4000)
Definition:
HitPairGenerator.cc:3
HitPairGenerator.h
edm::Event
Definition:
Event.h:70
edm::RunningAverage::update
void update(unsigned int q)
Definition:
RunningAverage.h:31
Generated for CMSSW Reference Manual by
1.8.11