CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | 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
 
void init (std::unique_ptr< HitPairGeneratorFromLayerPair > &&pairGenerator, LayerCacheType *layerCache)
 
virtual void initES (const edm::EventSetup &es)=0
 
 MultiHitGeneratorFromPairAndLayers (const edm::ParameterSet &pset)
 
const
HitPairGeneratorFromLayerPair
pairGenerator () const
 
virtual ~MultiHitGeneratorFromPairAndLayers ()
 

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
< HitPairGeneratorFromLayerPair
thePairGenerator
 

Detailed Description

Definition at line 19 of file MultiHitGeneratorFromPairAndLayers.h.

Member Typedef Documentation

Definition at line 41 of file MultiHitGeneratorFromPairAndLayers.h.

Definition at line 42 of file MultiHitGeneratorFromPairAndLayers.h.

Definition at line 22 of file MultiHitGeneratorFromPairAndLayers.h.

Constructor & Destructor Documentation

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

Definition at line 5 of file MultiHitGeneratorFromPairAndLayers.cc.

5  :
6  theLayerCache(nullptr),
7  theMaxElement(pset.getParameter<unsigned int>("maxElement"))
8 {}
T getParameter(std::string const &) const
MultiHitGeneratorFromPairAndLayers::~MultiHitGeneratorFromPairAndLayers ( )
virtual

Definition at line 10 of file MultiHitGeneratorFromPairAndLayers.cc.

10 {}

Member Function Documentation

void MultiHitGeneratorFromPairAndLayers::clear ( void  )

Definition at line 17 of file MultiHitGeneratorFromPairAndLayers.cc.

References cache.

17  {
18  cache.clear();
19 }
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.

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

Definition at line 12 of file MultiHitGeneratorFromPairAndLayers.cc.

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

12  {
14  theLayerCache = layerCache;
15 }
const HitPairGeneratorFromLayerPair & pairGenerator() const
def move
Definition: eostools.py:510
std::unique_ptr< HitPairGeneratorFromLayerPair > thePairGenerator
virtual void MultiHitGeneratorFromPairAndLayers::initES ( const edm::EventSetup es)
pure virtual

Implemented in MultiHitGeneratorFromChi2.

const HitPairGeneratorFromLayerPair& MultiHitGeneratorFromPairAndLayers::pairGenerator ( ) const
inline

Definition at line 36 of file MultiHitGeneratorFromPairAndLayers.h.

References thePairGenerator.

Referenced by init().

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

Member Data Documentation

cacheHits MultiHitGeneratorFromPairAndLayers::cache
protected

Definition at line 43 of file MultiHitGeneratorFromPairAndLayers.h.

Referenced by clear().

LayerCacheType* MultiHitGeneratorFromPairAndLayers::theLayerCache
protected

Definition at line 46 of file MultiHitGeneratorFromPairAndLayers.h.

Referenced by init().

const unsigned int MultiHitGeneratorFromPairAndLayers::theMaxElement
protected

Definition at line 47 of file MultiHitGeneratorFromPairAndLayers.h.

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

Definition at line 45 of file MultiHitGeneratorFromPairAndLayers.h.

Referenced by init(), and pairGenerator().