CMS 3D CMS Logo

DTLayer.cc
Go to the documentation of this file.
1 
7 /* This Class Header */
9 
10 /* Collaborating Class Header */
12 
13 /* Base Class Headers */
14 
15 /* C++ Headers */
16 
17 /* ====================================================================== */
18 
19 /* Constructor */
22  const DTTopology& topo,
23  const DTLayerType& type,
24  const DTSuperLayer* sl) :
25  GeomDetUnit(*&plane), theId(id) , theTopo(topo), theType(type) , theSL(sl){
26  setDetId(id);
27 }
28 
29 /* Destructor */
31 }
32 
33 /* Operations */
34 const Topology& DTLayer::topology() const {
35  return theTopo;
36 }
37 
38 const GeomDetType& DTLayer::type() const{
39  return theType;
40 }
41 
43  return theTopo;
44 }
45 
47  return theId;
48 }
49 
50 bool DTLayer::operator==(const DTLayer& l) const {
51  return id()==l.id();
52 }
53 
55  return theSL;
56 }
57 
58 const DTChamber* DTLayer::chamber() const {
59  return (theSL) ? theSL->chamber() : nullptr;
60 }
61 
62 std::vector< const GeomDet*> DTLayer::components() const {
63  return std::vector< const GeomDet*>();
64 }
type
Definition: HCALResponse.h:21
void setDetId(DetId id)
Definition: GeomDet.h:120
DTLayerId id() const
Return the DetId of this SL.
Definition: DTLayer.cc:46
const DTSuperLayer * theSL
Definition: DTLayer.h:69
bool operator==(const DTLayer &l) const
True if the id are the same.
Definition: DTLayer.cc:50
DTLayerType theType
Definition: DTLayer.h:67
const DTTopology & specificTopology() const
Definition: DTLayer.cc:42
DTLayer(const DTLayerId &id, ReferenceCountingPointer< BoundPlane > &plane, const DTTopology &topo, const DTLayerType &type, const DTSuperLayer *sl=0)
Definition: DTLayer.cc:20
DTLayerId theId
Definition: DTLayer.h:65
const DTChamber * chamber() const
Definition: DTLayer.cc:58
const DTChamber * chamber() const
Definition: DTSuperLayer.cc:64
const DTSuperLayer * superLayer() const
Definition: DTLayer.cc:54
~DTLayer() override
Definition: DTLayer.cc:30
DTTopology theTopo
Definition: DTLayer.h:66
std::vector< const GeomDet * > components() const override
A Layer has no components.
Definition: DTLayer.cc:62
const GeomDetType & type() const override
Definition: DTLayer.cc:38
const Topology & topology() const override
Definition: DTLayer.cc:34