CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SubLayerCrossings.h
Go to the documentation of this file.
1 #ifndef TkDetLayers_SubLayerCrossings_h
2 #define TkDetLayers_SubLayerCrossings_h
3 
5 
6 #pragma GCC visibility push(hidden)
8 public:
10  SubLayerCrossing(int sli, int cdi, const GlobalPoint& pos)
11  : pos_(pos), subLayerIndex_(sli), closestDetIndex_(cdi), isValid_(true) {}
12 
13  bool isValid() { return isValid_; }
14  int subLayerIndex() const { return subLayerIndex_; }
15  int closestDetIndex() const { return closestDetIndex_; }
16  const GlobalPoint& position() const { return pos_; }
17 
18 private:
22  bool isValid_;
23 };
24 
26 public:
29  : closest_(c), other_(o), closestIndex_(ci), isValid_(true) {}
30 
31  bool isValid() { return isValid_; }
32  const SubLayerCrossing& closest() const { return closest_; }
33  const SubLayerCrossing& other() const { return other_; }
34  int closestIndex() const { return closestIndex_; }
35 
36 private:
40  bool isValid_;
41 };
42 
43 #pragma GCC visibility pop
44 #endif
const edm::EventSetup & c
int closestIndex() const
int closestDetIndex() const
const GlobalPoint & position() const
SubLayerCrossing(int sli, int cdi, const GlobalPoint &pos)
SubLayerCrossing other_
SubLayerCrossing closest_
int subLayerIndex() const
const SubLayerCrossing & other() const
SubLayerCrossings(const SubLayerCrossing &c, const SubLayerCrossing &o, int ci)
const SubLayerCrossing & closest() const