CMS 3D CMS Logo

Public Member Functions | Private Attributes

GlobalDetLayerGeometry Class Reference

#include <GlobalDetLayerGeometry.h>

Inheritance diagram for GlobalDetLayerGeometry:
DetLayerGeometry

List of all members.

Public Member Functions

 GlobalDetLayerGeometry (const GeometricSearchTracker *tracker, const MuonDetLayerGeometry *muon)
virtual const DetLayeridToLayer (const DetId &detId) const
 Give the DetId of a module, returns the pointer to the corresponding DetLayer.
virtual ~GlobalDetLayerGeometry ()

Private Attributes

const MuonDetLayerGeometrymuon_
const GeometricSearchTrackertracker_

Detailed Description

Definition at line 19 of file GlobalDetLayerGeometry.h.


Constructor & Destructor Documentation

GlobalDetLayerGeometry::GlobalDetLayerGeometry ( const GeometricSearchTracker tracker,
const MuonDetLayerGeometry muon 
) [inline]

Definition at line 21 of file GlobalDetLayerGeometry.h.

                                                         :
  tracker_(tracker),muon_(muon){};
virtual GlobalDetLayerGeometry::~GlobalDetLayerGeometry ( ) [inline, virtual]

Definition at line 25 of file GlobalDetLayerGeometry.h.

{}

Member Function Documentation

const DetLayer * GlobalDetLayerGeometry::idToLayer ( const DetId detId) const [virtual]

Give the DetId of a module, returns the pointer to the corresponding DetLayer.

Reimplemented from DetLayerGeometry.

Definition at line 5 of file GlobalDetLayerGeometry.cc.

References DetId::det(), Exception, MuonDetLayerGeometry::idToLayer(), GeometricSearchTracker::idToLayer(), muon_, and tracker_.

                                                         {
  if(detId.det() ==1) return tracker_->idToLayer(detId);
  else if(detId.det() ==2) return muon_->idToLayer(detId);
  else{
    throw cms::Exception("DetLayers") 
      << "Error: called GlobalDetLayerGeometry::idToLayer() for a detId which is neither Tracker nor Muon";      
  }

}

Member Data Documentation

Definition at line 40 of file GlobalDetLayerGeometry.h.

Referenced by idToLayer().

Definition at line 39 of file GlobalDetLayerGeometry.h.

Referenced by idToLayer().