Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:14:26

0001 /** \file
0002  *
0003  *  \author : Stefano Lacaprara - INFN Padova <stefano.lacaprara@pd.infn.it>
0004  *
0005  */
0006 
0007 /* This Class Header */
0008 #include "Geometry/DTGeometry/interface/DTLayer.h"
0009 
0010 /* Collaborating Class Header */
0011 #include "Geometry/DTGeometry/interface/DTSuperLayer.h"
0012 
0013 /* Base Class Headers */
0014 
0015 /* C++ Headers */
0016 
0017 /* ====================================================================== */
0018 
0019 /* Constructor */
0020 DTLayer::DTLayer(const DTLayerId& id,
0021                  ReferenceCountingPointer<BoundPlane>& plane,
0022                  const DTTopology& topo,
0023                  const DTLayerType& type,
0024                  const DTSuperLayer* sl)
0025     : GeomDetUnit(*&plane), theId(id), theTopo(topo), theType(type), theSL(sl) {
0026   setDetId(id);
0027 }
0028 
0029 /* Destructor */
0030 DTLayer::~DTLayer() {}
0031 
0032 /* Operations */
0033 const Topology& DTLayer::topology() const { return theTopo; }
0034 
0035 const GeomDetType& DTLayer::type() const { return theType; }
0036 
0037 const DTTopology& DTLayer::specificTopology() const { return theTopo; }
0038 
0039 DTLayerId DTLayer::id() const { return theId; }
0040 
0041 bool DTLayer::operator==(const DTLayer& l) const { return id() == l.id(); }
0042 
0043 const DTSuperLayer* DTLayer::superLayer() const { return theSL; }
0044 
0045 const DTChamber* DTLayer::chamber() const { return (theSL) ? theSL->chamber() : nullptr; }
0046 
0047 std::vector<const GeomDet*> DTLayer::components() const { return std::vector<const GeomDet*>(); }