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
CSCChamber Class Reference

#include <CSCChamber.h>

Inheritance diagram for CSCChamber:
GeomDet

Public Member Functions

void addComponent (int n, const CSCLayer *gd)
 Add a layer. More...
 
virtual const GeomDetcomponent (DetId id) const
 Return the layer with a given id in this chamber. More...
 
virtual std::vector< const
GeomDet * > 
components () const
 Return the layers in this chamber. More...
 
 CSCChamber (const BoundPlane::BoundPlanePointer bp, CSCDetId id, const CSCChamberSpecs *specs)
 
CSCDetId id () const
 Get the (concrete) DetId. More...
 
const CSCLayerlayer (CSCDetId id) const
 Return the layer corresponding to the given id. More...
 
const CSCLayerlayer (int ilay) const
 
const std::vector< const
CSCLayer * > & 
layers () const
 Return all layers. More...
 
const CSCChamberSpecsspecs () const
 
virtual SubDetector subDetector () const
 Which subdetector. More...
 
const GeomDetTypetype () const
 
 ~CSCChamber ()
 
- Public Member Functions inherited from GeomDet
AlignmentPositionError const * alignmentPositionError () const
 Return pointer to alignment errors. 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...
 
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 const Topologytopology () const
 
virtual ~GeomDet ()
 

Private Attributes

const CSCChamberSpecstheChamberSpecs
 
std::vector< const CSCLayer * > theComponents
 

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 second-level detector unit modelled by a C++ object in the endcap muon CSC system. A CSCChamber is composed of 6 CSCLayer's and is, of course, a Cathode Strip Chamber Chamber!

Author
Tim Cox

Definition at line 22 of file CSCChamber.h.

Constructor & Destructor Documentation

CSCChamber::CSCChamber ( const BoundPlane::BoundPlanePointer  bp,
CSCDetId  id,
const CSCChamberSpecs specs 
)
inline

Definition at line 26 of file CSCChamber.h.

References GeomDet::setDetId().

26  :
27  GeomDet( bp ), theChamberSpecs( specs ),
28  theComponents(6,(const CSCLayer*)0) {
29  setDetId(id);
30  }
void setDetId(DetId id)
Definition: GeomDet.h:120
std::vector< const CSCLayer * > theComponents
Definition: CSCChamber.h:69
const CSCChamberSpecs * theChamberSpecs
Definition: CSCChamber.h:68
GeomDet(Plane *plane)
Definition: GeomDet.h:34
CSCChamber::~CSCChamber ( )

Definition at line 11 of file CSCChamber.cc.

References i, and theComponents.

11  {
12  // Delete all layers
13  for (std::vector<const CSCLayer*>::const_iterator i=theComponents.begin();
14  i!=theComponents.end(); ++i){
15  delete (*i);
16  }
17 }
int i
Definition: DBlmapReader.cc:9
std::vector< const CSCLayer * > theComponents
Definition: CSCChamber.h:69

Member Function Documentation

void CSCChamber::addComponent ( int  n,
const CSCLayer gd 
)

Add a layer.

Definition at line 31 of file CSCChamber.cc.

References theComponents.

31  {
32 
33  if ((n>0) && (n<7))
34  theComponents[n-1] = gd;
35  else
36  edm::LogError("CSC") << "Each chamber has only SIX layers.";
37 }
std::vector< const CSCLayer * > theComponents
Definition: CSCChamber.h:69
const GeomDet * CSCChamber::component ( DetId  id) const
virtual

Return the layer with a given id in this chamber.

Reimplemented from GeomDet.

Definition at line 26 of file CSCChamber.cc.

References CSCDetId, and layer().

26  {
27  return layer(CSCDetId(id.rawId()));
28 }
const CSCLayer * layer(CSCDetId id) const
Return the layer corresponding to the given id.
Definition: CSCChamber.cc:39
std::vector< const GeomDet * > CSCChamber::components ( ) const
virtual

Return the layers in this chamber.

Reimplemented from GeomDet.

Definition at line 21 of file CSCChamber.cc.

References theComponents.

21  {
22  return std::vector <const GeomDet*>(theComponents.begin(),theComponents.end());
23 }
std::vector< const CSCLayer * > theComponents
Definition: CSCChamber.h:69
CSCDetId CSCChamber::id ( void  ) const
inline
const CSCLayer * CSCChamber::layer ( CSCDetId  id) const

