CMS 3D CMS Logo

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

#include <HitTripletGeneratorFromPairAndLayers.h>

Inheritance diagram for HitTripletGeneratorFromPairAndLayers:
PixelTripletHLTGenerator PixelTripletLargeTipGenerator PixelTripletLowPtGenerator PixelTripletNoTipGenerator

Public Types

typedef LayerHitMapCache LayerCacheType
 

Public Member Functions

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

Static Public Member Functions

static void fillDescriptions (edm::ParameterSetDescription &desc)
 

Protected Attributes

LayerCacheTypetheLayerCache
 
const unsigned int theMaxElement
 
std::unique_ptr< HitPairGeneratorFromLayerPairthePairGenerator
 

Detailed Description

Definition at line 25 of file HitTripletGeneratorFromPairAndLayers.h.

Member Typedef Documentation

◆ LayerCacheType

Definition at line 27 of file HitTripletGeneratorFromPairAndLayers.h.

Constructor & Destructor Documentation

◆ HitTripletGeneratorFromPairAndLayers() [1/2]

HitTripletGeneratorFromPairAndLayers::HitTripletGeneratorFromPairAndLayers ( unsigned int  maxElement = 0)
explicit

◆ HitTripletGeneratorFromPairAndLayers() [2/2]

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

Definition at line 9 of file HitTripletGeneratorFromPairAndLayers.cc.

10  : HitTripletGeneratorFromPairAndLayers(pset.getParameter<unsigned int>("maxElement")) {}

◆ ~HitTripletGeneratorFromPairAndLayers()

HitTripletGeneratorFromPairAndLayers::~HitTripletGeneratorFromPairAndLayers ( )
virtual

Definition at line 12 of file HitTripletGeneratorFromPairAndLayers.cc.

12 {}

Member Function Documentation

◆ fillDescriptions()

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

Definition at line 14 of file HitTripletGeneratorFromPairAndLayers.cc.

References submitPVResolutionJobs::desc.

Referenced by PixelTripletHLTGenerator::fillDescriptions(), and PixelTripletLargeTipGenerator::fillDescriptions().

14  {
15  desc.add<unsigned int>("maxElement", 1000000);
16 }

◆ hitTriplets() [1/2]

virtual void HitTripletGeneratorFromPairAndLayers::hitTriplets ( const TrackingRegion region,
OrderedHitTriplets trs,
const edm::Event ev,
const edm::EventSetup es,
const SeedingLayerSetsHits::SeedingLayerSet pairLayers,
const std::vector< SeedingLayerSetsHits::SeedingLayer > &  thirdLayers 
)
pure virtual

◆ hitTriplets() [2/2]

virtual void HitTripletGeneratorFromPairAndLayers::hitTriplets ( const TrackingRegion region,
OrderedHitTriplets result,
const edm::EventSetup es,
const HitDoublets doublets,
const RecHitsSortedInPhi **  thirdHitMap,
const std::vector< const DetLayer *> &  thirdLayerDetLayer,
const int  nThirdLayers 
)
pure virtual

◆ init()

void HitTripletGeneratorFromPairAndLayers::init ( std::unique_ptr< HitPairGeneratorFromLayerPair > &&  pairs,
LayerCacheType layerCache 
)

Definition at line 18 of file HitTripletGeneratorFromPairAndLayers.cc.

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

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

◆ pairGenerator()

const HitPairGeneratorFromLayerPair& HitTripletGeneratorFromPairAndLayers::pairGenerator ( ) const
inline

Definition at line 37 of file HitTripletGeneratorFromPairAndLayers.h.

References thePairGenerator.

Referenced by init().

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

Member Data Documentation

◆ theLayerCache

LayerCacheType* HitTripletGeneratorFromPairAndLayers::theLayerCache
protected

◆ theMaxElement

const unsigned int HitTripletGeneratorFromPairAndLayers::theMaxElement
protected

◆ thePairGenerator

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