CMS 3D CMS Logo

MuonDetLayerGeometry.h
Go to the documentation of this file.
1 #ifndef DetLayers_MuonDetLayerGeometry_h
2 #define DetLayers_MuonDetLayerGeometry_h
3 
16 #include <vector>
17 #include <map>
18 
19 class DetLayer;
20 
22 public:
25 
27 
29  ~MuonDetLayerGeometry() override;
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 
57 
59  const std::vector<const DetLayer*>& allME0Layers() const;
60 
62  const std::vector<const DetLayer*>& forwardME0Layers() const;
63 
65  const std::vector<const DetLayer*>& backwardME0Layers() const;
66 
68 
70  const std::vector<const DetLayer*>& allRPCLayers() const;
71 
73  const std::vector<const DetLayer*>& barrelRPCLayers() const;
74 
76  const std::vector<const DetLayer*>& endcapRPCLayers() const;
77 
79  const std::vector<const DetLayer*>& forwardRPCLayers() const;
80 
82  const std::vector<const DetLayer*>& backwardRPCLayers() const;
83 
85  const std::vector<const DetLayer*>& allLayers() const;
86 
88  const std::vector<const DetLayer*>& allBarrelLayers() const;
89 
91  const std::vector<const DetLayer*>& allEndcapLayers() const;
92 
94  const std::vector<const DetLayer*>& allForwardLayers() const;
95 
97  const std::vector<const DetLayer*>& allBackwardLayers() const;
98 
100 
102  const std::vector<const DetLayer*>& allEndcapCscGemLayers() const;
103 
105  const std::vector<const DetLayer*>& allCscGemForwardLayers() const;
106 
108  const std::vector<const DetLayer*>& allCscGemBackwardLayers() const;
109 
111 
113 
115  const std::vector<const DetLayer*>& allEndcapCscME0Layers() const;
116 
118  const std::vector<const DetLayer*>& allCscME0ForwardLayers() const;
119 
121  const std::vector<const DetLayer*>& allCscME0BackwardLayers() const;
122 
124 
126  const DetLayer* idToLayer(const DetId& detId) const override;
127 
128 private:
132  void addCSCLayers(const std::pair<std::vector<DetLayer*>, std::vector<DetLayer*> >& csclayers);
133 
134  //. Add DT layers; dtlayers is ASSUMED to be sorted inside-out
135  void addDTLayers(const std::vector<DetLayer*>& dtlayers);
136 
140  void addRPCLayers(const std::vector<DetLayer*>& barrelRPCLayers,
141  const std::pair<std::vector<DetLayer*>, std::vector<DetLayer*> >& endcapRPCLayers);
142 
144 
148  void addGEMLayers(const std::pair<std::vector<DetLayer*>, std::vector<DetLayer*> >& gemlayers);
150 
152 
156  void addME0Layers(const std::pair<std::vector<DetLayer*>, std::vector<DetLayer*> >& gemlayers);
157 
159 
160  DetId makeDetLayerId(const DetLayer* detLayer) const;
161 
162  void sortLayers();
163 
164  std::vector<const DetLayer*> cscLayers_fw;
165  std::vector<const DetLayer*> cscLayers_bk;
166  std::vector<const DetLayer*> cscLayers_all;
167 
169 
170  std::vector<const DetLayer*> gemLayers_fw;
171  std::vector<const DetLayer*> gemLayers_bk;
172  std::vector<const DetLayer*> gemLayers_all;
173 
175 
176  std::vector<const DetLayer*> me0Layers_fw;
177  std::vector<const DetLayer*> me0Layers_bk;
178  std::vector<const DetLayer*> me0Layers_all;
179 
182  std::vector<const DetLayer*> rpcLayers_all;
183  std::vector<const DetLayer*> rpcLayers_endcap;
184  std::vector<const DetLayer*> rpcLayers_fw;
185  std::vector<const DetLayer*> rpcLayers_bk;
186  std::vector<const DetLayer*> rpcLayers_barrel;
187  std::vector<const DetLayer*> dtLayers;
188  std::vector<const DetLayer*> allForward;
189  std::vector<const DetLayer*> allBackward;
190  std::vector<const DetLayer*> allEndcap;
191  std::vector<const DetLayer*> allBarrel;
192  std::vector<const DetLayer*> allDetLayers;
193 
195 
196  std::vector<const DetLayer*> allEndcapCscGem;
197  std::vector<const DetLayer*> allCscGemForward;
198  std::vector<const DetLayer*> allCscGemBackward;
199 
201 
203 
204  std::vector<const DetLayer*> allEndcapCscME0;
205  std::vector<const DetLayer*> allCscME0Forward;
206  std::vector<const DetLayer*> allCscME0Backward;
207 
209 
210  std::map<DetId, const DetLayer*> detLayersMap;
211 };
212 #endif
const std::vector< const DetLayer * > & allBackwardLayers() const
return all backward (-Z) layers (CSC+RPC+GEM+ME0), inside-out
const std::vector< const DetLayer * > & allEndcapCscME0Layers() const
return all endcap DetLayers (CSC+ME0), -Z to +Z
std::vector< const DetLayer * > gemLayers_all
const std::vector< const DetLayer * > & forwardCSCLayers() const
return the forward (+Z) CSC DetLayers, inside-out
const std::vector< const DetLayer * > & allCscGemForwardLayers() 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
std::vector< const DetLayer * > allDetLayers
~MuonDetLayerGeometry() override
Destructor.
const std::vector< const DetLayer * > & endcapRPCLayers() const
return the endcap RPC DetLayers, -Z to +Z
std::vector< const DetLayer * > allBarrel
const std::vector< const DetLayer * > & backwardME0Layers() const
return the backward (-Z) ME0 DetLayers, inside-out
const std::vector< const DetLayer * > & allForwardLayers() const
return all forward (+Z) layers (CSC+RPC+GEM+ME0), inside-out
std::vector< const DetLayer * > gemLayers_bk
const DetLayer * idToLayer(const DetId &detId) const override
return the DetLayer which correspond to a certain DetId
void addGEMLayers(const std::pair< std::vector< DetLayer *>, std::vector< DetLayer *> > &gemlayers)
std::vector< const DetLayer * > me0Layers_fw
std::vector< const DetLayer * > me0Layers_all
const std::vector< const DetLayer * > & allDTLayers() const
return the DT DetLayers (barrel), inside-out
const std::vector< const DetLayer * > & forwardME0Layers() const
return the forward (+Z) ME0 DetLayers, inside-out
const std::vector< const DetLayer * > & allRPCLayers() const
return all RPC DetLayers, order: backward, barrel, forward
std::vector< const DetLayer * > allCscME0Backward
const std::vector< const DetLayer * > & allLayers() const
return all layers (DT+CSC+RPC+GEM), order: backward, barrel, forward
const std::vector< const DetLayer * > & forwardRPCLayers() const
return the forward (+Z) RPC DetLayers, inside-out
void addDTLayers(const std::vector< DetLayer *> &dtlayers)
std::map< DetId, const DetLayer * > detLayersMap
void addRPCLayers(const std::vector< DetLayer *> &barrelRPCLayers, const std::pair< std::vector< DetLayer *>, std::vector< DetLayer *> > &endcapRPCLayers)
const std::vector< const DetLayer * > & forwardGEMLayers() const
return the forward (+Z) GEM DetLayers, inside-out
const std::vector< const DetLayer * > & allME0Layers() const
return the ME0 DetLayers (endcap), -Z to +Z
const std::vector< const DetLayer * > & allCscGemBackwardLayers() const
return all endcap DetLayers (CSC+GEM), -Z to +Z
const std::vector< const DetLayer * > & allGEMLayers() const
return the GEM DetLayers (endcap), -Z to +Z
void addME0Layers(const std::pair< std::vector< DetLayer *>, std::vector< DetLayer *> > &gemlayers)
std::vector< const DetLayer * > allForward
std::vector< const DetLayer * > allBackward
std::vector< const DetLayer * > allCscGemForward
MuonDetLayerGeometry()
Constructor.
std::vector< const DetLayer * > rpcLayers_barrel
void addCSCLayers(const std::pair< std::vector< DetLayer *>, std::vector< DetLayer *> > &csclayers)
std::vector< const DetLayer * > rpcLayers_all
const std::vector< const DetLayer * > & allEndcapCscGemLayers() const
return all endcap DetLayers (CSC+GEM), -Z to +Z
std::vector< const DetLayer * > rpcLayers_bk
DetId makeDetLayerId(const DetLayer *detLayer) const
const std::vector< const DetLayer * > & allCSCLayers() const
return the CSC DetLayers (endcap), -Z to +Z
std::vector< const DetLayer * > cscLayers_fw
std::vector< const DetLayer * > me0Layers_bk
Definition: DetId.h:17
std::vector< const DetLayer * > allEndcapCscGem
const std::vector< const DetLayer * > & backwardGEMLayers() const
return the backward (-Z) GEM DetLayers, inside-out
const std::vector< const DetLayer * > & backwardCSCLayers() const
return the backward (-Z) CSC DetLayers, inside-out
std::vector< const DetLayer * > allEndcap
std::vector< const DetLayer * > cscLayers_bk
const std::vector< const DetLayer * > & allCscME0BackwardLayers() const
return all endcap DetLayers (CSC+ME0), -Z to +Z
std::vector< const DetLayer * > cscLayers_all
std::vector< const DetLayer * > allCscGemBackward
std::vector< const DetLayer * > dtLayers
const std::vector< const DetLayer * > & allBarrelLayers() const
return all barrel DetLayers (DT+RPC), inside-out
std::vector< const DetLayer * > rpcLayers_fw
std::vector< const DetLayer * > rpcLayers_endcap
const std::vector< const DetLayer * > & allEndcapLayers() const
return all endcap DetLayers (CSC+RPC+GEM+ME0), -Z to +Z
std::vector< const DetLayer * > gemLayers_fw
const std::vector< const DetLayer * > & allCscME0ForwardLayers() const
return all endcap DetLayers (CSC+ME0), -Z to +Z
const std::vector< const DetLayer * > & barrelRPCLayers() const
return the barrel RPC DetLayers, inside-out
std::vector< const DetLayer * > allEndcapCscME0
std::vector< const DetLayer * > allCscME0Forward