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
Definition: RPCData.h:42
l1trigger::Counters
Definition: RPCData.h:24
RPCData::m_wheel
int m_wheel
Definition: RPCData.h:48
RPCData::wheelIdx
int wheelIdx() const
Definition: RPCData.h:56
l1trigger
Definition: RPCData.h:23
watchdog.const
const
Definition: watchdog.py:83
l1trigger::Counters::m_sector
std::map< int, int > m_sector
Definition: RPCData.h:38
RPCData::m_sec2
std::array< int, 6 > m_sec2
Definition: RPCData.h:50
RPCData::operator<<
friend std::ostream & operator<<(std::ostream &, RPCData const &)
Definition: RPCData.cc:92
l1trigger::Counters::Counters
Counters(int)
Definition: RPCData.cc:18
RPCData::operator>>
friend std::istream & operator>>(std::istream &, RPCData &)
Definition: RPCData.cc:82
l1trigger::Counters::m_wheel
int m_wheel
Definition: RPCData.h:37
RPCData::m_sec1
std::array< int, 6 > m_sec1
Definition: RPCData.h:49
l1trigger::Counters::m_nearSide
int m_nearSide
Definition: RPCData.h:35
l1trigger::Counters::printSummary
void printSummary() const
Definition: RPCData.cc:65
RBCInput.h
l1trigger::Counters::m_wheelid
int m_wheelid
Definition: RPCData.h:34
RPCData::RPCData
RPCData()
Standard constructor.
Definition: RPCData.cc:78
RPCData::m_orsignals
std::array< RBCInput, 6 > m_orsignals
Definition: RPCData.h:51
l1trigger::Counters::incrementSector
void incrementSector(int)
Definition: RPCData.cc:75
l1trigger::Counters::evalCounters
void evalCounters()
Definition: RPCData.cc:29
RPCData::~RPCData
~RPCData()=default
Destructor.
l1trigger::Counters::m_farSide
int m_farSide
Definition: RPCData.h:36