test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
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
(
6
const
TrackingRegion
&
region
,
const
edm::Event
&
ev
,
const
edm::EventSetup
& es)
7
{
8
assert
(
thePairs
.
size
()==0);
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
assert
assert(m_qm.get())
HitPairGenerator::localRA
edm::RunningAverage localRA
Definition:
HitPairGenerator.h:38
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
OrderedHitPairs::size
virtual unsigned int size() const
Definition:
OrderedHitPairs.h:13
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
edm::RunningAverage::upper
int upper() const
Definition:
RunningAverage.h:29
HitPairGenerator::clear
virtual void clear() final
Definition:
HitPairGenerator.cc:16
edm::EventSetup
Definition:
EventSetup.h:45
HLT_25ns10e33_v2_cff.region
tuple region
Definition:
HLT_25ns10e33_v2_cff.py:61599
HitPairGenerator::thePairs
OrderedHitPairs thePairs
Definition:
HitPairGenerator.h:37
HitPairGenerator::HitPairGenerator
HitPairGenerator(unsigned int size=4000)
Definition:
HitPairGenerator.cc:3
HitPairGenerator.h
HitPairGenerator::run
virtual const OrderedHitPairs & run(const TrackingRegion ®ion, const edm::Event &ev, const edm::EventSetup &es)
Definition:
HitPairGenerator.cc:5
edm::Event
Definition:
Event.h:66
edm::RunningAverage::update
void update(unsigned int q)
Definition:
RunningAverage.h:31
Generated for CMSSW Reference Manual by
1.8.5