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 
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() : 0;
60 }
61 
62 std::vector< const GeomDet*> DTLayer::components() const {
63  return std::vector< const GeomDet*>();
64 }
type
Definition: HCALResponse.h:21
const Topology & topology() const
Definition: DTLayer.cc:34
void setDetId(DetId id)
Definition: GeomDet.h:114
DTLayerId id() const
Return the DetId of this SL.
Definition: DTLayer.cc:46
const GeomDetType & type() const
Definition: DTLayer.cc:38
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
DTLayerId theId
Definition: DTLayer.h:65
virtual std::vector< const GeomDet * > components() const
A Layer has no components.
Definition: DTLayer.cc:62
virtual ~DTLayer()
Definition: DTLayer.cc:30
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(DTLayerId id, ReferenceCountingPointer< BoundPlane > &plane, const DTTopology &topo, const DTLayerType &type, const DTSuperLayer *sl=0)
Definition: DTLayer.cc:20
DTTopology theTopo
Definition: DTLayer.h:66