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::ProducerBase &producer)
 

Private Attributes

LayerHitMapCache hitCacheTmp_
 
std::unique_ptr< RegionsSeedingHitSetsseedingHitSets_
 

Detailed Description

Definition at line 192 of file HitTripletEDProducerT.h.

Constructor & Destructor Documentation

hitTripletEDProducerT::ImplSeedingHitSets::ImplSeedingHitSets ( )
inline

Definition at line 194 of file HitTripletEDProducerT.h.

194  :
195  seedingHitSets_(std::make_unique<RegionsSeedingHitSets>())
196  {}
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_

Member Function Documentation

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

Definition at line 206 of file HitTripletEDProducerT.h.

206  {
208  return std::make_tuple(&hitCacheTmp_, seedingHitSets_->beginRegion(region));
209  }
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_
void hitTripletEDProducerT::ImplSeedingHitSets::fill ( RegionsSeedingHitSets::RegionFiller filler,
const OrderedHitTriplets triplets 
)
inline

Definition at line 211 of file HitTripletEDProducerT.h.

References RegionsSeedingHitSets::RegionFiller::emplace_back().

211  {
212  for(const auto& trpl: triplets) {
213  filler.emplace_back(trpl.inner(), trpl.middle(), trpl.outer());
214  }
215  }
static void hitTripletEDProducerT::ImplSeedingHitSets::produces ( edm::ProducerBase producer)
inlinestatic

Definition at line 198 of file HitTripletEDProducerT.h.

References edm::ProductRegistryHelper::produces().

198  {
199  producer.produces<RegionsSeedingHitSets>();
200  }
BranchAliasSetterT< ProductType > produces()
declare what type of product will make and with which optional label
void hitTripletEDProducerT::ImplSeedingHitSets::put ( edm::Event iEvent)
inline

Definition at line 217 of file HitTripletEDProducerT.h.

217  {
218  seedingHitSets_->shrink_to_fit();
219  putEmpty(iEvent);
220  }
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_
void hitTripletEDProducerT::ImplSeedingHitSets::putEmpty ( edm::Event iEvent)
inline

Definition at line 221 of file HitTripletEDProducerT.h.

References eostools::move(), and edm::Event::put().

221  {
222  iEvent.put(std::move(seedingHitSets_));
223  }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:127
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_
def move(src, dest)
Definition: eostools.py:510
void hitTripletEDProducerT::ImplSeedingHitSets::reserve ( size_t  regionsSize,
size_t  localRAupper 
)
inline

Definition at line 202 of file HitTripletEDProducerT.h.

202  {
203  seedingHitSets_->reserve(regionsSize, localRAupper);
204  }
std::unique_ptr< RegionsSeedingHitSets > seedingHitSets_

Member Data Documentation

LayerHitMapCache hitTripletEDProducerT::ImplSeedingHitSets::hitCacheTmp_
private

Definition at line 227 of file HitTripletEDProducerT.h.

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

Definition at line 226 of file HitTripletEDProducerT.h.