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.2 2009/05/24 21:45:39 aosorio 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 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
int m_farSide
Definition: RPCData.h:40
RBCInput * m_orsignals
Definition: RPCData.h:55
RPCData()
Standard constructor.
Definition: RPCData.cc:96
virtual ~RPCData()
Destructor.
Definition: RPCData.cc:107
friend std::istream & operator>>(std::istream &, RPCData &)
Definition: RPCData.cc:117
void evalCounters()
Definition: RPCData.cc:37
int m_wheelid
Definition: RPCData.h:38
friend std::ostream & operator<<(std::ostream &, RPCData &)
Definition: RPCData.cc:131
void printSummary()
Definition: RPCData.cc:77
int * m_sec2
Definition: RPCData.h:54
std::map< int, int > m_sector
Definition: RPCData.h:42
int m_wheel
Definition: RPCData.h:41
int m_wheel
Definition: RPCData.h:52
int wheelIdx()
Definition: RPCData.h:60
Counters()
Definition: RPCData.h:27
int m_nearSide
Definition: RPCData.h:39
virtual ~Counters()
Definition: Counters.h:36
int * m_sec1
Definition: RPCData.h:53
void incrementSector(int)
Definition: RPCData.cc:91