test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Friends
RPCData Class Reference

#include <interface/RPCData.h>

Public Member Functions

 RPCData ()
 Standard constructor. More...
 
int wheelIdx ()
 
virtual ~RPCData ()
 Destructor. More...
 

Public Attributes

RBCInputm_orsignals
 
int * m_sec1
 
int * m_sec2
 
int m_wheel
 

Friends

std::ostream & operator<< (std::ostream &, RPCData &)
 
std::istream & operator>> (std::istream &, RPCData &)
 

Detailed Description

Data structure consisting of wheel + sector + ORs signals

Author
Andres Osorio
Date
2008-11-18

Definition at line 46 of file RPCData.h.

Constructor & Destructor Documentation

RPCData::RPCData ( )

Standard constructor.

Definition at line 97 of file RPCData.cc.

References m_orsignals, m_sec1, m_sec2, and m_wheel.

97  {
98 
99  m_wheel = 10;
100  m_sec1 = new int[6];
101  m_sec2 = new int[6];
102  m_orsignals = new RBCInput[6];
103 
104 }
RBCInput * m_orsignals
Definition: RPCData.h:55
int * m_sec2
Definition: RPCData.h:54
int m_wheel
Definition: RPCData.h:52
int * m_sec1
Definition: RPCData.h:53
RPCData::~RPCData ( )
virtual

Destructor.

Definition at line 108 of file RPCData.cc.

References m_orsignals, m_sec1, and m_sec2.

108  {
109 
110  delete [] m_sec1;
111  delete [] m_sec2;
112  delete [] m_orsignals;
113 
114 }
RBCInput * m_orsignals
Definition: RPCData.h:55
int * m_sec2
Definition: RPCData.h:54
int * m_sec1
Definition: RPCData.h:53

Member Function Documentation

int RPCData::wheelIdx ( )
inline

Definition at line 60 of file RPCData.h.

References m_wheel.

61  {
62  return (m_wheel + 2);
63  }
int m_wheel
Definition: RPCData.h:52

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ostr,
RPCData rhs 
)
friend

Definition at line 132 of file RPCData.cc.

133 {
134 
135  ostr << rhs.m_wheel << '\t';
136  for(int k=0; k < 6; ++k)
137  {
138  ostr << rhs.m_sec1[k] << '\t' << rhs.m_sec2[k] << '\n';
139  ostr << rhs.m_orsignals[k];
140  }
141 
142  return ostr;
143 
144 }
RBCInput * m_orsignals
Definition: RPCData.h:55
int * m_sec2
Definition: RPCData.h:54
int m_wheel
Definition: RPCData.h:52
int * m_sec1
Definition: RPCData.h:53
std::istream& operator>> ( std::istream &  istr,
RPCData rhs 
)
friend

Definition at line 118 of file RPCData.cc.

119 {
120 
121  (istr) >> rhs.m_wheel;
122  for(int k=0; k < 6; ++k)
123  {
124  (istr) >> rhs.m_sec1[k] >> rhs.m_sec2[k];
125  (istr) >> rhs.m_orsignals[k];
126  }
127 
128  return istr;
129 
130 }
RBCInput * m_orsignals
Definition: RPCData.h:55
int * m_sec2
Definition: RPCData.h:54
int m_wheel
Definition: RPCData.h:52
int * m_sec1
Definition: RPCData.h:53

Member Data Documentation

RBCInput* RPCData::m_orsignals
int* RPCData::m_sec1
int* RPCData::m_sec2
int RPCData::m_wheel