ATLAS Offline Software
Loading...
Searching...
No Matches
TGCCableSLBToHPB.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONTGC_CABLING_TGCCABLESLBTOHPB_HH
6#define MUONTGC_CABLING_TGCCABLESLBTOHPB_HH
7
9
10#include <string>
11#include <memory>
12#include <array>
13
14namespace MuonTGC_Cabling {
15
16class TGCDatabase;
17
19{
20 public:
21 TGCCableSLBToHPB(const std::string& filename);
22 virtual ~TGCCableSLBToHPB() = default;
23
24 virtual TGCChannelId* getChannel(const TGCChannelId* channelId,
25 bool orChannel=false) const;
26 virtual TGCModuleMap* getModule(const TGCModuleId* moduleId) const;
27
29 TGCId::ModuleType moduleType,
30 bool orChannel=false) const;
31
32 private:
34 virtual TGCChannelId* getChannelIn(const TGCChannelId* hpbin,
35 bool orChannel=false) const;
36 virtual TGCChannelId* getChannelOut(const TGCChannelId* slbout,
37 bool orChannel=false) const;
38 virtual TGCModuleMap* getModuleIn(const TGCModuleId* hpb) const;
39 virtual TGCModuleMap* getModuleInforHPB(const TGCModuleId* hpb, TGCId::ModuleType moduleType) const;
40 virtual TGCModuleMap* getModuleOut(const TGCModuleId* slb) const;
41 std::array<std::array<std::unique_ptr<TGCDatabase>, TGCId::MaxModuleType>, TGCId::MaxRegionType> m_database{{{nullptr}}};
42};
43
44} // end of namespace
45
46#endif
virtual TGCModuleMap * getModuleOut(const TGCModuleId *slb) const
std::array< std::array< std::unique_ptr< TGCDatabase >, TGCId::MaxModuleType >, TGCId::MaxRegionType > m_database
virtual TGCChannelId * getChannel(const TGCChannelId *channelId, bool orChannel=false) const
virtual TGCChannelId * getChannelOut(const TGCChannelId *slbout, bool orChannel=false) const
TGCCableSLBToHPB(const std::string &filename)
virtual TGCModuleMap * getModuleInforHPB(const TGCModuleId *hpb, TGCId::ModuleType moduleType) const
virtual TGCModuleMap * getModuleIn(const TGCModuleId *hpb) const
virtual TGCChannelId * getChannelIn(const TGCChannelId *hpbin, bool orChannel=false) const
TGCChannelId * getChannelInforHPB(const TGCChannelId *hpbin, TGCId::ModuleType moduleType, bool orChannel=false) const
virtual TGCModuleMap * getModule(const TGCModuleId *moduleId) const
virtual ~TGCCableSLBToHPB()=default
TGCCable(CableType type=NoCableType)
Definition TGCCable.h:24