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 
13 #include <vector>
14 #include <map>
15 
16 class DetLayer;
17 
19  public:
20 
23 
25 
27  virtual ~MuonDetLayerGeometry();
28 
30  const std::vector<DetLayer*>& allDTLayers() const;
31 
33  const std::vector<DetLayer*>& allCSCLayers() const;
34 
36  const std::vector<DetLayer*>& forwardCSCLayers() const;
37 
39  const std::vector<DetLayer*>& backwardCSCLayers() const;
40 
42  const std::vector<DetLayer*>& allRPCLayers() const;
43 
45  const std::vector<DetLayer*>& barrelRPCLayers() const;
46 
48  const std::vector<DetLayer*>& endcapRPCLayers() const;
49 
51  const std::vector<DetLayer*>& forwardRPCLayers() const;
52 
54  const std::vector<DetLayer*>& backwardRPCLayers() const;
55 
57  const std::vector<DetLayer*>& allLayers() const;
58 
60  const std::vector<DetLayer*>& allBarrelLayers() const;
61 
63  const std::vector<DetLayer*>& allEndcapLayers() const;
64 
66  const std::vector<DetLayer*>& allForwardLayers() const;
67 
69  const std::vector<DetLayer*>& allBackwardLayers() const;
70 
72  virtual const DetLayer* idToLayer(const DetId& detId) const;
73 
74  private:
78  void addCSCLayers(const std::pair<std::vector<DetLayer*>, std::vector<DetLayer*> >& csclayers);
79 
80  //. Add DT layers; dtlayers is ASSUMED to be sorted inside-out
81  void addDTLayers(const std::vector<DetLayer*>& dtlayers);
82 
86  void addRPCLayers(const std::vector<DetLayer*>& barrelRPCLayers, const std::pair<std::vector<DetLayer*>, std::vector<DetLayer*> >& endcapRPCLayers);
87 
88 
89  DetId makeDetLayerId(const DetLayer* detLayer) const;
90 
91  void sortLayers();
92 
93  std::vector<DetLayer*> cscLayers_fw;
94  std::vector<DetLayer*> cscLayers_bk;
95  std::vector<DetLayer*> cscLayers_all;
96  std::vector<DetLayer*> rpcLayers_all;
97  std::vector<DetLayer*> rpcLayers_endcap;
98  std::vector<DetLayer*> rpcLayers_fw;
99  std::vector<DetLayer*> rpcLayers_bk;
100  std::vector<DetLayer*> rpcLayers_barrel;
101  std::vector<DetLayer*> dtLayers;
102  std::vector<DetLayer*> allForward;
103  std::vector<DetLayer*> allBackward;
104  std::vector<DetLayer*> allEndcap;
105  std::vector<DetLayer*> allBarrel;
106  std::vector<DetLayer*> allDetLayers;
107 
108  std::map<DetId,DetLayer*> detLayersMap;
109 };
110 #endif
111 
std::vector< DetLayer * > dtLayers
std::vector< DetLayer * > cscLayers_bk
std::vector< DetLayer * > allBackward
const std::vector< DetLayer * > & endcapRPCLayers() const
return the endcap RPC DetLayers, -Z to +Z
const std::vector< DetLayer * > & allCSCLayers() const
return the CSC DetLayers (endcap), -Z to +Z
std::vector< DetLayer * > allForward
std::vector< DetLayer * > allEndcap
void addDTLayers(const std::vector< DetLayer * > &dtlayers)
const std::vector< DetLayer * > & backwardRPCLayers() const
return the backward (-Z) RPC DetLayers, inside-out
const std::vector< DetLayer * > & allForwardLayers() const
return all forward (+Z) layers (CSC+RPC), inside-out
const std::vector< DetLayer * > & allDTLayers() const
return the DT DetLayers (barrel), inside-out
virtual const DetLayer * idToLayer(const DetId &detId) const
return the DetLayer which correspond to a certain DetId
std::vector< DetLayer * > cscLayers_fw
std::vector< DetLayer * > allDetLayers
std::vector< DetLayer * > rpcLayers_all
const std::vector< DetLayer * > & barrelRPCLayers() const
return the barrel RPC DetLayers, inside-out
std::vector< DetLayer * > rpcLayers_bk
const std::vector< DetLayer * > & forwardRPCLayers() const
return the forward (+Z) RPC DetLayers, inside-out
std::vector< DetLayer * > rpcLayers_barrel
const std::vector< DetLayer * > & allEndcapLayers() const
return all endcap DetLayers (CSC+RPC), -Z to +Z
MuonDetLayerGeometry()
Constructor.
const std::vector< DetLayer * > & allBackwardLayers() const
return all backward (-Z) layers (CSC+RPC), inside-out
Definition: DetId.h:18
const std::vector< DetLayer * > & backwardCSCLayers() const
return the backward (-Z) CSC DetLayers, inside-out
std::map< DetId, DetLayer * > detLayersMap
std::vector< DetLayer * > allBarrel
const std::vector< DetLayer * > & allLayers() const
return all layers (DT+CSC+RPC), order: backward, barrel, forward
std::vector< DetLayer * > rpcLayers_endcap
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< DetLayer * > rpcLayers_fw
const std::vector< DetLayer * > & forwardCSCLayers() const
return the forward (+Z) CSC DetLayers, inside-out
std::vector< DetLayer * > cscLayers_all
const std::vector< DetLayer * > & allBarrelLayers() const
return all barrel DetLayers (DT+RPC), inside-out
void addCSCLayers(const std::pair< std::vector< DetLayer * >, std::vector< DetLayer * > > &csclayers)
const std::vector< DetLayer * > & allRPCLayers() const
return all RPC DetLayers, order: backward, barrel, forward