CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
TrackingGeometry Class Referenceabstract

#include <TrackingGeometry.h>

Inheritance diagram for TrackingGeometry:
CSCGeometry DTGeometry GEMGeometry GlobalTrackingGeometry ME0Geometry MTDGeometry RPCGeometry TrackerGeometry

Public Types

using DetContainer = std::vector< const GeomDet * >
 
using DetIdContainer = std::vector< DetId >
 
using DetTypeContainer = std::vector< const GeomDetType * >
 
using mapIdToDet = std::unordered_map< unsigned int, const GeomDet * >
 
using mapIdToDetUnit = std::unordered_map< unsigned int, const GeomDet * >
 

Public Member Functions

virtual const DetIdContainerdetIds () const =0
 Returm a vector of all GeomDet DetIds (including those of GeomDetUnits) More...
 
virtual const DetContainerdets () const =0
 Returm a vector of all GeomDet (including all GeomDetUnits) More...
 
virtual const DetTypeContainerdetTypes () const =0
 Return a vector of all det types. More...
 
virtual const DetIdContainerdetUnitIds () const =0
 Returm a vector of all GeomDetUnit DetIds. More...
 
virtual const DetContainerdetUnits () const =0
 Returm a vector of all GeomDet. More...
 
virtual const GeomDetidToDet (DetId) const =0
 
virtual const GeomDetidToDetUnit (DetId) const =0
 Return the pointer to the GeomDetUnit corresponding to a given DetId. More...
 
virtual ~TrackingGeometry ()
 Destructor. More...
 

Detailed Description

Base class for the geometry of tracking detectors. A geometry contains both the GeomDetUnit s and bigger composite structures, which are concrete GeomDet s.

There are therefore 2 kind of methods in the interface:

Definition at line 26 of file TrackingGeometry.h.

Member Typedef Documentation

◆ DetContainer

using TrackingGeometry::DetContainer = std::vector<const GeomDet*>

Definition at line 29 of file TrackingGeometry.h.

◆ DetIdContainer

Definition at line 30 of file TrackingGeometry.h.

◆ DetTypeContainer

using TrackingGeometry::DetTypeContainer = std::vector<const GeomDetType*>

Definition at line 28 of file TrackingGeometry.h.

◆ mapIdToDet

using TrackingGeometry::mapIdToDet = std::unordered_map<unsigned int, const GeomDet*>

Definition at line 32 of file TrackingGeometry.h.

◆ mapIdToDetUnit

using TrackingGeometry::mapIdToDetUnit = std::unordered_map<unsigned int, const GeomDet*>

Definition at line 31 of file TrackingGeometry.h.

Constructor & Destructor Documentation

◆ ~TrackingGeometry()

virtual TrackingGeometry::~TrackingGeometry ( )
inlinevirtual

Destructor.

Definition at line 35 of file TrackingGeometry.h.

35 {}

Member Function Documentation

◆ detIds()

virtual const DetIdContainer& TrackingGeometry::detIds ( ) const
pure virtual

Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)

Implemented in TrackerGeometry, CSCGeometry, DTGeometry, GEMGeometry, RPCGeometry, GlobalTrackingGeometry, ME0Geometry, and MTDGeometry.

◆ dets()

virtual const DetContainer& TrackingGeometry::dets ( ) const
pure virtual

◆ detTypes()

virtual const DetTypeContainer& TrackingGeometry::detTypes ( ) const
pure virtual

Return a vector of all det types.

Implemented in TrackerGeometry, CSCGeometry, DTGeometry, GEMGeometry, RPCGeometry, GlobalTrackingGeometry, MTDGeometry, and ME0Geometry.

◆ detUnitIds()

virtual const DetIdContainer& TrackingGeometry::detUnitIds ( ) const
pure virtual

Returm a vector of all GeomDetUnit DetIds.

Implemented in TrackerGeometry, CSCGeometry, DTGeometry, GEMGeometry, RPCGeometry, GlobalTrackingGeometry, ME0Geometry, and MTDGeometry.

◆ detUnits()

virtual const DetContainer& TrackingGeometry::detUnits ( ) const
pure virtual

◆ idToDet()

virtual const GeomDet* TrackingGeometry::idToDet ( DetId  ) const
pure virtual

◆ idToDetUnit()

virtual const GeomDet* TrackingGeometry::idToDetUnit ( DetId  ) const
pure virtual

Return the pointer to the GeomDetUnit corresponding to a given DetId.

Implemented in CSCGeometry, TrackerGeometry, DTGeometry, GEMGeometry, RPCGeometry, GlobalTrackingGeometry, ME0Geometry, and MTDGeometry.

Referenced by GlobalTrackingGeometry::idToDetUnit().