CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::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
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(), theDetLayer, and theHits.

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

Definition at line 29 of file LayerWithHits.h.

29 {}

Member Function Documentation

const DetLayer* LayerWithHits::layer ( ) const
inline
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

const DetLayer* LayerWithHits::theDetLayer
private

Definition at line 38 of file LayerWithHits.h.

Referenced by layer(), and LayerWithHits().

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

Definition at line 39 of file LayerWithHits.h.

Referenced by LayerWithHits(), and recHits().