CMS 3D CMS Logo

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