RecoTracker
TkSeedGenerator
src
MultiHitGenerator.cc
Go to the documentation of this file.
1
#include "
RecoTracker/TkSeedGenerator/interface/MultiHitGenerator.h
"
2
#include <iostream>
3
#include <typeinfo>
4
5
const
OrderedMultiHits
&
MultiHitGenerator::run
(
const
TrackingRegion
&
region
,
6
const
edm::Event
&
ev
,
7
const
edm::EventSetup
& es) {
8
theHitSets
.clear();
// called multiple time for the same seed collection
9
theHitSets
.reserve(
localRA
.
upper
());
10
hitSets
(
region
,
theHitSets
,
ev
, es);
11
theHitSets
.shrink_to_fit();
12
localRA
.
update
(
theHitSets
.
size
());
13
return
theHitSets
;
14
}
15
16
void
MultiHitGenerator::clear
() {
17
theHitSets
.clear();
18
theHitSets
.shrink_to_fit();
19
}
OrderedMultiHits
Definition:
OrderedMultiHits.h:8
MultiHitGenerator::clear
void clear() override
Definition:
MultiHitGenerator.cc:16
MultiHitGenerator.h
edm::RunningAverage::update
void update(unsigned int q)
Definition:
RunningAverage.h:35
MultiHitGenerator::localRA
edm::RunningAverage localRA
Definition:
MultiHitGenerator.h:45
OrderedMultiHits::size
unsigned int size() const override
Definition:
OrderedMultiHits.h:12
edm::EventSetup
Definition:
EventSetup.h:57
edm::RunningAverage::upper
int upper() const
Definition:
RunningAverage.h:30
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
HLT_2018_cff.region
region
Definition:
HLT_2018_cff.py:81479
TrackingRegion
Definition:
TrackingRegion.h:40
MultiHitGenerator::hitSets
virtual void hitSets(const TrackingRegion ®, OrderedMultiHits &prs, const edm::EventSetup &es)
Definition:
MultiHitGenerator.h:32
edm::Event
Definition:
Event.h:73
MultiHitGenerator::run
const OrderedMultiHits & run(const TrackingRegion ®ion, const edm::Event &ev, const edm::EventSetup &es) final
Definition:
MultiHitGenerator.cc:5
MultiHitGenerator::theHitSets
OrderedMultiHits theHitSets
Definition:
MultiHitGenerator.h:42
Generated for CMSSW Reference Manual by
1.8.16