test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HitTripletGenerator.cc
Go to the documentation of this file.
2 
3 HitTripletGenerator::HitTripletGenerator(unsigned int nSize) : localRA(nSize) {}
4 
6  const TrackingRegion& region, const edm::Event & ev, const edm::EventSetup& es)
7 {
8  assert(theTriplets.size()==0);assert(theTriplets.capacity()==0);
9  theTriplets.reserve(localRA.upper());
10  hitTriplets(region, theTriplets, ev, es);
12  theTriplets.shrink_to_fit();
13  return theTriplets;
14 }
15 
17 {
18  theTriplets.clear(); theTriplets.shrink_to_fit();
19 }
20 
OrderedHitTriplets theTriplets
assert(m_qm.get())
bool ev
HitTripletGenerator(unsigned int size=500)
int upper() const
edm::RunningAverage localRA
virtual void clear() final
virtual void hitTriplets(const TrackingRegion &reg, OrderedHitTriplets &prs, const edm::EventSetup &es)
virtual unsigned int size() const
void update(unsigned int q)
virtual const OrderedHitTriplets & run(const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es) final