CMS 3D CMS Logo

Public Member Functions | Private Attributes

RBCId Class Reference

#include <RBCId.h>

List of all members.

Public Member Functions

void printinfo ()
 RBCId ()
 Standard constructor.
 RBCId (int, int *)
 RBCId (const RBCId &)
int sector (int _sec) const
void setid (int _wh, int *_sec)
int wheel () const
int wheelIdx () const
virtual ~RBCId ()
 Destructor.

Private Attributes

int m_sector [2]
int m_wheel

Detailed Description

Author:
Andres Osorio

email: aosorio@uniandes.edu.co

Date:
2008-10-12

Definition at line 17 of file RBCId.h.


Constructor & Destructor Documentation

RBCId::RBCId ( )

Standard constructor.

Definition at line 16 of file RBCId.cc.

References m_sector, and m_wheel.

               {
  m_wheel = -9;
  m_sector[0] = 100;
  m_sector[1] = 101;
}
RBCId::RBCId ( int  _w,
int *  _s 
)

Definition at line 22 of file RBCId.cc.

References m_sector, and m_wheel.

{
  m_wheel     = _w;
  m_sector[0] = _s[0];
  m_sector[1] = _s[1];
}
RBCId::RBCId ( const RBCId id)

Definition at line 29 of file RBCId.cc.

References m_sector, and m_wheel.

{
  m_wheel     = id.wheel();
  m_sector[0] = id.sector(0);
  m_sector[1] = id.sector(1);
}
RBCId::~RBCId ( ) [virtual]

Destructor.

Definition at line 39 of file RBCId.cc.

{} 

Member Function Documentation

void RBCId::printinfo ( )

Definition at line 42 of file RBCId.cc.

References gather_cfg::cout, m_sector, and m_wheel.

Referenced by RBCEmulator::printinfo().

{
  
  std::cout << " ---->whe " << m_wheel << '\n';
  std::cout << " ---->sec " << m_sector[0] << '\t' << m_sector[1] << '\n';
  
}
int RBCId::sector ( int  _sec) const [inline]

Definition at line 32 of file RBCId.h.

References m_sector.

{ return m_sector[_sec]; };
void RBCId::setid ( int  _wh,
int *  _sec 
) [inline]

Definition at line 34 of file RBCId.h.

References m_sector, and m_wheel.

Referenced by RBCEmulator::setid().

                                   { 
    m_wheel = _wh;
    m_sector[0] = _sec[0];
    m_sector[1] = _sec[1];
  };
int RBCId::wheel ( ) const [inline]

Definition at line 28 of file RBCId.h.

References m_wheel.

Referenced by RBCEmulator::emulate().

{ return m_wheel;};
int RBCId::wheelIdx ( ) const [inline]

Definition at line 30 of file RBCId.h.

References m_wheel.

{ return (m_wheel+2);}; // wheel index starts from 0

Member Data Documentation

int RBCId::m_sector[2] [private]

Definition at line 47 of file RBCId.h.

Referenced by printinfo(), RBCId(), sector(), and setid().

int RBCId::m_wheel [private]

Definition at line 46 of file RBCId.h.

Referenced by printinfo(), RBCId(), setid(), wheel(), and wheelIdx().