CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CPPFCluster.h
Go to the documentation of this file.
1 #include <cstdint>
2 #ifndef L1Trigger_CPPFCluster_h
3 #define L1Trigger_CPPFCluster_h
4 class CPPFCluster {
5 public:
6  CPPFCluster();
7  CPPFCluster(int fs, int ls, int bx);
8  ~CPPFCluster();
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 CPPFCluster& cl);
26 
27  bool operator<(const CPPFCluster& cl) const;
28  bool operator==(const CPPFCluster& cl) const;
29  bool isAdjacent(const CPPFCluster& 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
float sumY2
Definition: CPPFCluster.h:39
uint16_t nY
Definition: CPPFCluster.h:40
int clusterSize() const
Definition: CPPFCluster.cc:18
def ls
Definition: eostools.py:349
uint16_t fstrip
Definition: CPPFCluster.h:32
float time() const
Definition: CPPFCluster.cc:22
bool hasY() const
Definition: CPPFCluster.cc:27
bool isAdjacent(const CPPFCluster &cl) const
Definition: CPPFCluster.cc:31
tuple cl
Definition: haddnano.py:49
float sumTime2
Definition: CPPFCluster.h:36
uint16_t nTime
Definition: CPPFCluster.h:37
float sumTime
Definition: CPPFCluster.h:36
bool operator==(const CPPFCluster &cl) const
Definition: CPPFCluster.cc:69
void addTime(const float time)
Definition: CPPFCluster.cc:35
bool hasTime() const
Definition: CPPFCluster.cc:21
bool operator<(const CPPFCluster &cl) const
Definition: CPPFCluster.cc:62
uint16_t lstrip
Definition: CPPFCluster.h:33
void merge(const CPPFCluster &cl)
Definition: CPPFCluster.cc:47
int bx() const
Definition: CPPFCluster.cc:19
float yRMS() const
Definition: CPPFCluster.cc:29
int firstStrip() const
Definition: CPPFCluster.cc:16
float sumY
Definition: CPPFCluster.h:39
void addY(const float y)
Definition: CPPFCluster.cc:41
int16_t bunchx
Definition: CPPFCluster.h:34
int lastStrip() const
Definition: CPPFCluster.cc:17
float y() const
Definition: CPPFCluster.cc:28
float timeRMS() const
Definition: CPPFCluster.cc:23