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 () 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 43 of file RPCData.h.

Constructor & Destructor Documentation

RPCData::RPCData ( )

Standard constructor.

Definition at line 92 of file RPCData.cc.

References l1trigger::Counters::m_wheel.

92  {
93  m_wheel = 10;
94 }
int m_wheel
Definition: RPCData.h:49
RPCData::~RPCData ( )
default

Destructor.

Member Function Documentation

int RPCData::wheelIdx ( ) const
inline

Definition at line 57 of file RPCData.h.

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

Friends And Related Function Documentation

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

Definition at line 112 of file RPCData.cc.

113 {
114 
115  ostr << rhs.m_wheel << '\t';
116  for(int k=0; k < 6; ++k)
117  {
118  ostr << rhs.m_sec1[k] << '\t' << rhs.m_sec2[k] << '\n';
119  ostr << rhs.m_orsignals[k];
120  }
121 
122  return ostr;
123 
124 }
int k[5][pyjets_maxn]
std::istream& operator>> ( std::istream &  istr,
RPCData rhs 
)
friend

Definition at line 98 of file RPCData.cc.

99 {
100 
101  (istr) >> rhs.m_wheel;
102  for(int k=0; k < 6; ++k)
103  {
104  (istr) >> rhs.m_sec1[k] >> rhs.m_sec2[k];
105  (istr) >> rhs.m_orsignals[k];
106  }
107 
108  return istr;
109 
110 }
std::array< RBCInput, 6 > m_orsignals
Definition: RPCData.h:52
int m_wheel
Definition: RPCData.h:49
int k[5][pyjets_maxn]
std::array< int,6 > m_sec2
Definition: RPCData.h:51
std::array< int, 6 > m_sec1
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 49 of file RPCData.h.

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