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());
13  theTriplets.shrink_to_fit();
14  return theTriplets;
15 }
16 
18  theTriplets.clear();
19  theTriplets.shrink_to_fit();
20 }
cms::cuda::assert
assert(be >=bs)
HitTripletGenerator.h
HitTripletGenerator::theTriplets
OrderedHitTriplets theTriplets
Definition: HitTripletGenerator.h:40
edm::RunningAverage::update
void update(unsigned int q)
Definition: RunningAverage.h:35
HitTripletGenerator::clear
void clear() final
Definition: HitTripletGenerator.cc:17
HitTripletGenerator::run
const OrderedHitTriplets & run(const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es) final
Definition: HitTripletGenerator.cc:5
HitTripletGenerator::HitTripletGenerator
HitTripletGenerator(unsigned int size=500)
Definition: HitTripletGenerator.cc:3
OrderedHitTriplets
Definition: OrderedHitTriplets.h:9
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:84949
OrderedHitTriplets::size
unsigned int size() const override
Definition: OrderedHitTriplets.h:13
edm::EventSetup
Definition: EventSetup.h:57
HitTripletGenerator::hitTriplets
virtual void hitTriplets(const TrackingRegion &reg, OrderedHitTriplets &prs, const edm::EventSetup &es)
Definition: HitTripletGenerator.h:30
edm::RunningAverage::upper
int upper() const
Definition: RunningAverage.h:30
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
TrackingRegion
Definition: TrackingRegion.h:41
edm::Event
Definition: Event.h:73
HitTripletGenerator::localRA
edm::RunningAverage localRA
Definition: HitTripletGenerator.h:41