CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
RBCId Class Reference

#include <RBCId.h>

Public Member Functions

RBCIdoperator= (RBCId &&)=default
 
RBCIdoperator= (RBCId const &)=default
 
void printinfo () const
 
 RBCId ()
 Standard constructor. More...
 
 RBCId (const RBCId &)=default
 
 RBCId (int, int *)
 
 RBCId (RBCId &&)=default
 
int sector (int _sec) const
 
void setid (int _wh, int *_sec)
 
int wheel () const
 
int wheelIdx () const
 

Private Attributes

int m_sector [2]
 
int m_wheel
 

Detailed Description

Author
Andres Osorio

email: aosor.nosp@m.io@u.nosp@m.niand.nosp@m.es.e.nosp@m.du.co

Date
2008-10-12

Definition at line 16 of file RBCId.h.

Constructor & Destructor Documentation

◆ RBCId() [1/4]

RBCId::RBCId ( )

Standard constructor.

Definition at line 15 of file RBCId.cc.

15  {
16  m_wheel = -9;
17  m_sector[0] = 100;
18  m_sector[1] = 101;
19 }

References m_sector, and m_wheel.

◆ RBCId() [2/4]

RBCId::RBCId ( int  _w,
int *  _s 
)

Definition at line 21 of file RBCId.cc.

21  {
22  m_wheel = _w;
23  m_sector[0] = _s[0];
24  m_sector[1] = _s[1];
25 }

References m_sector, and m_wheel.

◆ RBCId() [3/4]

RBCId::RBCId ( const RBCId )
default

◆ RBCId() [4/4]

RBCId::RBCId ( RBCId &&  )
default

Member Function Documentation

◆ operator=() [1/2]

RBCId& RBCId::operator= ( RBCId &&  )
default

◆ operator=() [2/2]

RBCId& RBCId::operator= ( RBCId const &  )
default

◆ printinfo()

void RBCId::printinfo ( ) const

Definition at line 28 of file RBCId.cc.

28  {
29  std::cout << " ---->whe " << m_wheel << '\n';
30  std::cout << " ---->sec " << m_sector[0] << '\t' << m_sector[1] << '\n';
31 }

References gather_cfg::cout, m_sector, and m_wheel.

Referenced by RBCEmulator::printinfo().

◆ sector()

int RBCId::sector ( int  _sec) const
inline

Definition at line 32 of file RBCId.h.

32 { return m_sector[_sec]; };

References m_sector.

Referenced by geometryXMLparser.DTAlignable::index().

◆ setid()

void RBCId::setid ( int  _wh,
int *  _sec 
)
inline

Definition at line 34 of file RBCId.h.

34  {
35  m_wheel = _wh;
36  m_sector[0] = _sec[0];
37  m_sector[1] = _sec[1];
38  };

References m_sector, and m_wheel.

Referenced by RBCEmulator::setid().

◆ wheel()

int RBCId::wheel ( ) const
inline

Definition at line 28 of file RBCId.h.

28 { return m_wheel; };

References m_wheel.

Referenced by RBCEmulator::emulate(), and geometryXMLparser.DTAlignable::index().

◆ wheelIdx()

int RBCId::wheelIdx ( ) const
inline

Definition at line 30 of file RBCId.h.

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

References m_wheel.

Member Data Documentation

◆ m_sector

int RBCId::m_sector[2]
private

Definition at line 45 of file RBCId.h.

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

◆ m_wheel

int RBCId::m_wheel
private

Definition at line 44 of file RBCId.h.

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

RBCId::m_sector
int m_sector[2]
Definition: RBCId.h:45
gather_cfg.cout
cout
Definition: gather_cfg.py:144
RBCId::m_wheel
int m_wheel
Definition: RBCId.h:44