CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
LayerWithHits Class Reference

#include <LayerWithHits.h>

Public Member Functions

const DetLayerlayer () const
 
 LayerWithHits (const DetLayer *dl, const std::vector< const TrackingRecHit *> &theInputHits)
 
template<typename DSTV , typename SEL >
 LayerWithHits (const DetLayer *dl, DSTV const &allhits, SEL const &sel)
 
const std::vector< const TrackingRecHit * > & recHits () const
 return the recHits of the Layer More...
 
 ~LayerWithHits ()
 

Private Attributes

const DetLayertheDetLayer
 
std::vector< const TrackingRecHit * > theHits
 

Detailed Description

Definition at line 12 of file LayerWithHits.h.

Constructor & Destructor Documentation

◆ LayerWithHits() [1/2]

LayerWithHits::LayerWithHits ( const DetLayer dl,
const std::vector< const TrackingRecHit *> &  theInputHits 
)
inline

Definition at line 14 of file LayerWithHits.h.

15  : theDetLayer(dl), theHits(theInputHits) {}
std::vector< const TrackingRecHit * > theHits
Definition: LayerWithHits.h:39
const DetLayer * theDetLayer
Definition: LayerWithHits.h:38

◆ LayerWithHits() [2/2]

template<typename DSTV , typename SEL >
LayerWithHits::LayerWithHits ( const DetLayer dl,
DSTV const &  allhits,
SEL const &  sel 
)
inline

Usage: edm::ESHandle<TrackerTopology> httopo; iSetup.get<TrackerTopologyRcd>().get(httopo); const TrackerTopology& ttopo = *httopo; LayerWithHits( theLayer, collrphi, ttopo.tibDetIdLayerComparator(1) );

Definition at line 23 of file LayerWithHits.h.

References edmNew::copyDetSetRange(), EgammaValidation_Wenu_cff::sel, theDetLayer, and theHits.

23  {
24  theDetLayer = dl;
26  }
std::vector< const TrackingRecHit * > theHits
Definition: LayerWithHits.h:39
void copyDetSetRange(DSTV const &dstv, std::vector< T const *> &v, std::pair< A, B > const &sel)
const DetLayer * theDetLayer
Definition: LayerWithHits.h:38

◆ ~LayerWithHits()

LayerWithHits::~LayerWithHits ( )
inline

Definition at line 29 of file LayerWithHits.h.

29 {}

Member Function Documentation

◆ layer()

const DetLayer* LayerWithHits::layer ( ) const
inline

◆ recHits()

const std::vector<const TrackingRecHit*>& LayerWithHits::recHits ( void  ) const
inline

return the recHits of the Layer

Definition at line 32 of file LayerWithHits.h.

References theHits.

Referenced by CosmicHitPairGeneratorFromLayerPair::hitPairs(), and CosmicHitTripletGeneratorFromLayerTriplet::hitTriplets().

32 { return theHits; }
std::vector< const TrackingRecHit * > theHits
Definition: LayerWithHits.h:39

Member Data Documentation

◆ theDetLayer

const DetLayer* LayerWithHits::theDetLayer
private

Definition at line 38 of file LayerWithHits.h.

Referenced by layer(), and LayerWithHits().

◆ theHits

std::vector<const TrackingRecHit*> LayerWithHits::theHits
private

Definition at line 39 of file LayerWithHits.h.

Referenced by LayerWithHits(), and recHits().