CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
CSCLayer Class Reference

#include <CSCLayer.h>

Inheritance diagram for CSCLayer:
GeomDet

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 override
 
const GeomDetTypetype () const override
 
- Public Member Functions inherited from GeomDet
AlignmentPositionError const * alignmentPositionError () const
 Return pointer to alignment errors. More...
 
virtual const GeomDetcomponent (DetId) const
 Returns a component GeomDet given its DetId, if existing. More...
 
virtual std::vector< const
GeomDet * > 
components () const
 Returns direct components, if any. More...
 
int gdetIndex () const
 
DetId geographicalId () const
 The label of this GeomDet. More...
 
 GeomDet (Plane *plane)
 
 GeomDet (const ReferenceCountingPointer< Plane > &plane)
 
int index () const
 
virtual bool isLeaf () const
 is a Unit More...
 
const Surface::PositionTypeposition () const
 The position (origin of the R.F.) More...
 
const Surface::RotationTyperotation () const
 The rotation defining the local R.F. More...
 
void setGdetIndex (int i)
 
void setIndex (int i)
 
const PlanespecificSurface () const
 Same as surface(), kept for backward compatibility. More...
 
virtual SubDetector subDetector () const
 Which subdetector. More...
 
const Planesurface () const
 The nominal surface of the GeomDet. More...
 
virtual const SurfaceDeformationsurfaceDeformation () const
 
GlobalPoint toGlobal (const Local2DPoint &lp) const
 Conversion to the global R.F. from the R.F. of the GeomDet. More...
 
GlobalPoint toGlobal (const Local3DPoint &lp) const
 Conversion to the global R.F. from the R.F. of the GeomDet. More...
 
GlobalVector toGlobal (const LocalVector &lv) const
 Conversion to the global R.F. from the R.F. of the GeomDet. More...
 
LocalPoint toLocal (const GlobalPoint &gp) const
 Conversion to the R.F. of the GeomDet. More...
 
LocalVector toLocal (const GlobalVector &gv) const
 Conversion to the R.F. of the GeomDet. More...
 
virtual ~GeomDet ()
 

Private Attributes

const CSCChambertheChamber
 
const CSCLayerGeometrytheGeometry
 
CSCDetId theId
 

Additional Inherited Members

- Public Types inherited from GeomDet
using SubDetector = GeomDetEnumerators::SubDetector
 
- Protected Member Functions inherited from GeomDet
virtual bool setAlignmentPositionError (const AlignmentPositionError &ape)
 
void setDetId (DetId id)
 

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 26 of file CSCLayer.h.

References GeomDet::setDetId().

27  : GeomDetUnit(sp), theId(id), theChamber(ch), theGeometry(geo) {
28  setDetId(id);
29  }
GeomDet GeomDetUnit
Definition: GeomDet.h:138
void setDetId(DetId id)
Definition: GeomDet.h:99
const CSCChamber * theChamber
Definition: CSCLayer.h:66
const CSCLayerGeometry * theGeometry
Definition: CSCLayer.h:73
CSCDetId theId
Definition: CSCLayer.h:64

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(), AngleConverter::getProcessorPhi(), AngleConverterBase::getProcessorPhi(), AngleConverterBase::isCSCCounterClockwise(), and StubsSimHitsMatcher::match().

4  {
5  float stripX = geometry()->xOfStrip(strip);
6  GlobalPoint globalPoint = surface().toGlobal(LocalPoint(stripX, 0., 0.));
7  return globalPoint;
8 }
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:79
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
float xOfStrip(int strip, float y=0.) const
const CSCLayerGeometry * geometry() const
Definition: CSCLayer.h:44
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().

10  {
11  // float y = yOfWireGroup(wireGroup);
12  // GlobalPoint globalPoint = toGlobal(LocalPoint(0., y, 0.));
13  GlobalPoint globalPoint = surface().toGlobal(geometry()->localCenterOfWireGroup(wireGroup));
14  return globalPoint;
15 }
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:79
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
const CSCLayerGeometry * geometry() const
Definition: CSCLayer.h:44
const CSCChamber* CSCLayer::chamber ( ) const
inline
const CSCLayerGeometry* CSCLayer::geometry ( ) const
inline
CSCDetId CSCLayer::id ( void  ) const
inline
const Topology& CSCLayer::topology ( ) const
inlineoverridevirtual

Reimplemented from GeomDet.

Definition at line 33 of file CSCLayer.h.

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

33 { return *(geometry()->topology()); }
const CSCStripTopology * topology() const
const CSCLayerGeometry * geometry() const
Definition: CSCLayer.h:44
const GeomDetType& CSCLayer::type ( ) const
inlineoverridevirtual

Reimplemented from GeomDet.

Definition at line 31 of file CSCLayer.h.

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

31 { return chamber()->type(); }
const GeomDetType & type() const override
Definition: CSCChamber.h:31
const CSCChamber * chamber() const
Definition: CSCLayer.h:49

Member Data Documentation

const CSCChamber* CSCLayer::theChamber
private

Definition at line 66 of file CSCLayer.h.

Referenced by chamber().

const CSCLayerGeometry* CSCLayer::theGeometry
private

Definition at line 73 of file CSCLayer.h.

Referenced by geometry().

CSCDetId CSCLayer::theId
private

Definition at line 64 of file CSCLayer.h.

Referenced by id().