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 TrackingRegion& region, const edm::Event & ev, const edm::EventSetup& es)
7 {
8  assert(thePairs.empty()); 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 
17 {
19  thePairs.clear(); thePairs.shrink_to_fit();
20 }
21 
edm::RunningAverage localRA
bool ev
virtual void hitPairs(const TrackingRegion &reg, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &es)=0
int upper() const
const OrderedHitPairs & run(const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es) override
unsigned int size() const override
void clear() final
OrderedHitPairs thePairs
HitPairGenerator(unsigned int size=4000)
void update(unsigned int q)