CMS 3D CMS Logo

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 (const ReferenceCountingPointer< Plane > &plane)
 
 GeomDet (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::CSCLayer ( const BoundPlane::BoundPlanePointer sp,
CSCDetId  id,
const CSCChamber ch,
const CSCLayerGeometry geo 
)
inline

Definition at line 26 of file CSCLayer.h.

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

References GeomDet::setDetId().

Member Function Documentation

◆ centerOfStrip()

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.

4  {
5  float stripX = geometry()->xOfStrip(strip);
6  GlobalPoint globalPoint = surface().toGlobal(LocalPoint(stripX, 0., 0.));
7  return globalPoint;
8 }

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

Referenced by CSCSectorReceiverLUT::getGlobalPhiValue(), and AngleConverter::getProcessorPhi().

◆ centerOfWireGroup()

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.

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 }

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

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

◆ chamber()

const CSCChamber* CSCLayer::chamber ( ) const
inline

◆ geometry()

const CSCLayerGeometry* CSCLayer::geometry ( ) const
inline

Access to object handling layer geomerty

Definition at line 44 of file CSCLayer.h.

44 { return theGeometry; }

References theGeometry.

Referenced by FWRecoGeometryESProducer::addCSCGeometry(), MuonCSCChamberResidual::addResidual(), CSCRecoBadChannelsAnalyzer::analyze(), CSCSectorReceiverLUT::calcGlobalPhiME(), CSCPairResidualsConstraint::calculatePhi(), centerOfStrip(), centerOfWireGroup(), CSCUpgradeMotherboardLUTGenerator::cscHsToGemPadLUT(), CSCUpgradeMotherboardLUTGenerator::cscWgToEtaLimitsLUT(), CSCOfflineMonitor::doEfficiencies(), CSCValidation::doEfficiencies(), MuonShowerDigiFiller::fill(), CSCUpgradeMotherboardLUTGenerator::gemPadToCscHsLUT(), CSCUpgradeMotherboardLUTGenerator::gemRollToCscWgLUT(), CSCSectorReceiverLUT::getGlobalEtaValue(), CSCTriggerPrimitivesReader::getGlobalPosition(), CSCWireHitSim::getIonizationClusters(), CSCCathodeLCTAnalyzer::getStripPhi(), CSCAnodeLCTAnalyzer::getWGEta(), CSCDriftSim::getWireHit(), CSCMake2DRecHit::hitFromStripAndWire(), CSCMake2DRecHit::isHitInFiducial(), CSCCathodeLCTAnalyzer::nearestHS(), CSCAnodeLCTAnalyzer::nearestWG(), CSCWireDigiValidation::plotResolution(), CSCStripDigiValidation::plotResolution(), CSCRecHit2DValidation::plotResolution(), CSCCathodeLCTAnalyzer::preselectDigis(), CSCEfficiency::recHitSegment_Efficiencies(), CSCCathodeLCTProcessor::run(), CSCAnodeLCTProcessor::run(), CSCHitFromWireOnly::runWire(), CSCBaseElectronicsSim::setLayer(), CSCStripHitSim::simulate(), CSCWireHitSim::simulate(), topology(), and ValidateGeometry::validateCSCLayerGeometry().

◆ id()

CSCDetId CSCLayer::id ( void  ) const
inline

Get the (concrete) DetId

Definition at line 39 of file CSCLayer.h.

39 { return theId; }

References theId.

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

◆ topology()

const Topology& CSCLayer::topology ( ) const
inlineoverridevirtual

Reimplemented from GeomDet.

Definition at line 33 of file CSCLayer.h.

33 { return *(geometry()->topology()); }

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

◆ type()

const GeomDetType& CSCLayer::type ( ) const
inlineoverridevirtual

Reimplemented from GeomDet.

Definition at line 31 of file CSCLayer.h.

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

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

Member Data Documentation

◆ theChamber

const CSCChamber* CSCLayer::theChamber
private

Definition at line 66 of file CSCLayer.h.

Referenced by chamber().

◆ theGeometry

const CSCLayerGeometry* CSCLayer::theGeometry
private

Definition at line 73 of file CSCLayer.h.

Referenced by geometry().

◆ theId

CSCDetId CSCLayer::theId
private

Definition at line 64 of file CSCLayer.h.

Referenced by id().

GeomDet::setDetId
void setDetId(DetId id)
Definition: GeomDet.h:99
CSCLayer::chamber
const CSCChamber * chamber() const
Definition: CSCLayer.h:49
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
align::LocalPoint
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
GeomDet::surface
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
GeomDetUnit
GeomDet GeomDetUnit
Definition: GeomDet.h:138
CSCLayerGeometry::xOfStrip
float xOfStrip(int strip, float y=0.) const
Definition: CSCLayerGeometry.h:175
Surface::toGlobal
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:79
CSCLayerGeometry::topology
const CSCStripTopology * topology() const
Definition: CSCLayerGeometry.h:272
CSCLayer::geometry
const CSCLayerGeometry * geometry() const
Definition: CSCLayer.h:44
Point3DBase< float, GlobalTag >
CSCChamber::type
const GeomDetType & type() const override
Definition: CSCChamber.h:31
CSCLayer::theChamber
const CSCChamber * theChamber
Definition: CSCLayer.h:66
CSCLayer::theGeometry
const CSCLayerGeometry * theGeometry
Definition: CSCLayer.h:73
CSCLayer::theId
CSCDetId theId
Definition: CSCLayer.h:64