CMS 3D CMS Logo

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, DTChamberIdDetLayerComparatorchambersByDetLayer (DTChamberId id)
 Access chambers in a RangeMap by DetLayer. More...
 
static std::pair< DTLayerId, DTChamberIdComparatorlayersByChamber (DTChamberId chamberId)
 Access by chamber objects written into a RangeMap by layer. More...
 
static std::pair< DTLayerId, DTSuperLayerIdComparatorlayersBySuperLayer (DTSuperLayerId slId)
 Access by SL objects written into a RangeMap by layer. More...
 
static std::pair< DTSuperLayerId, DTChamberIdComparatorsuperLayersByChamber (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 68 of file DTRangeMapAccessor.h.

Constructor & Destructor Documentation

◆ DTRangeMapAccessor()

DTRangeMapAccessor::DTRangeMapAccessor ( )

Constructor.

Definition at line 10 of file DTRangeMapAccessor.cc.

10 {}

◆ ~DTRangeMapAccessor()

DTRangeMapAccessor::~DTRangeMapAccessor ( )
virtual

Destructor.

Definition at line 12 of file DTRangeMapAccessor.cc.

12 {}

Member Function Documentation

◆ chambersByDetLayer()

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

Access chambers in a RangeMap by DetLayer.

Definition at line 30 of file DTRangeMapAccessor.cc.

◆ layersByChamber()

pair< DTLayerId, DTChamberIdComparator > DTRangeMapAccessor::layersByChamber ( DTChamberId  chamberId)
static

Access by chamber objects written into a RangeMap by layer.

Definition at line 20 of file DTRangeMapAccessor.cc.

20  {
21  return make_pair(DTLayerId(chamberId, 0, 0), DTChamberIdComparator());
22 }

◆ layersBySuperLayer()

pair< DTLayerId, DTSuperLayerIdComparator > DTRangeMapAccessor::layersBySuperLayer ( DTSuperLayerId  slId)
static

◆ superLayersByChamber()

pair< DTSuperLayerId, DTChamberIdComparator > DTRangeMapAccessor::superLayersByChamber ( DTChamberId  chamberId)
static

Access by chamber objects written into a RangeMap by SL.

Definition at line 25 of file DTRangeMapAccessor.cc.

25  {
26  return make_pair(DTSuperLayerId(chamberId, 0), DTChamberIdComparator());
27 }