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 // $Id: RPCData.h,v 1.4 2013/03/20 15:45:25 wdd Exp $
2 #ifndef INTERFACE_RPCDATA_H
3 #define INTERFACE_RPCDATA_H 1
4 
5 // Include files
7 
8 #include <stdlib.h>
9 #include <iostream>
10 #include <fstream>
11 #include <ios>
12 #include <cmath>
13 #include <map>
14 
24 namespace l1trigger {
25  class Counters {
26  public:
27 
28  Counters() {};
29  Counters( int );
30 
31  virtual ~Counters();
32 
33  void incrementSector( int );
34 
35  void printSummary();
36 
37  void evalCounters();
38 
39  int m_wheelid;
41  int m_farSide;
42  int m_wheel;
43  std::map<int,int> m_sector;
44  };
45 }
46 
47 class RPCData {
48 public:
50  RPCData( );
51  virtual ~RPCData( );
52 
53  int m_wheel;
54  int * m_sec1;
55  int * m_sec2;
57 
58  friend std::istream& operator>>(std::istream &, RPCData &);
59  friend std::ostream& operator<<(std::ostream &, RPCData &);
60 
61  int wheelIdx() //wheel index starts from 0
62  {
63  return (m_wheel + 2);
64  }
65 
66 protected:
67 
68 private:
69 
70 };
71 #endif // INTERFACE_RPCDATA_H
RBCInput * m_orsignals
Definition: RPCData.h:56
RPCData()
Standard constructor.
Definition: RPCData.cc:98
virtual ~RPCData()
Destructor.
Definition: RPCData.cc:109
friend std::istream & operator>>(std::istream &, RPCData &)
Definition: RPCData.cc:119
virtual ~Counters()
Definition: RPCData.cc:34
friend std::ostream & operator<<(std::ostream &, RPCData &)
Definition: RPCData.cc:133
int * m_sec2
Definition: RPCData.h:55
std::map< int, int > m_sector
Definition: RPCData.h:43
int m_wheel
Definition: RPCData.h:53
int wheelIdx()
Definition: RPCData.h:61
void printSummary()
Definition: RPCData.cc:79
void incrementSector(int)
Definition: RPCData.cc:92
void evalCounters()
Definition: RPCData.cc:39
int * m_sec1
Definition: RPCData.h:54