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 /* Operations */
33 const Topology& DTLayer::topology() const { return theTopo; }
34 
35 const GeomDetType& DTLayer::type() const { return theType; }
36 
37 const DTTopology& DTLayer::specificTopology() const { return theTopo; }
38 
39 DTLayerId DTLayer::id() const { return theId; }
40 
41 bool DTLayer::operator==(const DTLayer& l) const { return id() == l.id(); }
42 
43 const DTSuperLayer* DTLayer::superLayer() const { return theSL; }
44 
45 const DTChamber* DTLayer::chamber() const { return (theSL) ? theSL->chamber() : nullptr; }
46 
47 std::vector<const GeomDet*> DTLayer::components() const { return std::vector<const GeomDet*>(); }
void setDetId(DetId id)
Definition: GeomDet.h:99
const DTSuperLayer * theSL
Definition: DTLayer.h:66
DTLayer(const DTLayerId &id, ReferenceCountingPointer< BoundPlane > &plane, const DTTopology &topo, const DTLayerType &type, const DTSuperLayer *sl=nullptr)
Definition: DTLayer.cc:20
const DTChamber * chamber() const
Definition: DTLayer.cc:45
bool operator==(const DTLayer &l) const
True if the id are the same.
Definition: DTLayer.cc:41
const DTChamber * chamber() const
Definition: DTSuperLayer.cc:52
DTLayerType theType
Definition: DTLayer.h:64
std::vector< const GeomDet * > components() const override
A Layer has no components.
Definition: DTLayer.cc:47
DTLayerId theId
Definition: DTLayer.h:62
const DTTopology & specificTopology() const
Definition: DTLayer.cc:37
DTLayerId id() const
Return the DetId of this SL.
Definition: DTLayer.cc:39
const GeomDetType & type() const override
Definition: DTLayer.cc:35
~DTLayer() override
Definition: DTLayer.cc:30
DTTopology theTopo
Definition: DTLayer.h:63
const DTSuperLayer * superLayer() const
Definition: DTLayer.cc:43
const Topology & topology() const override
Definition: DTLayer.cc:33