CMS 3D CMS Logo

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
bool ev
HitTripletGenerator(unsigned int size=500)
int upper() const
unsigned int size() const override
edm::RunningAverage localRA
virtual void hitTriplets(const TrackingRegion &reg, OrderedHitTriplets &prs, const edm::EventSetup &es)
void update(unsigned int q)
const OrderedHitTriplets & run(const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es) final