CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
hitTripletEDProducerT::ImplSeedingHitSets Class Reference

#include <HitTripletEDProducerT.h>

Public Member Functions

auto beginRegion (const TrackingRegion *region, LayerHitMapCache *ptr)
 
void fill (RegionsSeedingHitSets::RegionFiller &filler, const OrderedHitTriplets &triplets)
 
 ImplSeedingHitSets ()
 
void put (edm::Event &iEvent)
 
void putEmpty (edm::Event &iEvent)
 
void reserve (size_t regionsSize, size_t localRAupper)
 

Static Public Member Functions

static void produces (edm::ProducesCollector producesCollector)
 

Private Attributes

LayerHitMapCache hitCacheTmp_
 
std::unique_ptr< RegionsSeedingHitSetsseedingHitSets_
 

Detailed Description

Definition at line 205 of file HitTripletEDProducerT.h.

Constructor & Destructor Documentation

◆ ImplSeedingHitSets()

hitTripletEDProducerT::ImplSeedingHitSets::ImplSeedingHitSets ( )
inline

Definition at line 207 of file HitTripletEDProducerT.h.

207 : seedingHitSets_(std::make_unique<RegionsSeedingHitSets>()) {}

Member Function Documentation

◆ beginRegion()

auto hitTripletEDProducerT::ImplSeedingHitSets::beginRegion ( const TrackingRegion region,
LayerHitMapCache ptr 
)
inline

Definition at line 215 of file HitTripletEDProducerT.h.

215  {
217  return std::make_tuple(&hitCacheTmp_, seedingHitSets_->beginRegion(region));
218  }

References LayerHitMapCache::clear(), hitCacheTmp_, HLT_FULL_cff::region, and seedingHitSets_.

◆ fill()

void hitTripletEDProducerT::ImplSeedingHitSets::fill ( RegionsSeedingHitSets::RegionFiller filler,
const OrderedHitTriplets triplets 
)
inline

Definition at line 220 of file HitTripletEDProducerT.h.

220  {
221  for (const auto& trpl : triplets) {
222  filler.emplace_back(trpl.inner(), trpl.middle(), trpl.outer());
223  }
224  }

References trigObjTnPSource_cfi::filler.

◆ produces()

static void hitTripletEDProducerT::ImplSeedingHitSets::produces ( edm::ProducesCollector  producesCollector)
inlinestatic

Definition at line 209 of file HitTripletEDProducerT.h.

209  {
210  producesCollector.produces<RegionsSeedingHitSets>();
211  }

References edm::ProducesCollector::produces().

◆ put()

void hitTripletEDProducerT::ImplSeedingHitSets::put ( edm::Event iEvent)
inline

Definition at line 226 of file HitTripletEDProducerT.h.

226  {
227  seedingHitSets_->shrink_to_fit();
228  putEmpty(iEvent);
229  }

References iEvent, putEmpty(), and seedingHitSets_.

◆ putEmpty()

void hitTripletEDProducerT::ImplSeedingHitSets::putEmpty ( edm::Event iEvent)
inline

Definition at line 230 of file HitTripletEDProducerT.h.

References iEvent, eostools::move(), and seedingHitSets_.

Referenced by put().

◆ reserve()

void hitTripletEDProducerT::ImplSeedingHitSets::reserve ( size_t  regionsSize,
size_t  localRAupper 
)
inline

Definition at line 213 of file HitTripletEDProducerT.h.

213 { seedingHitSets_->reserve(regionsSize, localRAupper); }

References seedingHitSets_.

Member Data Documentation

◆ hitCacheTmp_

LayerHitMapCache hitTripletEDProducerT::ImplSeedingHitSets::hitCacheTmp_
private

Definition at line 234 of file HitTripletEDProducerT.h.

Referenced by beginRegion().

◆ seedingHitSets_

std::unique_ptr<RegionsSeedingHitSets> hitTripletEDProducerT::ImplSeedingHitSets::seedingHitSets_
private

Definition at line 233 of file HitTripletEDProducerT.h.

Referenced by beginRegion(), put(), putEmpty(), and reserve().

hitTripletEDProducerT::ImplSeedingHitSets::hitCacheTmp_
LayerHitMapCache hitCacheTmp_
Definition: HitTripletEDProducerT.h:234
hitTripletEDProducerT::ImplSeedingHitSets::putEmpty
void putEmpty(edm::Event &iEvent)
Definition: HitTripletEDProducerT.h:230
RegionsSeedingHitSets
Definition: RegionsSeedingHitSets.h:12
trigObjTnPSource_cfi.filler
filler
Definition: trigObjTnPSource_cfi.py:21
hitTripletEDProducerT::ImplSeedingHitSets::seedingHitSets_
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_
Definition: HitTripletEDProducerT.h:233
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:88286
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::ProducesCollector::produces
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
Definition: ProducesCollector.h:52
eostools.move
def move(src, dest)
Definition: eostools.py:511
LayerHitMapCache::clear
void clear()
Definition: LayerHitMapCache.h:69