ATLAS Offline Software
TGCReadoutIndex.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include <iostream>
6 #include <iomanip>
8 
9 namespace LVL1TGCTrigger {
10 
13  : m_zDirection(kZ_FORWARD), m_octantNumber(0),
14  m_moduleNumber(0), m_rNumber(0), m_layerNumber(0)
15 {
16 }
17 
20  int imd, int ir, int ilyr)
21  : m_zDirection(iz), m_octantNumber(ioct),
22  m_moduleNumber(imd), m_rNumber(ir), m_layerNumber(ilyr)
23 {
24 }
25 
27 
29 {
30  static const char gZDirName[kTotalNumTGCZDirection] = {'F', 'B'};
31  std::cout << " " << gZDirName[m_zDirection] << "-"
32  << std::setw(1) << m_octantNumber << "-"
33  << std::setw(2) << m_moduleNumber << "-"
34  << m_rNumber << "-"
35  << m_layerNumber;
36 }
37 
38 
39 } //end of namespace bracket
LVL1TGCTrigger::TGCReadoutIndex::m_moduleNumber
int m_moduleNumber
Definition: TGCReadoutIndex.h:17
LVL1TGCTrigger::TGCReadoutIndex::TGCReadoutIndex
TGCReadoutIndex()
Definition: TGCReadoutIndex.cxx:12
LVL1TGCTrigger::TGCReadoutIndex::m_zDirection
TGCZDirection m_zDirection
Definition: TGCReadoutIndex.h:15
TGCReadoutIndex.h
LVL1TGCTrigger::TGCReadoutIndex::m_rNumber
int m_rNumber
Definition: TGCReadoutIndex.h:18
LVL1TGCTrigger
Definition: LVL1TGCTrigger.cxx:47
ir
int ir
counter of the current depth
Definition: fastadd.cxx:49
LVL1TGCTrigger::TGCReadoutIndex::m_layerNumber
int m_layerNumber
Definition: TGCReadoutIndex.h:19
LVL1TGCTrigger::TGCReadoutIndex::Print
void Print() const
Definition: TGCReadoutIndex.cxx:28
LVL1TGCTrigger::kTotalNumTGCZDirection
@ kTotalNumTGCZDirection
Definition: TGCNumbering.h:46
LVL1TGCTrigger::TGCReadoutIndex::m_octantNumber
int m_octantNumber
Definition: TGCReadoutIndex.h:16
LVL1TGCTrigger::TGCZDirection
TGCZDirection
Definition: TGCNumbering.h:43
LVL1TGCTrigger::kZ_FORWARD
@ kZ_FORWARD
Definition: TGCNumbering.h:44