test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <stdlib.h>
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  Counters() {};
28  Counters( int );
29 
30  virtual ~Counters();
31 
32  void incrementSector( int );
33 
34  void printSummary();
35 
36  void evalCounters();
37 
38  int m_wheelid;
40  int m_farSide;
41  int m_wheel;
42  std::map<int,int> m_sector;
43  };
44 }
45 
46 class RPCData {
47 public:
49  RPCData( );
50  virtual ~RPCData( );
51 
52  int m_wheel;
53  int * m_sec1;
54  int * m_sec2;
56 
57  friend std::istream& operator>>(std::istream &, RPCData &);
58  friend std::ostream& operator<<(std::ostream &, RPCData &);
59 
60  int wheelIdx() //wheel index starts from 0
61  {
62  return (m_wheel + 2);
63  }
64 
65 protected:
66 
67 private:
68 
69 };
70 #endif // INTERFACE_RPCDATA_H
RBCInput * m_orsignals
Definition: RPCData.h:55
RPCData()
Standard constructor.
Definition: RPCData.cc:97
virtual ~RPCData()
Destructor.
Definition: RPCData.cc:108
friend std::istream & operator>>(std::istream &, RPCData &)
Definition: RPCData.cc:118
virtual ~Counters()
Definition: RPCData.cc:33
friend std::ostream & operator<<(std::ostream &, RPCData &)
Definition: RPCData.cc:132
int * m_sec2
Definition: RPCData.h:54
std::map< int, int > m_sector
Definition: RPCData.h:42
int m_wheel
Definition: RPCData.h:52
int wheelIdx()
Definition: RPCData.h:60
void printSummary()
Definition: RPCData.cc:78
void incrementSector(int)
Definition: RPCData.cc:91
void evalCounters()
Definition: RPCData.cc:38
int * m_sec1
Definition: RPCData.h:53