CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions
DTRangeMapAccessor Class Reference

#include <DTRangeMapAccessor.h>

Public Member Functions

 DTRangeMapAccessor ()
 Constructor. More...
 
virtual ~DTRangeMapAccessor ()
 Destructor. More...
 

Static Public Member Functions

static std::pair< DTChamberId,
DTChamberIdDetLayerComparator
chambersByDetLayer (DTChamberId id)
 Access chambers in a RangeMap by DetLayer. More...
 
static std::pair< DTLayerId,
DTChamberIdComparator
layersByChamber (DTChamberId chamberId)
 Access by chamber objects written into a RangeMap by layer. More...
 
static std::pair< DTLayerId,
DTSuperLayerIdComparator
layersBySuperLayer (DTSuperLayerId slId)
 Access by SL objects written into a RangeMap by layer. More...
 
static std::pair
< DTSuperLayerId,
DTChamberIdComparator
superLayersByChamber (DTChamberId chamberId)
 Access by chamber objects written into a RangeMap by SL. More...
 

Detailed Description

Utility class for access to objects in a RangeMap with needed granularity.

Author
G. Cerminara - INFN Torino

Definition at line 72 of file DTRangeMapAccessor.h.

Constructor & Destructor Documentation

DTRangeMapAccessor::DTRangeMapAccessor ( )

Constructor.

Definition at line 12 of file DTRangeMapAccessor.cc.

12 {}
DTRangeMapAccessor::~DTRangeMapAccessor ( )
virtual

Destructor.

Definition at line 16 of file DTRangeMapAccessor.cc.

16 {}

Member Function Documentation

pair< DTChamberId, DTChamberIdDetLayerComparator > DTRangeMapAccessor::chambersByDetLayer ( DTChamberId  id)
static

Access chambers in a RangeMap by DetLayer.

Definition at line 45 of file DTRangeMapAccessor.cc.

References DTChamberId.

45  {
46  return make_pair(DTChamberId(chamberId), DTChamberIdDetLayerComparator());
47 }
pair< DTLayerId, DTChamberIdComparator > DTRangeMapAccessor::layersByChamber ( DTChamberId  chamberId)
static

Access by chamber objects written into a RangeMap by layer.

Definition at line 30 of file DTRangeMapAccessor.cc.

References DTLayerId.

30  {
31  return make_pair(DTLayerId(chamberId,0,0), DTChamberIdComparator());
32 }
pair< DTLayerId, DTSuperLayerIdComparator > DTRangeMapAccessor::layersBySuperLayer ( DTSuperLayerId  slId)
static

Access by SL objects written into a RangeMap by layer.

Definition at line 22 of file DTRangeMapAccessor.cc.

References DTLayerId.

Referenced by DTRecSegment2DProducer::produce(), and DTRecSegment2DExtendedProducer::produce().

22  {
23  return make_pair(DTLayerId(slId,0), DTSuperLayerIdComparator());
24 }
pair< DTSuperLayerId, DTChamberIdComparator > DTRangeMapAccessor::superLayersByChamber ( DTChamberId  chamberId)
static

Access by chamber objects written into a RangeMap by SL.

Definition at line 38 of file DTRangeMapAccessor.cc.

References DTSuperLayerId.

38  {
39  return make_pair(DTSuperLayerId(chamberId,0), DTChamberIdComparator());
40 }
DTSuperLayerId