ATLAS Offline Software
TGCTMDB.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigT1TGC_TGCTMDB_H
6 #define TrigT1TGC_TGCTMDB_H
7 
8 #include <memory>
9 
11 #include "StoreGate/ReadHandle.h"
13 
14 #include "TrigT1TGC/TGCTMDBOut.h"
15 #include "TrigT1TGC/TGCNumbering.h"
16 
17 namespace LVL1TGC {
18 
19 class TGCTMDB : public AthMessaging {
20  public:
21  TGCTMDB();
22  virtual ~TGCTMDB() = default;
23  TGCTMDB(const TGCTMDB& right) = delete;
24  TGCTMDB& operator = (const TGCTMDB& right) = delete;
25  int operator == (const TGCTMDB& right) const = delete;
26  int operator != (const TGCTMDB& right) const = delete;
27 
29 
30  std::shared_ptr<const TGCTMDBOut> getOutput(const TGCSide side, unsigned int moduleID) const;
31  std::shared_ptr<const TGCTMDBOut> getOutput(const TGCSide side, int sectorID, unsigned int mod) const;
32 
33  int getInnerTileBits(const TGCSide side, int sectorID) const;
34 
35  void print() const;
36 
37  private:
38  static constexpr unsigned int kNTileModule = 64;
39 
40  void setOutput(const TGCSide side, const unsigned int module,
42 
43  void eraseOutput();
44 
45  private:
46  std::array<std::array<std::shared_ptr<TGCTMDBOut>, kNTileModule>, TGCSide::kNSide> m_buffer;
47 };
48 
49 
50 } // end of namespace
51 
52 #endif
LVL1TGC::TGCTMDB::getOutput
std::shared_ptr< const TGCTMDBOut > getOutput(const TGCSide side, unsigned int moduleID) const
Definition: TGCTMDB.cxx:114
LVL1TGC::TGCTMDB::operator=
TGCTMDB & operator=(const TGCTMDB &right)=delete
LVL1TGC::TGCTMDB
Definition: TGCTMDB.h:19
LVL1TGC::TGCTMDB::retrieve
StatusCode retrieve(SG::ReadHandleKey< TileMuonReceiverContainer > key)
Definition: TGCTMDB.cxx:20
LVL1TGC::TGCTMDB::print
void print() const
Definition: TGCTMDB.cxx:173
LVL1TGC::TGCTMDB::~TGCTMDB
virtual ~TGCTMDB()=default
TileMuonReceiverContainer.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
LVL1TGC::TGCTMDB::operator==
int operator==(const TGCTMDB &right) const =delete
TRT::Hit::side
@ side
Definition: HitInfo.h:83
LVL1TGC::TGCTMDB::getInnerTileBits
int getInnerTileBits(const TGCSide side, int sectorID) const
Definition: TGCTMDB.cxx:154
python.PyAthena.module
module
Definition: PyAthena.py:131
maskDeadModules.mod
mod
Definition: maskDeadModules.py:36
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LVL1TGC
Definition: BigWheelCoincidenceLUT.cxx:20
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
TGCTMDBOut.h
LVL1TGC::TGCTMDB::operator!=
int operator!=(const TGCTMDB &right) const =delete
LVL1TGC::TGCTMDB::eraseOutput
void eraseOutput()
Definition: TGCTMDB.cxx:148
TGCNumbering.h
LVL1TGC::TGCTMDB::m_buffer
std::array< std::array< std::shared_ptr< TGCTMDBOut >, kNTileModule >, TGCSide::kNSide > m_buffer
Definition: TGCTMDB.h:46
AthMessaging.h
LVL1TGC::TGCTMDB::TGCTMDB
TGCTMDB()
Definition: TGCTMDB.cxx:9
LVL1TGC::kNSide
@ kNSide
Definition: TGCNumbering.h:16
LVL1TGC::TGCTMDBOut::TileModuleHit
TileModuleHit
Definition: TGCTMDBOut.h:13
LVL1TGC::TGCTMDB::TGCTMDB
TGCTMDB(const TGCTMDB &right)=delete
LVL1TGC::TGCSide
TGCSide
The sides of TGC (A- or C-side)
Definition: TGCNumbering.h:13
LVL1TGC::TGCTMDB::setOutput
void setOutput(const TGCSide side, const unsigned int module, const TGCTMDBOut::TileModuleHit hit56, const TGCTMDBOut::TileModuleHit hit6)
Definition: TGCTMDB.cxx:139
LVL1TGC::TGCTMDB::kNTileModule
static constexpr unsigned int kNTileModule
Definition: TGCTMDB.h:38
ReadHandle.h
Handle class for reading from StoreGate.
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37