CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.size()==0); 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 
assert(m_qm.get())
edm::RunningAverage localRA
bool ev
virtual unsigned int size() const
virtual void hitPairs(const TrackingRegion &reg, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &es)=0
int upper() const
virtual void clear() final
OrderedHitPairs thePairs
HitPairGenerator(unsigned int size=4000)
virtual const OrderedHitPairs & run(const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es)
void update(unsigned int q)