Return the layer corresponding to the given id.

Definition at line 39 of file CSCChamber.cc.

References CSCDetId::chamberId(), id(), and CSCDetId::layer().

Referenced by CSCSegAlgoSK::areHitsCloseInGlobalPhi(), CSCSegAlgoTC::areHitsCloseInGlobalPhi(), CSCSegAlgoTC::buildSegments(), CSCSegAlgoSK::buildSegments(), CSCSegAlgoDF::buildSegments(), CSCSectorReceiverLUT::calcGlobalPhiME(), component(), CSCCondSegFit::correctTheCovX(), CSCSegFit::derivativeMatrix(), GEMCSCSegFit::derivativeMatrix(), CSCOfflineMonitor::doEfficiencies(), CSCValidation::doEfficiencies(), CSCSegAlgoSK::dumpHits(), CSCSegAlgoTC::dumpHits(), CSCCondSegFit::fit(), CSCSegFit::fit2(), GEMCSCSegFit::fit2(), CSCSegFit::fitlsq(), GEMCSCSegFit::fitlsq(), CSCSectorReceiverLUT::getGlobalEtaValue(), AngleConverter::getProcessorPhi(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), CSCSegAlgoShowering::isHitNearSegment(), CSCSegAlgoSK::isHitNearSegment(), CSCSegAlgoTC::isHitNearSegment(), CSCSegAlgoDF::isHitNearSegment(), CSCSegAlgoSK::phiAtZ(), CSCSegAlgoTC::phiAtZ(), CSCSegAlgoST::prune_bad_hits(), CSCSegAlgoShowering::pruneFromResidual(), CSCSegAlgoDF::pruneFromResidual(), CSCEfficiency::recHitSegment_Efficiencies(), CSCAnodeLCTProcessor::run(), CSCCathodeLCTProcessor::run(), CSCCondSegFit::setChi2(), CSCSegFit::setChi2(), GEMCSCSegFit::setChi2(), CSCSegAlgoShowering::showerSeg(), CSCSegAlgoSK::tryAddingHitsToSegment(), and CSCSegAlgoTC::tryAddingHitsToSegment().

39  {
40  if (iid.chamberId()!=id()) return 0; // not in this chamber
41  return layer(iid.layer());
42 }
CSCDetId id() const
Get the (concrete) DetId.
Definition: CSCChamber.h:37
const CSCLayer * layer(CSCDetId id) const
Return the layer corresponding to the given id.
Definition: CSCChamber.cc:39
const CSCLayer * CSCChamber::layer ( int  ilay) const

Return the given layer. Layers are numbered 1-6.

Definition at line 44 of file CSCChamber.cc.

References theComponents.

Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

44  {
45 
46  if ((ilay>0) && (ilay<7))
47  return theComponents[ilay-1];
48  else {
49  return 0;
50  }
51 }
std::vector< const CSCLayer * > theComponents
Definition: CSCChamber.h:69
const std::vector< const CSCLayer* >& CSCChamber::layers ( ) const
inline

Return all layers.

Definition at line 57 of file CSCChamber.h.

References theComponents.

Referenced by FWRecoGeometryESProducer::addCSCGeometry().

57 { return theComponents; }
std::vector< const CSCLayer * > theComponents
Definition: CSCChamber.h:69
const CSCChamberSpecs* CSCChamber::specs ( ) const
inline
virtual SubDetector CSCChamber::subDetector ( ) const
inlinevirtual

Which subdetector.

Reimplemented from GeomDet.

Definition at line 40 of file CSCChamber.h.

References GeomDetEnumerators::CSC.

const GeomDetType& CSCChamber::type ( ) const
inlinevirtual

Reimplemented from GeomDet.

Definition at line 34 of file CSCChamber.h.

References specs().

Referenced by cuy.ValElement::__init__(), and CSCLayer::type().

34 { return *(specs()); }
const CSCChamberSpecs * specs() const
Definition: CSCChamber.h:42

Member Data Documentation

const CSCChamberSpecs* CSCChamber::theChamberSpecs
private

Definition at line 68 of file CSCChamber.h.

Referenced by specs().

std::vector< const CSCLayer* > CSCChamber::theComponents
private

Definition at line 69 of file CSCChamber.h.

Referenced by addComponent(), components(), layer(), layers(), and ~CSCChamber().