CMS 3D CMS Logo

HitPairGenerator.cc
Go to the documentation of this file.
2 
3 HitPairGenerator::HitPairGenerator(unsigned int nSize) : localRA(nSize) {}
4 
6  const edm::Event& ev,
7  const edm::EventSetup& es) {
8  assert(thePairs.empty());
9  assert(thePairs.capacity() == 0);
10  thePairs.reserve(localRA.upper());
11  hitPairs(region, thePairs, ev, es);
12  thePairs.shrink_to_fit();
13  return thePairs;
14 }
15 
18  thePairs.clear();
19  thePairs.shrink_to_fit();
20 }
HitPairGenerator::run
const OrderedHitPairs & run(const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es) override
Definition: HitPairGenerator.cc:5
OrderedHitPairs
Definition: OrderedHitPairs.h:8
HitPairGenerator::clear
void clear() final
Definition: HitPairGenerator.cc:16
cms::cuda::assert
assert(be >=bs)
HitPairGenerator::thePairs
OrderedHitPairs thePairs
Definition: HitPairGenerator.h:40
HitPairGenerator::HitPairGenerator
HitPairGenerator(unsigned int size=4000)
Definition: HitPairGenerator.cc:3
HitPairGenerator.h
edm::RunningAverage::update
void update(unsigned int q)
Definition: RunningAverage.h:35
edm::EventSetup
Definition: EventSetup.h:57
HitPairGenerator::localRA
edm::RunningAverage localRA
Definition: HitPairGenerator.h:41
edm::RunningAverage::upper
int upper() const
Definition: RunningAverage.h:30
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
HitPairGenerator::hitPairs
virtual void hitPairs(const TrackingRegion &reg, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &es)=0
HLT_2018_cff.region
region
Definition: HLT_2018_cff.py:81479
OrderedHitPairs::size
unsigned int size() const override
Definition: OrderedHitPairs.h:12
TrackingRegion
Definition: TrackingRegion.h:38
edm::Event
Definition: Event.h:73