CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
edm::RunningAverage localRA
bool ev
assert(be >=bs)
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
void clear() final
unsigned int size() const override
OrderedHitPairs thePairs
HitPairGenerator(unsigned int size=4000)
void update(unsigned int q)