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>()) {}
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_

Member Function Documentation

◆ beginRegion()

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

Definition at line 215 of file HitTripletEDProducerT.h.

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

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

◆ fill()

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

Definition at line 220 of file HitTripletEDProducerT.h.

References trigObjTnPSource_cfi::filler.

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

◆ produces()

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

Definition at line 209 of file HitTripletEDProducerT.h.

References edm::ProducesCollector::produces().

209  {
210  producesCollector.produces<RegionsSeedingHitSets>();
211  }
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()

◆ put()

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

Definition at line 226 of file HitTripletEDProducerT.h.

References iEvent, putEmpty(), and seedingHitSets_.

226  {
227  seedingHitSets_->shrink_to_fit();
228  putEmpty(iEvent);
229  }
int iEvent
Definition: GenABIO.cc:224
std::unique_ptr< RegionsSeedingHitSets > 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().

int iEvent
Definition: GenABIO.cc:224
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_
def move(src, dest)
Definition: eostools.py:511

◆ reserve()

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

Definition at line 213 of file HitTripletEDProducerT.h.

References seedingHitSets_.

213 { seedingHitSets_->reserve(regionsSize, localRAupper); }
std::unique_ptr< RegionsSeedingHitSets > 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().