CMS 3D CMS Logo

Public Member Functions | Private Attributes

CSCLayer Class Reference

#include <CSCLayer.h>

Inheritance diagram for CSCLayer:
GeomDetUnit GeomDet

List of all members.

Public Member Functions

GlobalPoint centerOfStrip (int strip) const
GlobalPoint centerOfWireGroup (int wireGroup) const
const CSCChamberchamber () const
 CSCLayer (const BoundPlane::BoundPlanePointer sp, CSCDetId id, const CSCChamber *ch, const CSCLayerGeometry *geo)
const CSCLayerGeometrygeometry () const
CSCDetId id () const
const Topologytopology () const
const GeomDetTypetype () const

Private Attributes

const CSCChambertheChamber
const CSCLayerGeometrytheGeometry
CSCDetId theId

Detailed Description

Describes the geometry of the lowest-level detector unit modelled by a C++ object in the endcap muon CSC system.

Author:
Tim Cox

Definition at line 24 of file CSCLayer.h.


Constructor & Destructor Documentation

CSCLayer::CSCLayer ( const BoundPlane::BoundPlanePointer  sp,
CSCDetId  id,
const CSCChamber ch,
const CSCLayerGeometry geo 
) [inline]

Definition at line 28 of file CSCLayer.h.

References GeomDet::setDetId().

                                                                                                                   : 
  GeomDetUnit( sp ), theId( id ), theChamber( ch ), theGeometry( geo ) {
    setDetId(id);
}

Member Function Documentation

GlobalPoint CSCLayer::centerOfStrip ( int  strip) const

Global point at center of the given strip, Must be in CSCLayer so it can return global coordinates.

Definition at line 4 of file CSCLayer.cc.

References geometry(), GeomDet::surface(), Surface::toGlobal(), and CSCLayerGeometry::xOfStrip().

Referenced by CSCSectorReceiverLUT::getGlobalPhiValue().

                                                   {
  float stripX = geometry()->xOfStrip(strip);
  GlobalPoint globalPoint = surface().toGlobal(LocalPoint(stripX, 0., 0.));
  return globalPoint;
}
GlobalPoint CSCLayer::centerOfWireGroup ( int  wireGroup) const

Global point at centre of the given wire group. Must be in CSCLayer so it can return global coordinates.

Definition at line 10 of file CSCLayer.cc.

References geometry(), GeomDet::surface(), and Surface::toGlobal().

Referenced by CSCSectorReceiverLUT::getGlobalEtaValue(), and CSCWireElectronicsSim::timeOfFlightCalibration().

                                                           {
  //  float y = yOfWireGroup(wireGroup);
  //  GlobalPoint globalPoint = toGlobal(LocalPoint(0., y, 0.));
  GlobalPoint globalPoint = 
    surface().toGlobal( geometry()->localCenterOfWireGroup( wireGroup ) );
  return globalPoint;
}
const CSCChamber* CSCLayer::chamber ( ) const [inline]
const CSCLayerGeometry* CSCLayer::geometry ( ) const [inline]
CSCDetId CSCLayer::id ( void  ) const [inline]

Get the (concrete) DetId

Definition at line 42 of file CSCLayer.h.

References theId.

Referenced by CSCDigitizer::doAction(), CSCDriftSim::getWireHit(), and ValidateGeometry::validateCSCLayerGeometry().

{ return theId; }
const Topology& CSCLayer::topology ( ) const [inline, virtual]

Implements GeomDetUnit.

Definition at line 35 of file CSCLayer.h.

References geometry(), and CSCLayerGeometry::topology().

{ return *(geometry()->topology()); }
const GeomDetType& CSCLayer::type ( ) const [inline, virtual]

Implements GeomDetUnit.

Definition at line 33 of file CSCLayer.h.

References chamber(), and CSCChamber::type().

Referenced by CSCGeometry::addLayer().

{ return chamber()->type(); }

Member Data Documentation

const CSCChamber* CSCLayer::theChamber [private]

Definition at line 70 of file CSCLayer.h.

Referenced by chamber().

Definition at line 77 of file CSCLayer.h.

Referenced by geometry().

Definition at line 68 of file CSCLayer.h.

Referenced by id().