CMS 3D CMS Logo

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