CMS 3D CMS Logo

RPCCluster.h
Go to the documentation of this file.
1 #include <cstdint>
2 #ifndef RecoLocalMuon_RPCCluster_h
3 #define RecoLocalMuon_RPCCluster_h
4 class RPCCluster {
5 public:
6  RPCCluster();
7  RPCCluster(int fs, int ls, int bx);
8  ~RPCCluster();
9 
10  int firstStrip() const;
11  int lastStrip() const;
12  int clusterSize() const;
13  int bx() const;
14 
15  bool hasTime() const;
16  float time() const;
17  float timeRMS() const;
18 
19  bool hasY() const;
20  float y() const;
21  float yRMS() const;
22 
23  void addTime(const float time);
24  void addY(const float y);
25  void merge(const RPCCluster& cl);
26 
27  bool operator<(const RPCCluster& cl) const;
28  bool operator==(const RPCCluster& cl) const;
29  bool isAdjacent(const RPCCluster& cl) const;
30 
31 private:
32  uint16_t fstrip;
33  uint16_t lstrip;
34  int16_t bunchx;
35 
36  float sumTime, sumTime2;
37  uint16_t nTime;
38 
39  float sumY, sumY2;
40  uint16_t nY;
41 };
42 #endif
uint16_t nY
Definition: RPCCluster.h:40
uint16_t nTime
Definition: RPCCluster.h:37
void addY(const float y)
Definition: RPCCluster.cc:41
int16_t bunchx
Definition: RPCCluster.h:34
bool operator==(const RPCCluster &cl) const
Definition: RPCCluster.cc:69
float timeRMS() const
Definition: RPCCluster.cc:23
void merge(const RPCCluster &cl)
Definition: RPCCluster.cc:47
int clusterSize() const
Definition: RPCCluster.cc:18
float sumTime2
Definition: RPCCluster.h:36
bool hasTime() const
Definition: RPCCluster.cc:21
uint16_t lstrip
Definition: RPCCluster.h:33
float sumY2
Definition: RPCCluster.h:39
float yRMS() const
Definition: RPCCluster.cc:29
float sumTime
Definition: RPCCluster.h:36
bool operator<(const RPCCluster &cl) const
Definition: RPCCluster.cc:62
def ls(path, rec=False)
Definition: eostools.py:349
float sumY
Definition: RPCCluster.h:39
int bx() const
Definition: RPCCluster.cc:19
bool hasY() const
Definition: RPCCluster.cc:27
float y() const
Definition: RPCCluster.cc:28
void addTime(const float time)
Definition: RPCCluster.cc:35
int lastStrip() const
Definition: RPCCluster.cc:17
uint16_t fstrip
Definition: RPCCluster.h:32
int firstStrip() const
Definition: RPCCluster.cc:16
float time() const
Definition: RPCCluster.cc:22
bool isAdjacent(const RPCCluster &cl) const
Definition: RPCCluster.cc:31