CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTTopology.h
Go to the documentation of this file.
1 #ifndef Geometry_DTGeometry_DTTopology_H
2 #define Geometry_DTGeometry_DTTopology_H
3 
29 
30 class DTTopology: public Topology {
31  public:
32 
34  DTTopology(int firstWire, int nChannels, float semilenght);
35 
36  virtual ~DTTopology() {}
37 
41 
45 
52 
55 
61  int channel( const LocalPoint& p) const;
62 
64  float wirePosition(int wireNumber) const;
65 
66  //checks if a wire number is valid
67  bool isWireValid(const int wireNumber) const {return (wireNumber - (theFirstChannel - 1) <= 0 || wireNumber - lastChannel() > 0 ) ? false : true;}
68 
70  float cellWidth() const {return theWidth;}
72  float cellHeight() const {return theHeight;}
75  float cellLenght() const {return theLength;}
77  int channels() const {return theNChannels;}
78 
80  int firstChannel() const {return theFirstChannel;}
82  int lastChannel() const {return theNChannels+theFirstChannel-1;}
83 
85  float sensibleWidth() const;
87  float sensibleHeight() const;
88 
91 
94  Side onWhichBorder(float x, float y, float z) const;
96  Side onWhichBorder_old(float x, float y, float z) const;
97 
98 private:
101 
102  static const float theWidth;
103  static const float theHeight;
104  float theLength;
105 
106  static const float IBeamWingThickness;
107  static const float IBeamWingLength;
108  static const float plateThickness;
109  static const float IBeamThickness;
110 
112 };
113 
114 #endif
float wirePosition(int wireNumber) const
Returns the x position in the layer of a given wire number.
Definition: DTTopology.cc:88
static const float IBeamWingLength
Definition: DTTopology.h:107
static const float IBeamWingThickness
Definition: DTTopology.h:106
float sensibleHeight() const
Returns the height of the actual sensible volume of the cell.
Definition: DTTopology.cc:47
Side onWhichBorder(float x, float y, float z) const
Definition: DTTopology.cc:111
int theFirstChannel
Definition: DTTopology.h:99
static const float plateThickness
Definition: DTTopology.h:108
int channel(const LocalPoint &p) const
Definition: DTTopology.cc:81
float cellWidth() const
Returns the cell width.
Definition: DTTopology.h:70
int theNChannels
Definition: DTTopology.h:100
float sensibleWidth() const
Returns the width of the actual sensible volume of the cell.
Definition: DTTopology.cc:41
double double double z
virtual ~DTTopology()
Definition: DTTopology.h:36
int firstChannel() const
Returns the wire number of the first wire.
Definition: DTTopology.h:80
int lastChannel() const
Returns the wire number of the last wire.
Definition: DTTopology.h:82
MeasurementError measurementError(const LocalPoint &, const LocalError &) const
Conversion to the measurement frame.
Definition: DTTopology.cc:74
Local2DPoint theOffSet
Definition: DTTopology.h:111
static const float theHeight
Definition: DTTopology.h:103
float cellHeight() const
Returns the cell height.
Definition: DTTopology.h:72
Side
Sides of the cell.
Definition: DTTopology.h:90
static const float theWidth
Definition: DTTopology.h:102
DTTopology(int firstWire, int nChannels, float semilenght)
Constructor: number of first wire, total # of wires in the layer and their lenght.
Definition: DTTopology.cc:24
LocalError localError(const MeasurementPoint &, const MeasurementError &) const
Definition: DTTopology.cc:60
int channels() const
Returns the number of wires in the layer.
Definition: DTTopology.h:77
LocalPoint localPosition(const MeasurementPoint &) const
Definition: DTTopology.cc:53
float theLength
Definition: DTTopology.h:104
Side onWhichBorder_old(float x, float y, float z) const
Returns the side of the cell in which resides the point (x,y,z) (old cell geometry).
Definition: DTTopology.cc:145
bool isWireValid(const int wireNumber) const
Definition: DTTopology.h:67
MeasurementPoint measurementPosition(const LocalPoint &) const
Definition: DTTopology.cc:67
x
Definition: VDTMath.h:216
float cellLenght() const
Definition: DTTopology.h:75
static const float IBeamThickness
Definition: DTTopology.h:109