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 
14 
15 // Reconstructed hits in CTPPS Pixel detector
16 
18 public:
20  LocalError le = LocalError(0., 0., 0.),
21  bool edge = false,
22  bool bad = false,
23  bool rocs = false,
24  int minrow = 0,
25  int mincol = 0,
26  int size = 0,
27  int rowsize = 0,
28  int colsize = 0)
29  : thePoint_(lp),
30  theError_(le),
31  isOnEdge_(edge),
32  hasBadPixels_(bad),
34  minPixelRow_(minrow),
35  minPixelCol_(mincol),
37  clusterSizeRow_(rowsize),
38  clusterSizeCol_(colsize) {}
39 
40  inline LocalPoint point() const { return thePoint_; }
41  inline LocalError error() const { return theError_; }
42 
43  inline bool isOnEdge() const { return isOnEdge_; }
44  inline bool hasBadPixels() const { return hasBadPixels_; }
45  inline bool spanTwoRocs() const { return spanTwoRocs_; }
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:
57 
58  bool isOnEdge_;
61 
62  unsigned int minPixelRow_;
63  unsigned int minPixelCol_;
64 
65  unsigned int clusterSize_;
66  unsigned int clusterSizeRow_;
67  unsigned int clusterSizeCol_;
68 };
69 
70 inline bool operator<(CTPPSPixelRecHit& a, CTPPSPixelRecHit& b) { return (a.point().mag() < b.point().mag()); };
71 
72 #endif
size
Write out results.
unsigned int clusterSizeCol_
unsigned int clusterSizeRow_
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
LocalError theError_
unsigned int minPixelCol_
unsigned int clusterSizeCol() const
LocalPoint point() const
bool spanTwoRocs() const
bool operator<(CTPPSPixelRecHit &a, CTPPSPixelRecHit &b)
unsigned int minPixelRow_
bool isOnEdge() const
unsigned int minPixelCol() const
LocalError error() const
unsigned int clusterSize_
unsigned int clusterSize() const
LocalPoint thePoint_
double b
Definition: hdecay.h:120
CTPPSPixelRecHit(LocalPoint lp=LocalPoint(0., 0., 0.), LocalError le=LocalError(0., 0., 0.), bool edge=false, bool bad=false, bool rocs=false, int minrow=0, int mincol=0, int size=0, int rowsize=0, int colsize=0)
unsigned int minPixelRow() const
bool hasBadPixels() const
double a
Definition: hdecay.h:121
unsigned int clusterSizeRow() const