CMS 3D CMS Logo

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  ~PixelTopology() override {}
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  virtual bool bigpixelsX() const = 0;
37  virtual bool bigpixelsY() const = 0;
38 
39  virtual float localX(float mpX) const = 0;
40  virtual float localY(float mpY) const = 0;
41  virtual float localX(const float mpX, const Topology::LocalTrackPred & /*trk*/) const { return localX(mpX); }
42  virtual float localY(const float mpY, const Topology::LocalTrackPred & /*trk*/) const { return localY(mpY); }
43 
44  virtual bool isItBigPixelInX(int ixbin) const = 0;
45  virtual bool isItBigPixelInY(int iybin) const = 0;
46  virtual float pixelFractionInX(int ixbin) const = 0;
47  virtual float pixelFractionInY(int iybin) const = 0;
48  virtual bool containsBigPixelInX(int ixmin, int ixmax) const = 0;
49  virtual bool containsBigPixelInY(int iymin, int iymax) const = 0;
50 
51  virtual bool isItEdgePixelInX(int ixbin) const = 0;
52  virtual bool isItEdgePixelInY(int iybin) const = 0;
53  virtual bool isItEdgePixel(int ixbin, int iybin) const = 0;
54 };
55 
56 #endif
virtual float localX(const float mpX, const Topology::LocalTrackPred &) const
Definition: PixelTopology.h:41
virtual float pixelFractionInX(int ixbin) const =0
virtual std::pair< float, float > pixel(const LocalPoint &p) const =0
virtual int ncolumns() const =0
virtual int rowsperroc() const =0
virtual int nrows() const =0
virtual float pixelFractionInY(int iybin) const =0
virtual int rocsX() const =0
virtual bool bigpixelsY() const =0
virtual float localX(float mpX) const =0
virtual bool isItEdgePixelInX(int ixbin) const =0
virtual float localY(const float mpY, const Topology::LocalTrackPred &) const
Definition: PixelTopology.h:42
virtual bool containsBigPixelInY(int iymin, int iymax) const =0
virtual bool isItBigPixelInX(int ixbin) const =0
virtual int colsperroc() const =0
virtual bool isItBigPixelInY(int iybin) const =0
virtual bool containsBigPixelInX(int ixmin, int ixmax) const =0
virtual bool bigpixelsX() const =0
virtual int rocsY() const =0
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 float localY(float mpY) const =0
virtual bool isItEdgePixelInY(int iybin) const =0
virtual std::pair< float, float > pitch() const =0
~PixelTopology() override
Definition: PixelTopology.h:13
virtual bool isItEdgePixel(int ixbin, int iybin) const =0