CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
RBCId Class Reference

#include <RBCId.h>

Public Member Functions

void printinfo ()
 
 RBCId ()
 Standard constructor. More...
 
 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. More...
 

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::RBCId ( )

Standard constructor.

Definition at line 15 of file RBCId.cc.

References m_sector, and m_wheel.

15  {
16  m_wheel = -9;
17  m_sector[0] = 100;
18  m_sector[1] = 101;
19 }
int m_wheel
Definition: RBCId.h:45
int m_sector[2]
Definition: RBCId.h:46
RBCId::RBCId ( int  _w,
int *  _s 
)

Definition at line 21 of file RBCId.cc.

References m_sector, and m_wheel.

22 {
23  m_wheel = _w;
24  m_sector[0] = _s[0];
25  m_sector[1] = _s[1];
26 }
int m_wheel
Definition: RBCId.h:45
int m_sector[2]
Definition: RBCId.h:46
RBCId::RBCId ( const RBCId id)

Definition at line 28 of file RBCId.cc.

References m_sector, and m_wheel.

29 {
30  m_wheel = id.wheel();
31  m_sector[0] = id.sector(0);
32  m_sector[1] = id.sector(1);
33 }
int m_wheel
Definition: RBCId.h:45
int m_sector[2]
Definition: RBCId.h:46
RBCId::~RBCId ( )
virtual

Destructor.

Definition at line 38 of file RBCId.cc.

38 {}

Member Function Documentation

void RBCId::printinfo ( )

Definition at line 41 of file RBCId.cc.

References gather_cfg::cout, m_sector, and m_wheel.

Referenced by RBCEmulator::printinfo().

42 {
43 
44  std::cout << " ---->whe " << m_wheel << '\n';
45  std::cout << " ---->sec " << m_sector[0] << '\t' << m_sector[1] << '\n';
46 
47 }
int m_wheel
Definition: RBCId.h:45
int m_sector[2]
Definition: RBCId.h:46
tuple cout
Definition: gather_cfg.py:121
int RBCId::sector ( int  _sec) const
inline

Definition at line 31 of file RBCId.h.

References m_sector.

Referenced by geometryXMLparser.DTAlignable::index().

31 { return m_sector[_sec]; };
int m_sector[2]
Definition: RBCId.h:46
void RBCId::setid ( int  _wh,
int *  _sec 
)
inline

Definition at line 33 of file RBCId.h.

References m_sector, and m_wheel.

Referenced by RBCEmulator::setid().

33  {
34  m_wheel = _wh;
35  m_sector[0] = _sec[0];
36  m_sector[1] = _sec[1];
37  };
int m_wheel
Definition: RBCId.h:45
int m_sector[2]
Definition: RBCId.h:46
int RBCId::wheel ( ) const
inline

Definition at line 27 of file RBCId.h.

References m_wheel.

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

27 { return m_wheel;};
int m_wheel
Definition: RBCId.h:45
int RBCId::wheelIdx ( ) const
inline

Definition at line 29 of file RBCId.h.

References m_wheel.

29 { return (m_wheel+2);}; // wheel index starts from 0
int m_wheel
Definition: RBCId.h:45

Member Data Documentation

int RBCId::m_sector[2]
private

Definition at line 46 of file RBCId.h.

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

int RBCId::m_wheel
private

Definition at line 45 of file RBCId.h.

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