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 47 of file RPCData.h.

Constructor & Destructor Documentation

RPCData::RPCData ( )

Standard constructor.

Definition at line 98 of file RPCData.cc.

References m_orsignals, m_sec1, m_sec2, and m_wheel.

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

Destructor.

Definition at line 109 of file RPCData.cc.

References m_orsignals, m_sec1, and m_sec2.

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

Member Function Documentation

int RPCData::wheelIdx ( )
inline

Definition at line 61 of file RPCData.h.

References m_wheel.

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

Friends And Related Function Documentation

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

Definition at line 133 of file RPCData.cc.

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

Definition at line 119 of file RPCData.cc.

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

Member Data Documentation

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