CMS 3D CMS Logo

CTPPSPixelRecHit.h
Go to the documentation of this file.
1 /*
2  *
3 * This is a part of CTPPS offline software.
4 * Author:
5 * Fabrizio Ferro (ferro@ge.infn.it)
6 *
7 */
8 
9 #ifndef DataFormats_CTPPSReco_CTPPSPixelRecHit_H
10 #define DataFormats_CTPPSReco_CTPPSPixelRecHit_H
11 
12 
15 
16 // Reconstructed hits in CTPPS Pixel detector
17 
19 
20 public:
21 
23 
24 CTPPSPixelRecHit(LocalPoint lp, LocalError le, bool edge = false, bool bad = false, bool rocs = false,
25  int minrow = 0, int mincol = 0, int size = 0, int rowsize = 0, int colsize = 0) :
26  thePoint_(lp),
27  theError_(le),
28  isOnEdge_(edge),
29  hasBadPixels_(bad),
30  spanTwoRocs_(rocs),
31  minPixelRow_(minrow),
32  minPixelCol_(mincol),
34  clusterSizeRow_(rowsize),
35  clusterSizeCol_(colsize)
36  {}
37 
38 
39  inline LocalPoint getPoint() const { return thePoint_;}
40  inline LocalError getError() const { return theError_;}
41 
42  inline bool isOnEdge() const {return isOnEdge_;}
43  inline bool hasBadPixels() const {return hasBadPixels_;}
44  inline bool spanTwoRocs() const {return spanTwoRocs_;}
45 
46 
47  inline unsigned int minPixelRow() const { return minPixelRow_;}
48  inline unsigned int minPixelCol() const { return minPixelCol_;}
49 
50  inline unsigned int clusterSize() const { return clusterSize_;}
51  inline unsigned int clusterSizeRow() const { return clusterSizeRow_;}
52  inline unsigned int clusterSizeCol() const { return clusterSizeCol_;}
53 
54 private:
55 
58 
59  bool isOnEdge_;
62 
63  unsigned int minPixelRow_;
64  unsigned int minPixelCol_;
65 
66  unsigned int clusterSize_;
67  unsigned int clusterSizeRow_;
68  unsigned int clusterSizeCol_;
69 
70 };
71 
73 {
74 
75  return (a.getPoint().mag() < b.getPoint().mag());
76 
77 };
78 
79 #endif
size
Write out results.
unsigned int clusterSizeCol_
unsigned int clusterSizeRow_
LocalError theError_
bool spanTwoRocs() const
CTPPSPixelRecHit(LocalPoint lp, LocalError le, bool edge=false, bool bad=false, bool rocs=false, int minrow=0, int mincol=0, int size=0, int rowsize=0, int colsize=0)
bool hasBadPixels() const
unsigned int minPixelCol_
bool operator<(CTPPSPixelRecHit &a, CTPPSPixelRecHit &b)
bool isOnEdge() const
LocalError getError() const
unsigned int minPixelRow_
T mag() const
Definition: PV3DBase.h:67
unsigned int clusterSizeCol() const
unsigned int minPixelCol() const
LocalPoint getPoint() const
unsigned int clusterSize_
LocalPoint thePoint_
double b
Definition: hdecay.h:120
unsigned int minPixelRow() const
double a
Definition: hdecay.h:121
unsigned int clusterSize() const
unsigned int clusterSizeRow() const