ATLAS Offline Software
Loading...
Searching...
No Matches
TGCCablePPToSLB.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_TGCCABLEPPTOSLB_HH
6#define MUONTGC_CABLING_TGCCABLEPPTOSLB_HH
7
9
10#include <string>
11#include <memory>
12#include <array>
13
14namespace MuonTGC_Cabling {
15
16class TGCDatabase;
17
19{
20public:
21 TGCCablePPToSLB(const std::string& filename);
22 virtual ~TGCCablePPToSLB() = default;
23
24 virtual TGCChannelId* getChannel(const TGCChannelId* channelId,
25 bool orChannel=false) const;
26 virtual TGCModuleMap* getModule(const TGCModuleId* moduleId) const;
27
28private:
30 virtual TGCChannelId* getChannelIn(const TGCChannelId* slbin,
31 bool orChannel=false) const;
32 virtual TGCChannelId* getChannelOut(const TGCChannelId* ppout,
33 bool orChannel=false) const;
34 virtual TGCModuleMap* getModuleIn(const TGCModuleId* slb) const;
35 virtual TGCModuleMap* getModuleOut(const TGCModuleId* pp) const;
36
37 std::array<std::array<std::unique_ptr<TGCDatabase>, TGCId::MaxModuleType>, TGCId::MaxRegionType> m_database{{{nullptr}}};
38};
39
40} // end of namespace
41
42#endif
virtual TGCChannelId * getChannelIn(const TGCChannelId *slbin, bool orChannel=false) const
virtual TGCModuleMap * getModuleOut(const TGCModuleId *pp) const
TGCCablePPToSLB(const std::string &filename)
virtual TGCChannelId * getChannelOut(const TGCChannelId *ppout, bool orChannel=false) const
virtual TGCModuleMap * getModuleIn(const TGCModuleId *slb) const
std::array< std::array< std::unique_ptr< TGCDatabase >, TGCId::MaxModuleType >, TGCId::MaxRegionType > m_database
virtual ~TGCCablePPToSLB()=default
virtual TGCChannelId * getChannel(const TGCChannelId *channelId, bool orChannel=false) const
virtual TGCModuleMap * getModule(const TGCModuleId *moduleId) const
TGCCable(CableType type=NoCableType)
Definition TGCCable.h:24