CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 () const
 
 ~RPCData ()=default
 Destructor. More...
 

Public Attributes

std::array< RBCInput, 6 > m_orsignals
 
std::array< int, 6 > m_sec1
 
std::array< int, 6 > m_sec2
 
int m_wheel
 

Friends

std::ostream & operator<< (std::ostream &, RPCData const &)
 
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 42 of file RPCData.h.

Constructor & Destructor Documentation

RPCData::RPCData ( )

Standard constructor.

Definition at line 78 of file RPCData.cc.

References m_wheel.

78 { m_wheel = 10; }
int m_wheel
Definition: RPCData.h:48
RPCData::~RPCData ( )
default

Destructor.

Member Function Documentation

int RPCData::wheelIdx ( ) const
inline

Definition at line 56 of file RPCData.h.

References m_wheel.

57  {
58  return (m_wheel + 2);
59  }
int m_wheel
Definition: RPCData.h:48

Friends And Related Function Documentation

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

Definition at line 92 of file RPCData.cc.

92  {
93  ostr << rhs.m_wheel << '\t';
94  for (int k = 0; k < 6; ++k) {
95  ostr << rhs.m_sec1[k] << '\t' << rhs.m_sec2[k] << '\n';
96  ostr << rhs.m_orsignals[k];
97  }
98 
99  return ostr;
100 }
std::istream& operator>> ( std::istream &  istr,
RPCData rhs 
)
friend

Definition at line 82 of file RPCData.cc.

82  {
83  (istr) >> rhs.m_wheel;
84  for (int k = 0; k < 6; ++k) {
85  (istr) >> rhs.m_sec1[k] >> rhs.m_sec2[k];
86  (istr) >> rhs.m_orsignals[k];
87  }
88 
89  return istr;
90 }
std::array< int, 6 > m_sec1
Definition: RPCData.h:49
int m_wheel
Definition: RPCData.h:48
for(Iditer=Id.begin();Iditer!=Id.end();Iditer++)
std::array< RBCInput, 6 > m_orsignals
Definition: RPCData.h:51
std::array< int, 6 > m_sec2
Definition: RPCData.h:50

Member Data Documentation

std::array<RBCInput, 6> RPCData::m_orsignals
std::array<int, 6> RPCData::m_sec1
std::array<int, 6> RPCData::m_sec2
int RPCData::m_wheel

Definition at line 48 of file RPCData.h.

Referenced by operator<<(), operator>>(), RPCData(), and wheelIdx().