CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelTopology.h
Go to the documentation of this file.
1 #ifndef Geometry_CommonTopologies_PixelTopology_H
2 #define Geometry_CommonTopologies_PixelTopology_H
3 
5 
10 class PixelTopology : public Topology {
11  public:
13  virtual ~PixelTopology() {}
14 
15  // The following methods are moved to the base class (Topology)
16 
17  // virtual LocalPoint local_position( float channel) const = 0;
18  // virtual LocalError local_error( float err) const = 0;
19  // virtual int channel( const LocalPoint& p) const = 0;
20 
21  virtual std::pair<float,float> pixel( const LocalPoint& p) const = 0;
22 
24  virtual std::pair<float,float> pixel( const LocalPoint& p, const Topology::LocalTrackAngles &/*ltp*/ ) const {
25  return pixel(p);
26  }
27 
28  virtual std::pair<float,float> pitch() const = 0;
29  virtual int nrows() const = 0;
30  virtual int ncolumns() const = 0;
31 
32  virtual int rocsY() const = 0;
33  virtual int rocsX() const = 0;
34  virtual int rowsperroc() const = 0;
35  virtual int colsperroc() const = 0;
36 
37  virtual float localX(const float mpX) const = 0;
38  virtual float localY(const float mpY) const = 0;
39  virtual float localX(const float mpX, const Topology::LocalTrackPred &/*trk*/) const { return localX(mpX); }
40  virtual float localY(const float mpY, const Topology::LocalTrackPred &/*trk*/) const { return localY(mpY); }
41 
42  virtual bool isItBigPixelInX(const int ixbin) const = 0;
43  virtual bool isItBigPixelInY(const int iybin) const = 0;
44  virtual bool containsBigPixelInX(const int& ixmin, const int& ixmax) const = 0;
45  virtual bool containsBigPixelInY(const int& iymin, const int& iymax) const = 0;
46 
47  virtual bool isItEdgePixelInX (int ixbin) const = 0;
48  virtual bool isItEdgePixelInY (int iybin) const = 0;
49  virtual bool isItEdgePixel (int ixbin, int iybin) const = 0;
50 
51 };
52 
53 #endif
virtual bool containsBigPixelInX(const int &ixmin, const int &ixmax) const =0
virtual int ncolumns() const =0
virtual int rowsperroc() const =0
virtual int nrows() const =0
virtual float localX(const float mpX, const Topology::LocalTrackPred &) const
Definition: PixelTopology.h:39
virtual int rocsX() const =0
virtual bool isItEdgePixelInX(int ixbin) const =0
virtual std::pair< float, float > pixel(const LocalPoint &p) const =0
virtual int colsperroc() const =0
virtual float localY(const float mpY, const Topology::LocalTrackPred &) const
Definition: PixelTopology.h:40
virtual int rocsY() const =0
virtual bool containsBigPixelInY(const int &iymin, const int &iymax) const =0
virtual std::pair< float, float > pitch() const =0
virtual bool isItBigPixelInX(const int ixbin) const =0
virtual float localX(const float mpX) const =0
virtual bool isItEdgePixelInY(int iybin) const =0
virtual ~PixelTopology()
Definition: PixelTopology.h:13
virtual std::pair< float, float > pixel(const LocalPoint &p, const Topology::LocalTrackAngles &) const
conversion taking also the angle from the track state
Definition: PixelTopology.h:24
virtual bool isItEdgePixel(int ixbin, int iybin) const =0
virtual float localY(const float mpY) const =0
virtual bool isItBigPixelInY(const int iybin) const =0