CMS 3D CMS Logo

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

#include <CSCLayer.h>

Inheritance diagram for CSCLayer:
GeomDetUnit 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
 
const GeomDetTypetype () const
 
- Public Member Functions inherited from GeomDetUnit
virtual const GeomDetcomponent (DetId) const
 Returns a component GeomDet given its DetId, if existing. More...
 
virtual std::vector< const
GeomDet * > 
components () const
 DetUnit does not have components. More...
 
 GeomDetUnit (Plane *sp)
 
 GeomDetUnit (const ReferenceCountingPointer< Plane > &plane)
 
virtual SubDetector subDetector () const
 Which subdetector. More...
 
virtual const SurfaceDeformationsurfaceDeformation () const
 
virtual ~GeomDetUnit ()
 
- Public Member Functions inherited from GeomDet
AlignmentPositionErroralignmentPositionError () const
 Return pointer to alignment errors. More...
 
DetId geographicalId () const
 The label of this GeomDet. More...
 
 GeomDet (Plane *plane)
 
 GeomDet (const ReferenceCountingPointer< Plane > &plane)
 
int index () const
 
LocalError const & localAlignmentError () const
 Return local alligment error. 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 setIndex (int i)
 
const PlanespecificSurface () const
 Same as surface(), kept for backward compatibility. More...
 
const Planesurface () const
 The nominal surface of the GeomDet. More...
 
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
typedef
GeomDetEnumerators::SubDetector 
SubDetector
 
- Protected Member Functions inherited from GeomDet
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 28 of file CSCLayer.h.

References GeomDet::setDetId().

28  :
29  GeomDetUnit( sp ), theId( id ), theChamber( ch ), theGeometry( geo ) {
30  setDetId(id);
31 }
void setDetId(DetId id)
Definition: GeomDet.h:97
GeomDetUnit(Plane *sp)
Definition: GeomDetUnit.cc:5
const CSCChamber * theChamber
Definition: CSCLayer.h:70
const CSCLayerGeometry * theGeometry
Definition: CSCLayer.h:77
CSCDetId theId
Definition: CSCLayer.h:68

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().

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:114
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:35
float xOfStrip(int strip, float y=0.) const
Local3DPoint LocalPoint
Definition: LocalPoint.h:11
const CSCLayerGeometry * geometry() const
Definition: CSCLayer.h:47
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 =
14  surface().toGlobal( geometry()->localCenterOfWireGroup( wireGroup ) );
15  return globalPoint;
16 }
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:114
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:35
const CSCLayerGeometry * geometry() const
Definition: CSCLayer.h:47
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().

42 { return theId; }
CSCDetId theId
Definition: CSCLayer.h:68
const Topology& CSCLayer::topology ( ) const
inlinevirtual

Implements GeomDetUnit.

Definition at line 35 of file CSCLayer.h.

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

35 { return *(geometry()->topology()); }
const CSCStripTopology * topology() const
const CSCLayerGeometry * geometry() const
Definition: CSCLayer.h:47
const GeomDetType& CSCLayer::type ( ) const
inlinevirtual

Implements GeomDetUnit.

Definition at line 33 of file CSCLayer.h.

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

Referenced by cuy.ValElement::__init__(), and CSCGeometry::addLayer().

33 { return chamber()->type(); }
const GeomDetType & type() const
Definition: CSCChamber.h:34
const CSCChamber * chamber() const
Definition: CSCLayer.h:52

Member Data Documentation

const CSCChamber* CSCLayer::theChamber
private

Definition at line 70 of file CSCLayer.h.

Referenced by chamber().

const CSCLayerGeometry* CSCLayer::theGeometry
private

Definition at line 77 of file CSCLayer.h.

Referenced by geometry().

CSCDetId CSCLayer::theId
private

Definition at line 68 of file CSCLayer.h.

Referenced by id().