CMS 3D CMS Logo

Public Member Functions | Public Attributes | Friends

RPCData Class Reference

#include <interface/RPCData.h>

List of all members.

Public Member Functions

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

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.

                 {
  
  m_wheel     = 10;
  m_sec1      = new int[6];
  m_sec2      = new int[6];
  m_orsignals = new RBCInput[6];

}
RPCData::~RPCData ( ) [virtual]

Destructor.

Definition at line 107 of file RPCData.cc.

References m_orsignals, m_sec1, and m_sec2.

                  {
  
  delete [] m_sec1;
  delete [] m_sec2;
  delete [] m_orsignals;
  
} 

Member Function Documentation

int RPCData::wheelIdx ( ) [inline]

Definition at line 60 of file RPCData.h.

References m_wheel.

  {
    return (m_wheel + 2);
  }

Friends And Related Function Documentation

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

Definition at line 131 of file RPCData.cc.

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

Definition at line 117 of file RPCData.cc.

{
  
  (istr) >> rhs.m_wheel;
  for(int k=0; k < 6; ++k)
  {
    (istr) >> rhs.m_sec1[k] >> rhs.m_sec2[k];
    (istr) >> rhs.m_orsignals[k];
  }

  return istr;
    
}

Member Data Documentation