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 96 of file RPCData.cc.

References m_orsignals, m_sec1, m_sec2, and m_wheel.

96  {
97 
98  m_wheel = 10;
99  m_sec1 = new int[6];
100  m_sec2 = new int[6];
101  m_orsignals = new RBCInput[6];
102 
103 }
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 107 of file RPCData.cc.

References m_orsignals, m_sec1, and m_sec2.

107  {
108 
109  delete [] m_sec1;
110  delete [] m_sec2;
111  delete [] m_orsignals;
112 
113 }
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 131 of file RPCData.cc.

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

Definition at line 117 of file RPCData.cc.

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