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 (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
void setDetId (DetId id)
 
- Protected Attributes inherited from GeomDet
AlignmentPositionErrortheAlignmentPositionError = 0
 

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:120
GeomDet GeomDetUnit
Definition: GeomDet.h:168
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 chamber(), CSCSectorReceiverLUT::getGlobalPhiValue(), and AngleConverter::getProcessorPhi().

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:106
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:32
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:42
float xOfStrip(int strip, float y=0.) const
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 chamber(), 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:106
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:42
const CSCLayerGeometry * geometry() const
Definition: CSCLayer.h:47
const CSCChamber* CSCLayer::chamber ( ) const
inline
const CSCLayerGeometry* CSCLayer::geometry ( ) const
inline

Access to object handling layer geomerty

Definition at line 47 of file CSCLayer.h.

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(), CSCComparatorDigiFitter::fit(), CSCUpgradeMotherboardLUTGenerator::gemPadToCscHsLUT(), CSCSectorReceiverLUT::getGlobalEtaValue(), CSCTriggerPrimitivesReader::getGlobalPosition(), CSCWireHitSim::getIonizationClusters(), CSCCathodeLCTAnalyzer::getStripPhi(), CSCAnodeLCTAnalyzer::getWGEta(), CSCDriftSim::getWireHit(), CSCMake2DRecHit::hitFromStripAndWire(), CSCMake2DRecHit::isHitInFiducial(), Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), 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().

47 { return theGeometry; }
const CSCLayerGeometry * theGeometry
Definition: CSCLayer.h:77
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
inlineoverridevirtual

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
inlineoverridevirtual

Reimplemented from GeomDet.

Definition at line 33 of file CSCLayer.h.

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

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

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