CMS 3D CMS Logo

CSCLayer Class Reference

Describes the geometry of the lowest-level detector unit modelled by a C++ object in the endcap muon CSC system. More...

#include <Geometry/CSCGeometry/interface/CSCLayer.h>

Inheritance diagram for CSCLayer:

GeomDetUnit GeomDet

List of all members.

Public Member Functions

GlobalPoint centerOfStrip (int strip) const
 Global point at center of the given strip, Must be in CSCLayer so it can return global coordinates.
GlobalPoint centerOfWireGroup (int wireGroup) const
 Global point at centre of the given wire group.
const CSCChamberchamber () const
 Access to parent chamber.
 CSCLayer (const BoundPlane::BoundPlanePointer sp, CSCDetId id, const CSCChamber *ch, const CSCLayerGeometry *geo)
DetId geographicalId () const
 The label of this GeomDet.
const CSCLayerGeometrygeometry () const
 Access to object handling layer geomerty.
CSCDetId id () const
 Get the (concrete) DetId.
const Topologytopology () const
const GeomDetTypetype () const

Private Attributes

const CSCChambertheChamber
const CSCLayerGeometrytheGeometry
CSCDetId theId


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.

00028                                                                                                                    : 
00029   GeomDetUnit( sp ), theId( id ), theChamber( ch ), theGeometry( geo ) {}


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

00004                                                    {
00005   float stripX = geometry()->xOfStrip(strip);
00006   GlobalPoint globalPoint = surface().toGlobal(LocalPoint(stripX, 0., 0.));
00007   return globalPoint;
00008 }

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

00010                                                            {
00011   //  float y = yOfWireGroup(wireGroup);
00012   //  GlobalPoint globalPoint = toGlobal(LocalPoint(0., y, 0.));
00013   GlobalPoint globalPoint = 
00014     surface().toGlobal( geometry()->localCenterOfWireGroup( wireGroup ) );
00015   return globalPoint;
00016 }

const CSCChamber* CSCLayer::chamber (  )  const [inline]

Access to parent chamber.

Definition at line 51 of file CSCLayer.h.

References theChamber.

Referenced by CSCComparatorDigiValidation::analyze(), CSCWireDigiValidation::analyze(), CSCRecHit2DValidation::analyze(), GlobalRecHitsProducer::fillMuon(), GlobalRecHitsAnalyzer::fillMuon(), CSCXonStrip_MatchGatti::findXOnStrip(), CSCDriftSim::getWireHit(), CSCMake2DRecHit::hitFromStripAndWire(), CSCHitFromStripOnly::runStrip(), CSCBaseElectronicsSim::simulate(), CSCStripHitSim::simulate(), and type().

00051 { return theChamber; }

DetId CSCLayer::geographicalId (  )  const [inline, virtual]

The label of this GeomDet.

Implements GeomDet.

Definition at line 35 of file CSCLayer.h.

References theId.

Referenced by CSCGeometry::addLayer(), and CSCBaseElectronicsSim::layerId().

00035 { return theId; }

const CSCLayerGeometry* CSCLayer::geometry (  )  const [inline]

Access to object handling layer geomerty.

Definition at line 46 of file CSCLayer.h.

References theGeometry.

Referenced by CSCEfficiency::analyze(), CSCSectorReceiverLUT::calcGlobalPhiME(), CSCEfficiency::CalculateEfficiencies(), centerOfStrip(), centerOfWireGroup(), CSCValidation::doEfficiencies(), CSCSectorReceiverLUT::getGlobalEtaValue(), CSCWireHitSim::getIonizationClusters(), VisCSCChamberDrawer::getOutline(), CSCDriftSim::getWireHit(), CSCMake2DRecHit::hitFromStripAndWire(), CSCStripElectronicsSim::initParameters(), CSCWireElectronicsSim::initParameters(), CSCMake2DRecHit::isHitInFiducial(), CSCRecHit2DValidation::plotResolution(), CSCStripDigiValidation::plotResolution(), CSCWireDigiValidation::plotResolution(), CSCAnodeLCTProcessor::run(), CSCCathodeLCTProcessor::run(), CSCHitFromStripOnly::runStrip(), CSCHitFromWireOnly::runWire(), CSCWireHitSim::simulate(), CSCStripHitSim::simulate(), topology(), VisCSCStripDigiTwig::update(), VisCSCALCTDigiTwig::update(), VisCSCCorrelatedLCTDigiTwig::update(), VisCSCComparatorDigiTwig::update(), VisCSCCLCTDigiTwig::update(), and VisCSCWireDigiTwig::update().

00046 { return theGeometry; }

CSCDetId CSCLayer::id ( void   )  const [inline]

Get the (concrete) DetId.

Definition at line 41 of file CSCLayer.h.

References theId.

Referenced by CSCDigitizer::doAction(), and CSCDriftSim::getWireHit().

00041 { return theId; }

const Topology& CSCLayer::topology (  )  const [inline, virtual]

Implements GeomDetUnit.

Definition at line 33 of file CSCLayer.h.

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

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

const GeomDetType& CSCLayer::type (  )  const [inline, virtual]

Implements GeomDetUnit.

Definition at line 31 of file CSCLayer.h.

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

Referenced by CSCGeometry::addLayer().

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


Member Data Documentation

const CSCChamber* CSCLayer::theChamber [private]

Definition at line 69 of file CSCLayer.h.

Referenced by chamber().

const CSCLayerGeometry* CSCLayer::theGeometry [private]

Definition at line 76 of file CSCLayer.h.

Referenced by geometry().

CSCDetId CSCLayer::theId [private]

Definition at line 67 of file CSCLayer.h.

Referenced by geographicalId(), and id().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:17:21 2009 for CMSSW by  doxygen 1.5.4