Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
(
6
const
TrackingRegion
&
region
,
const
edm::Event
&
ev
,
const
edm::EventSetup
& es)
7
{
8
// std::cout << "MultiHitGenerator cache b " << cache.size() << std::endl;
9
theHitSets
.clear();
// called multiple time for the same seed collection
10
theHitSets
.reserve(
localRA
.
upper
());
11
hitSets
(region,
theHitSets
, ev, es);
12
// std::cout << "MultiHitGenerator cache a " << cache.size() << std::endl;
13
theHitSets
.shrink_to_fit();
14
localRA
.
update
(
theHitSets
.
size
());
15
return
theHitSets
;
16
}
17
18
void
MultiHitGenerator::clear
()
19
{
20
theHitSets
.clear();
theHitSets
.shrink_to_fit();
21
//std::cout << "MultiHitGenerator " << typeid(*this).name()
22
// <<" cache c " << cache.size() << ' ' << cache.capacity() << std::endl;
23
cache
.clear();
24
}
25
MultiHitGenerator::hitSets
virtual void hitSets(const TrackingRegion ®, OrderedMultiHits &prs, const edm::EventSetup &es)
Definition:
MultiHitGenerator.h:33
MultiHitGenerator::clear
virtual void clear()
Definition:
MultiHitGenerator.cc:18
MultiHitGenerator::theHitSets
OrderedMultiHits theHitSets
Definition:
MultiHitGenerator.h:42
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:90
TrackingRegion
Definition:
TrackingRegion.h:40
MultiHitGenerator.h
HLT_25ns14e33_v3_cff.region
tuple region
Definition:
HLT_25ns14e33_v3_cff.py:52859
MultiHitGenerator::cache
cacheHits cache
Definition:
MultiHitGenerator.h:47
OrderedMultiHits::size
virtual unsigned int size() const
Definition:
OrderedMultiHits.h:13
edm::RunningAverage::upper
int upper() const
Definition:
RunningAverage.h:19
edm::EventSetup
Definition:
EventSetup.h:44
OrderedMultiHits
Definition:
OrderedMultiHits.h:8
MultiHitGenerator::run
virtual const OrderedMultiHits & run(const TrackingRegion ®ion, const edm::Event &ev, const edm::EventSetup &es) final
Definition:
MultiHitGenerator.cc:5
MultiHitGenerator::localRA
edm::RunningAverage localRA
Definition:
MultiHitGenerator.h:48
edm::Event
Definition:
Event.h:61
edm::RunningAverage::update
void update(unsigned int q)
Definition:
RunningAverage.h:21
Generated for CMSSW Reference Manual by
1.8.5