Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
MultiHitGenerator::MultiHitGenerator
(
unsigned
int
nSize)
6
{
7
theHitSets
.reserve(nSize);
8
}
9
10
const
OrderedMultiHits
&
MultiHitGenerator::run
(
11
const
TrackingRegion
& region,
const
edm::Event
& ev,
const
edm::EventSetup
& es)
12
{
13
// std::cout << "MultiHitGenerator cache b " << cache.size() << std::endl;
14
theHitSets
.clear();
15
hitSets
(region,
theHitSets
, ev, es);
16
// std::cout << "MultiHitGenerator cache a " << cache.size() << std::endl;
17
return
theHitSets
;
18
}
19
20
void
MultiHitGenerator::clear
()
21
{
22
//std::cout << "MultiHitGenerator " << typeid(*this).name()
23
// <<" cache c " << cache.size() << ' ' << cache.capacity() << std::endl;
24
theHitSets
.clear();
25
cache
.clear();
26
}
27
MultiHitGenerator::hitSets
virtual void hitSets(const TrackingRegion ®, OrderedMultiHits &prs, const edm::EventSetup &es)
Definition:
MultiHitGenerator.h:30
MultiHitGenerator::clear
virtual void clear()
Definition:
MultiHitGenerator.cc:20
MultiHitGenerator::theHitSets
OrderedMultiHits theHitSets
Definition:
MultiHitGenerator.h:39
TrackingRegion
Definition:
TrackingRegion.h:40
MultiHitGenerator.h
MultiHitGenerator::cache
cacheHits cache
Definition:
MultiHitGenerator.h:44
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:10
MultiHitGenerator::MultiHitGenerator
MultiHitGenerator(unsigned int size=500)
Definition:
MultiHitGenerator.cc:5
edm::Event
Definition:
Event.h:62
Generated for CMSSW Reference Manual by
1.8.5