-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
Copy pathCTPPSPixelRecHit.h
72 lines (58 loc) · 2.09 KB
/
CTPPSPixelRecHit.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
*
* This is a part of CTPPS offline software.
* Author:
* Fabrizio Ferro (ferro@ge.infn.it)
*
*/
#ifndef DataFormats_CTPPSReco_CTPPSPixelRecHit_H
#define DataFormats_CTPPSReco_CTPPSPixelRecHit_H
#include "DataFormats/GeometrySurface/interface/LocalError.h"
#include "DataFormats/GeometryVector/interface/LocalPoint.h"
// Reconstructed hits in CTPPS Pixel detector
class CTPPSPixelRecHit {
public:
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)
: thePoint_(lp),
theError_(le),
isOnEdge_(edge),
hasBadPixels_(bad),
spanTwoRocs_(rocs),
minPixelRow_(minrow),
minPixelCol_(mincol),
clusterSize_(size),
clusterSizeRow_(rowsize),
clusterSizeCol_(colsize) {}
inline LocalPoint point() const { return thePoint_; }
inline LocalError error() const { return theError_; }
inline bool isOnEdge() const { return isOnEdge_; }
inline bool hasBadPixels() const { return hasBadPixels_; }
inline bool spanTwoRocs() const { return spanTwoRocs_; }
inline unsigned int minPixelRow() const { return minPixelRow_; }
inline unsigned int minPixelCol() const { return minPixelCol_; }
inline unsigned int clusterSize() const { return clusterSize_; }
inline unsigned int clusterSizeRow() const { return clusterSizeRow_; }
inline unsigned int clusterSizeCol() const { return clusterSizeCol_; }
private:
LocalPoint thePoint_;
LocalError theError_;
bool isOnEdge_;
bool hasBadPixels_;
bool spanTwoRocs_;
unsigned int minPixelRow_;
unsigned int minPixelCol_;
unsigned int clusterSize_;
unsigned int clusterSizeRow_;
unsigned int clusterSizeCol_;
};
inline bool operator<(CTPPSPixelRecHit& a, CTPPSPixelRecHit& b) { return (a.point().mag() < b.point().mag()); };
#endif