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 TrackingRegion& region, const edm::Event & ev, const edm::EventSetup& es)
7 {
8  assert(theTriplets.empty());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
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