CMS 3D CMS Logo

RPCData.h
Go to the documentation of this file.
1 #ifndef INTERFACE_RPCDATA_H
2 #define INTERFACE_RPCDATA_H 1
3 
4 // Include files
6 
7 #include <cstdlib>
8 #include <iostream>
9 #include <fstream>
10 #include <ios>
11 #include <cmath>
12 #include <map>
13 
23 namespace l1trigger {
24  class Counters {
25  public:
26  explicit Counters(int);
27 
28  void incrementSector(int);
29 
30  void printSummary() const;
31 
32  void evalCounters();
33 
34  int m_wheelid;
36  int m_farSide;
37  int m_wheel;
38  std::map<int, int> m_sector;
39  };
40 } // namespace l1trigger
41 
42 class RPCData {
43 public:
45  RPCData();
46  ~RPCData() = default;
47 
48  int m_wheel;
49  std::array<int, 6> m_sec1;
50  std::array<int, 6> m_sec2;
51  std::array<RBCInput, 6> m_orsignals;
52 
53  friend std::istream &operator>>(std::istream &, RPCData &);
54  friend std::ostream &operator<<(std::ostream &, RPCData const &);
55 
56  int wheelIdx() const //wheel index starts from 0
57  {
58  return (m_wheel + 2);
59  }
60 
61 protected:
62 private:
63 };
64 #endif // INTERFACE_RPCDATA_H
RPCData()
Standard constructor.
Definition: RPCData.cc:78
std::array< int, 6 > m_sec1
Definition: RPCData.h:49
friend std::istream & operator>>(std::istream &, RPCData &)
Definition: RPCData.cc:82
~RPCData()=default
Destructor.
std::map< int, int > m_sector
Definition: RPCData.h:38
void printSummary() const
Definition: RPCData.cc:65
int wheelIdx() const
Definition: RPCData.h:56
void evalCounters()
Definition: RPCData.cc:29
int m_wheel
Definition: RPCData.h:48
void incrementSector(int)
Definition: RPCData.cc:75
std::array< RBCInput, 6 > m_orsignals
Definition: RPCData.h:51
friend std::ostream & operator<<(std::ostream &, RPCData const &)
Definition: RPCData.cc:92
std::array< int, 6 > m_sec2
Definition: RPCData.h:50