test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 15 of file LayerWithHits.h.

15  :
16  theDetLayer(dl),theHits(theInputHits){}
std::vector< const TrackingRecHit * > theHits
Definition: LayerWithHits.h:44
const DetLayer * theDetLayer
Definition: LayerWithHits.h:43
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 24 of file LayerWithHits.h.

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

27  {
28  theDetLayer = dl;
30  }
void copyDetSetRange(DSTV const &dstv, std::vector< T const * > &v, std::pair< A, B > const &sel)
std::vector< const TrackingRecHit * > theHits
Definition: LayerWithHits.h:44
const DetLayer * theDetLayer
Definition: LayerWithHits.h:43
LayerWithHits::~LayerWithHits ( )
inline

Definition at line 34 of file LayerWithHits.h.

34 {}

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 37 of file LayerWithHits.h.

References theHits.

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

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

Member Data Documentation

const DetLayer* LayerWithHits::theDetLayer
private

Definition at line 43 of file LayerWithHits.h.

Referenced by layer(), and LayerWithHits().

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

Definition at line 44 of file LayerWithHits.h.

Referenced by LayerWithHits(), and recHits().