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 
22  LocalError le,
23  bool edge = false,
24  bool bad = false,
25  bool rocs = false,
26  int minrow = 0,
27  int mincol = 0,
28  int size = 0,
29  int rowsize = 0,
30  int colsize = 0)
31  : thePoint_(lp),
32  theError_(le),
33  isOnEdge_(edge),
34  hasBadPixels_(bad),
36  minPixelRow_(minrow),
37  minPixelCol_(mincol),
39  clusterSizeRow_(rowsize),
40  clusterSizeCol_(colsize) {}
41 
42  inline LocalPoint point() const { return thePoint_; }
43  inline LocalError error() const { return theError_; }
44 
45  inline bool isOnEdge() const { return isOnEdge_; }
46  inline bool hasBadPixels() const { return hasBadPixels_; }
47  inline bool spanTwoRocs() const { return spanTwoRocs_; }
48 
49  inline unsigned int minPixelRow() const { return minPixelRow_; }
50  inline unsigned int minPixelCol() const { return minPixelCol_; }
51 
52  inline unsigned int clusterSize() const { return clusterSize_; }
53  inline unsigned int clusterSizeRow() const { return clusterSizeRow_; }
54  inline unsigned int clusterSizeCol() const { return clusterSizeCol_; }
55 
56 private:
59 
60  bool isOnEdge_;
63 
64  unsigned int minPixelRow_;
65  unsigned int minPixelCol_;
66 
67  unsigned int clusterSize_;
68  unsigned int clusterSizeRow_;
69  unsigned int clusterSizeCol_;
70 };
71 
72 inline bool operator<(CTPPSPixelRecHit& a, CTPPSPixelRecHit& b) { return (a.point().mag() < b.point().mag()); };
73 
74 #endif
PixelMapPlotter.rocs
rocs
Definition: PixelMapPlotter.py:497
CTPPSPixelRecHit::minPixelRow
unsigned int minPixelRow() const
Definition: CTPPSPixelRecHit.h:49
CTPPSPixelRecHit
Definition: CTPPSPixelRecHit.h:17
CTPPSPixelRecHit::isOnEdge_
bool isOnEdge_
Definition: CTPPSPixelRecHit.h:60
CTPPSPixelRecHit::point
LocalPoint point() const
Definition: CTPPSPixelRecHit.h:42
CTPPSPixelRecHit::minPixelRow_
unsigned int minPixelRow_
Definition: CTPPSPixelRecHit.h:64
CTPPSPixelRecHit::clusterSize_
unsigned int clusterSize_
Definition: CTPPSPixelRecHit.h:67
CTPPSPixelRecHit::clusterSize
unsigned int clusterSize() const
Definition: CTPPSPixelRecHit.h:52
operator<
bool operator<(CTPPSPixelRecHit &a, CTPPSPixelRecHit &b)
Definition: CTPPSPixelRecHit.h:72
LocalError.h
CTPPSPixelRecHit::spanTwoRocs_
bool spanTwoRocs_
Definition: CTPPSPixelRecHit.h:62
Point3DBase< float, LocalTag >
b
double b
Definition: hdecay.h:118
CTPPSPixelRecHit::CTPPSPixelRecHit
CTPPSPixelRecHit()
Definition: CTPPSPixelRecHit.h:19
CTPPSPixelRecHit::clusterSizeCol_
unsigned int clusterSizeCol_
Definition: CTPPSPixelRecHit.h:69
CTPPSPixelRecHit::spanTwoRocs
bool spanTwoRocs() const
Definition: CTPPSPixelRecHit.h:47
CTPPSPixelRecHit::thePoint_
LocalPoint thePoint_
Definition: CTPPSPixelRecHit.h:57
CTPPSPixelRecHit::hasBadPixels
bool hasBadPixels() const
Definition: CTPPSPixelRecHit.h:46
a
double a
Definition: hdecay.h:119
LocalError
Definition: LocalError.h:12
CTPPSPixelRecHit::clusterSizeCol
unsigned int clusterSizeCol() const
Definition: CTPPSPixelRecHit.h:54
CTPPSPixelRecHit::clusterSizeRow_
unsigned int clusterSizeRow_
Definition: CTPPSPixelRecHit.h:68
CTPPSPixelRecHit::hasBadPixels_
bool hasBadPixels_
Definition: CTPPSPixelRecHit.h:61
CTPPSPixelRecHit::isOnEdge
bool isOnEdge() const
Definition: CTPPSPixelRecHit.h:45
CTPPSPixelRecHit::minPixelCol_
unsigned int minPixelCol_
Definition: CTPPSPixelRecHit.h:65
CTPPSPixelRecHit::clusterSizeRow
unsigned int clusterSizeRow() const
Definition: CTPPSPixelRecHit.h:53
LocalPoint.h
CTPPSPixelRecHit::CTPPSPixelRecHit
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)
Definition: CTPPSPixelRecHit.h:21
CTPPSPixelRecHit::theError_
LocalError theError_
Definition: CTPPSPixelRecHit.h:58
CTPPSPixelRecHit::error
LocalError error() const
Definition: CTPPSPixelRecHit.h:43
CTPPSPixelRecHit::minPixelCol
unsigned int minPixelCol() const
Definition: CTPPSPixelRecHit.h:50
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443