CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes
MultiHitGeneratorFromPairAndLayers Class Referenceabstract

#include <MultiHitGeneratorFromPairAndLayers.h>

Inheritance diagram for MultiHitGeneratorFromPairAndLayers:
MultiHitGeneratorFromChi2

Public Types

typedef LayerHitMapCache LayerCacheType
 

Public Member Functions

void clear ()
 
virtual void hitSets (const TrackingRegion &region, OrderedMultiHits &trs, const edm::Event &ev, const edm::EventSetup &es, SeedingLayerSetsHits::SeedingLayerSet pairLayers, std::vector< SeedingLayerSetsHits::SeedingLayer > thirdLayers)=0
 
virtual void hitTriplets (const TrackingRegion &region, OrderedMultiHits &result, const HitDoublets &doublets, const RecHitsSortedInPhi **thirdHitMap, const std::vector< const DetLayer *> &thirdLayerDetLayer, const int nThirdLayers)=0
 
void init (std::unique_ptr< HitPairGeneratorFromLayerPair > &&pairGenerator, LayerCacheType *layerCache)
 
virtual void initES (const edm::EventSetup &es)=0
 
 MultiHitGeneratorFromPairAndLayers (const edm::ParameterSet &pset)
 
const HitPairGeneratorFromLayerPairpairGenerator () const
 
virtual ~MultiHitGeneratorFromPairAndLayers ()
 

Static Public Member Functions

static void fillDescriptions (edm::ParameterSetDescription &desc)
 

Protected Types

using cacheHitPointer = std::unique_ptr< BaseTrackerRecHit >
 
using cacheHits = std::vector< cacheHitPointer >
 

Protected Attributes

cacheHits cache
 
LayerCacheTypetheLayerCache
 
const unsigned int theMaxElement
 
std::unique_ptr< HitPairGeneratorFromLayerPairthePairGenerator
 

Detailed Description

Definition at line 24 of file MultiHitGeneratorFromPairAndLayers.h.

Member Typedef Documentation

◆ cacheHitPointer

Definition at line 56 of file MultiHitGeneratorFromPairAndLayers.h.

◆ cacheHits

Definition at line 57 of file MultiHitGeneratorFromPairAndLayers.h.

◆ LayerCacheType

Definition at line 26 of file MultiHitGeneratorFromPairAndLayers.h.

Constructor & Destructor Documentation

◆ MultiHitGeneratorFromPairAndLayers()

MultiHitGeneratorFromPairAndLayers::MultiHitGeneratorFromPairAndLayers ( const edm::ParameterSet pset)
explicit

Definition at line 6 of file MultiHitGeneratorFromPairAndLayers.cc.

7  : theLayerCache(nullptr), theMaxElement(pset.getParameter<unsigned int>("maxElement")) {}

◆ ~MultiHitGeneratorFromPairAndLayers()

MultiHitGeneratorFromPairAndLayers::~MultiHitGeneratorFromPairAndLayers ( )
virtual

Definition at line 9 of file MultiHitGeneratorFromPairAndLayers.cc.

9 {}

Member Function Documentation

◆ clear()

void MultiHitGeneratorFromPairAndLayers::clear ( void  )

Definition at line 21 of file MultiHitGeneratorFromPairAndLayers.cc.

References cache.

◆ fillDescriptions()

void MultiHitGeneratorFromPairAndLayers::fillDescriptions ( edm::ParameterSetDescription desc)
static

Definition at line 11 of file MultiHitGeneratorFromPairAndLayers.cc.

References submitPVResolutionJobs::desc.

Referenced by MultiHitGeneratorFromChi2::fillDescriptions().

11  {
12  desc.add<unsigned int>("maxElement", 1000000);
13 }

◆ hitSets()

virtual void MultiHitGeneratorFromPairAndLayers::hitSets ( const TrackingRegion region,
OrderedMultiHits trs,
const edm::Event ev,
const edm::EventSetup es,
SeedingLayerSetsHits::SeedingLayerSet  pairLayers,
std::vector< SeedingLayerSetsHits::SeedingLayer thirdLayers 
)
pure virtual

Implemented in MultiHitGeneratorFromChi2.

◆ hitTriplets()

virtual void MultiHitGeneratorFromPairAndLayers::hitTriplets ( const TrackingRegion region,
OrderedMultiHits result,
const HitDoublets doublets,
const RecHitsSortedInPhi **  thirdHitMap,
const std::vector< const DetLayer *> &  thirdLayerDetLayer,
const int  nThirdLayers 
)
pure virtual

Implemented in MultiHitGeneratorFromChi2.

◆ init()

void MultiHitGeneratorFromPairAndLayers::init ( std::unique_ptr< HitPairGeneratorFromLayerPair > &&  pairGenerator,
LayerCacheType layerCache 
)

Definition at line 15 of file MultiHitGeneratorFromPairAndLayers.cc.

References eostools::move(), pairGenerator(), theLayerCache, and thePairGenerator.

16  {
18  theLayerCache = layerCache;
19 }
const HitPairGeneratorFromLayerPair & pairGenerator() const
std::unique_ptr< HitPairGeneratorFromLayerPair > thePairGenerator
def move(src, dest)
Definition: eostools.py:511

◆ initES()

virtual void MultiHitGeneratorFromPairAndLayers::initES ( const edm::EventSetup es)
pure virtual

Implemented in MultiHitGeneratorFromChi2.

◆ pairGenerator()

const HitPairGeneratorFromLayerPair& MultiHitGeneratorFromPairAndLayers::pairGenerator ( ) const
inline

Definition at line 51 of file MultiHitGeneratorFromPairAndLayers.h.

References thePairGenerator.

Referenced by init().

51 { return *thePairGenerator; }
std::unique_ptr< HitPairGeneratorFromLayerPair > thePairGenerator

Member Data Documentation

◆ cache

cacheHits MultiHitGeneratorFromPairAndLayers::cache
protected

◆ theLayerCache

LayerCacheType* MultiHitGeneratorFromPairAndLayers::theLayerCache
protected

◆ theMaxElement

const unsigned int MultiHitGeneratorFromPairAndLayers::theMaxElement
protected

◆ thePairGenerator

std::unique_ptr<HitPairGeneratorFromLayerPair> MultiHitGeneratorFromPairAndLayers::thePairGenerator
protected