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 
27  explicit Counters( int );
28 
29  void incrementSector( int );
30 
31  void printSummary() const;
32 
33  void evalCounters();
34 
35  int m_wheelid;
37  int m_farSide;
38  int m_wheel;
39  std::map<int,int> m_sector;
40  };
41 }
42 
43 class RPCData {
44 public:
46  RPCData( );
47  ~RPCData( ) = default;
48 
49  int m_wheel;
50  std::array<int,6> m_sec1;
51  std::array<int ,6> m_sec2;
52  std::array<RBCInput,6> m_orsignals;
53 
54  friend std::istream& operator>>(std::istream &, RPCData &);
55  friend std::ostream& operator<<(std::ostream &, RPCData const &);
56 
57  int wheelIdx() const //wheel index starts from 0
58  {
59  return (m_wheel + 2);
60  }
61 
62 protected:
63 
64 private:
65 
66 };
67 #endif // INTERFACE_RPCDATA_H
int wheelIdx() const
Definition: RPCData.h:57
std::array< RBCInput, 6 > m_orsignals
Definition: RPCData.h:52
void printSummary() const
Definition: RPCData.cc:73
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
void evalCounters()
Definition: RPCData.cc:33
std::map< int, int > m_sector
Definition: RPCData.h:39
int m_wheel
Definition: RPCData.h:49
void incrementSector(int)
Definition: RPCData.cc:86
std::istream & operator>>(std::istream &input, CLHEP::HepGenMatrix &matrix)
Definition: matrixSaver.cc:111
std::array< int,6 > m_sec2
Definition: RPCData.h:51
TriggerPrimitive::RPCData RPCData
Definition: Common.h:41
std::array< int, 6 > m_sec1
Definition: RPCData.h:50