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:
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 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...
 
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 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
typedef
GeomDetEnumerators::SubDetector 
SubDetector
 
- Protected Member Functions inherited from GeomDet
void setDetId (DetId id)
 
- Protected Attributes inherited from GeomDet
AlignmentPositionErrortheAlignmentPositionError
 

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:114
GeomDet GeomDetUnit
Definition: GeomDet.h:161
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:40
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:40
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 CSCRecoBadChannelsAnalyzer::analyze(), CSCDigitizer::doAction(), CSCDriftSim::getWireHit(), and ValidateGeometry::validateCSCLayerGeometry().

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

Reimplemented from GeomDet.

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

Reimplemented from GeomDet.

Definition at line 33 of file CSCLayer.h.

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

Referenced by cuy.ValElement::__init__().

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