CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonDetLayerGeometry.h
Go to the documentation of this file.
1 #ifndef DetLayers_MuonDetLayerGeometry_h
2 #define DetLayers_MuonDetLayerGeometry_h
3 
15 #include <vector>
16 #include <map>
17 
18 class DetLayer;
19 
21  public:
22 
25 
27 
29  virtual ~MuonDetLayerGeometry();
30 
32  const std::vector<const DetLayer*>& allDTLayers() const;
33 
35  const std::vector<const DetLayer*>& allCSCLayers() const;
36 
38  const std::vector<const DetLayer*>& forwardCSCLayers() const;
39 
41  const std::vector<const DetLayer*>& backwardCSCLayers() const;
42 
44 
46  const std::vector<const DetLayer*>& allGEMLayers() const;
47 
49  const std::vector<const DetLayer*>& forwardGEMLayers() const;
50 
52  const std::vector<const DetLayer*>& backwardGEMLayers() const;
53 
55 
56 
58  const std::vector<const DetLayer*>& allRPCLayers() const;
59 
61  const std::vector<const DetLayer*>& barrelRPCLayers() const;
62 
64  const std::vector<const DetLayer*>& endcapRPCLayers() const;
65 
67  const std::vector<const DetLayer*>& forwardRPCLayers() const;
68 
70  const std::vector<const DetLayer*>& backwardRPCLayers() const;
71 
73  const std::vector<const DetLayer*>& allLayers() const;
74 
76  const std::vector<const DetLayer*>& allBarrelLayers() const;
77 
79  const std::vector<const DetLayer*>& allEndcapLayers() const;
80 
82  const std::vector<const DetLayer*>& allForwardLayers() const;
83 
85  const std::vector<const DetLayer*>& allBackwardLayers() const;
86 
88 
90  const std::vector<const DetLayer*>& allEndcapCscGemLayers() const;
91 
93  const std::vector<const DetLayer*>& allCscGemForwardLayers() const;
94 
96  const std::vector<const DetLayer*>& allCscGemBackwardLayers() const;
97 
99 
100 
102  virtual const DetLayer* idToLayer(const DetId& detId) const override;
103 
104  private:
108  void addCSCLayers(const std::pair<std::vector<DetLayer*>, std::vector<DetLayer*> >& csclayers);
109 
110  //. Add DT layers; dtlayers is ASSUMED to be sorted inside-out
111  void addDTLayers(const std::vector<DetLayer*>& dtlayers);
112 
116  void addRPCLayers(const std::vector<DetLayer*>& barrelRPCLayers, const std::pair<std::vector<DetLayer*>, std::vector<DetLayer*> >& endcapRPCLayers);
117 
119 
123  void addGEMLayers(const std::pair<std::vector<DetLayer*>, std::vector<DetLayer*> >& gemlayers);
124 
126 
127  DetId makeDetLayerId(const DetLayer* detLayer) const;
128 
129  void sortLayers();
130 
131  std::vector<const DetLayer*> cscLayers_fw;
132  std::vector<const DetLayer*> cscLayers_bk;
133  std::vector<const DetLayer*> cscLayers_all;
134 
136 
137  std::vector<const DetLayer*> gemLayers_fw;
138  std::vector<const DetLayer*> gemLayers_bk;
139  std::vector<const DetLayer*> gemLayers_all;
140 
141 
142  std::vector<const DetLayer*> rpcLayers_all;
143  std::vector<const DetLayer*> rpcLayers_endcap;
144  std::vector<const DetLayer*> rpcLayers_fw;
145  std::vector<const DetLayer*> rpcLayers_bk;
146  std::vector<const DetLayer*> rpcLayers_barrel;
147  std::vector<const DetLayer*> dtLayers;
148  std::vector<const DetLayer*> allForward;
149  std::vector<const DetLayer*> allBackward;
150  std::vector<const DetLayer*> allEndcap;
151  std::vector<const DetLayer*> allBarrel;
152  std::vector<const DetLayer*> allDetLayers;
153 
155 
156  std::vector<const DetLayer*> allEndcapCscGem;
157  std::vector<const DetLayer*> allCscGemForward;
158  std::vector<const DetLayer*> allCscGemBackward;
159 
160  std::map<DetId,const DetLayer*> detLayersMap;
161 };
162 #endif
163 
std::vector< const DetLayer * > gemLayers_all
std::vector< const DetLayer * > allDetLayers
const std::vector< const DetLayer * > & backwardGEMLayers() const
return the backward (-Z) GEM DetLayers, inside-out
const std::vector< const DetLayer * > & allCscGemBackwardLayers() const
return all endcap DetLayers (CSC+GEM), -Z to +Z
std::vector< const DetLayer * > allBarrel
const std::vector< const DetLayer * > & allEndcapLayers() const
return all endcap DetLayers (CSC+RPC+GEM), -Z to +Z
std::vector< const DetLayer * > gemLayers_bk
const std::vector< const DetLayer * > & forwardRPCLayers() const
return the forward (+Z) RPC DetLayers, inside-out
virtual const DetLayer * idToLayer(const DetId &detId) const override
return the DetLayer which correspond to a certain DetId
void addDTLayers(const std::vector< DetLayer * > &dtlayers)
std::map< DetId, const DetLayer * > detLayersMap
const std::vector< const DetLayer * > & allCSCLayers() const
return the CSC DetLayers (endcap), -Z to +Z
const std::vector< const DetLayer * > & allForwardLayers() const
return all forward (+Z) layers (CSC+RPC+GEM), inside-out
void addGEMLayers(const std::pair< std::vector< DetLayer * >, std::vector< DetLayer * > > &gemlayers)
std::vector< const DetLayer * > allForward
const std::vector< const DetLayer * > & allBarrelLayers() const
return all barrel DetLayers (DT+RPC), inside-out
std::vector< const DetLayer * > allBackward
std::vector< const DetLayer * > allCscGemForward
MuonDetLayerGeometry()
Constructor.
std::vector< const DetLayer * > rpcLayers_barrel
const std::vector< const DetLayer * > & endcapRPCLayers() const
return the endcap RPC DetLayers, -Z to +Z
std::vector< const DetLayer * > rpcLayers_all
std::vector< const DetLayer * > rpcLayers_bk
std::vector< const DetLayer * > cscLayers_fw
Definition: DetId.h:18
std::vector< const DetLayer * > allEndcapCscGem
const std::vector< const DetLayer * > & allDTLayers() const
return the DT DetLayers (barrel), inside-out
std::vector< const DetLayer * > allEndcap
const std::vector< const DetLayer * > & forwardCSCLayers() const
return the forward (+Z) CSC DetLayers, inside-out
std::vector< const DetLayer * > cscLayers_bk
DetId makeDetLayerId(const DetLayer *detLayer) const
virtual ~MuonDetLayerGeometry()
Destructor.
void addRPCLayers(const std::vector< DetLayer * > &barrelRPCLayers, const std::pair< std::vector< DetLayer * >, std::vector< DetLayer * > > &endcapRPCLayers)
std::vector< const DetLayer * > cscLayers_all
std::vector< const DetLayer * > allCscGemBackward
std::vector< const DetLayer * > dtLayers
const std::vector< const DetLayer * > & allBackwardLayers() const
return all backward (-Z) layers (CSC+RPC+GEM), inside-out
std::vector< const DetLayer * > rpcLayers_fw
const std::vector< const DetLayer * > & allGEMLayers() const
return the GEM DetLayers (endcap), -Z to +Z
std::vector< const DetLayer * > rpcLayers_endcap
const std::vector< const DetLayer * > & allLayers() const
return all layers (DT+CSC+RPC+GEM), order: backward, barrel, forward
const std::vector< const DetLayer * > & forwardGEMLayers() const
return the forward (+Z) GEM DetLayers, inside-out
const std::vector< const DetLayer * > & backwardCSCLayers() const
return the backward (-Z) CSC DetLayers, inside-out
std::vector< const DetLayer * > gemLayers_fw
const std::vector< const DetLayer * > & allCscGemForwardLayers() const
return all endcap DetLayers (CSC+GEM), -Z to +Z
const std::vector< const DetLayer * > & barrelRPCLayers() const
return the barrel RPC DetLayers, inside-out
const std::vector< const DetLayer * > & allEndcapCscGemLayers() const
return all endcap DetLayers (CSC+GEM), -Z to +Z
const std::vector< const DetLayer * > & backwardRPCLayers() const
return the backward (-Z) RPC DetLayers, inside-out
void addCSCLayers(const std::pair< std::vector< DetLayer * >, std::vector< DetLayer * > > &csclayers)
const std::vector< const DetLayer * > & allRPCLayers() const
return all RPC DetLayers, order: backward, barrel, forward