ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCablings
MuonTGC_Cabling
MuonTGC_Cabling
TGCCableASDToPP.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MUONTGC_CABLING_TGCCABLEASDTOPP_H
6
#define MUONTGC_CABLING_TGCCABLEASDTOPP_H
7
8
9
10
#include "
MuonTGC_Cabling/TGCCable.h
"
11
#include "
MuonTGC_Cabling/TGCDatabaseASDToPP.h
"
12
#include "
MuonTGC_Cabling/TGCId.h
"
13
#include <array>
14
#include <string>
15
#include <vector>
16
#include <string_view>
17
18
namespace
MuonTGC_Cabling
{
19
20
class
TGCCableASDToPP
:
public
TGCCable
{
21
public
:
22
TGCCableASDToPP
(
const
std::string& fileName,
const
std::string& diffFile);
23
virtual
~TGCCableASDToPP
();
24
25
std::unique_ptr<TGCChannelId>
getChannel
(
const
TGCChannelId
& channelId,
26
bool
orChannel =
false
)
const
;
27
28
private
:
29
void
initialize
(
const
std::string& filename,
const
std::string& diffFile);
30
31
void
updateDatabase
(
const
std::string& diffFile);
32
33
std::unique_ptr<TGCChannelId>
getChannelIn
(
const
TGCChannelId
& ppin,
34
bool
orChannel =
false
)
const
;
35
std::unique_ptr<TGCChannelId>
getChannelOut
(
const
TGCChannelId
& asdout,
36
bool
orChannel =
false
)
const
;
37
38
std::vector<std::vector<int> >
getUpdateInfo
(
39
const
int
side,
const
int
sector,
40
const
std::vector<std::string>& diffFile, std::string_view blockname);
41
42
TGCDatabaseASDToPP
*
getDatabase
(
const
TGCId::SideType
side,
const
TGCId::RegionType
region,
43
const
int
sector,
const
TGCId::ModuleType
module)
const
;
44
45
void
updateIndividualDatabase
(
46
const
int
side,
const
int
sector,
47
const
std::vector<std::string>& diffFile, std::string_view blockname,
48
std::shared_ptr<TGCDatabaseASDToPP>& database);
49
50
private
:
51
// reverse layers in Forward sector
52
53
static
constexpr
std::array<int, 10>
s_stripForward
{2, 1, 0, 4, 3,
54
6, 5, 8, 7, 9};
55
56
private
:
57
using
ForwardSectorDB
=
58
std::array<std::array<std::shared_ptr<TGCDatabaseASDToPP>,
59
TGCId::NUM_FORWARD_SECTOR
>,
60
+
TGCId::SideType::MaxSideType
>;
61
using
InnerSectorDB
=
62
std::array<std::array<std::shared_ptr<TGCDatabaseASDToPP>,
63
TGCId::NUM_INNER_SECTOR
>,
64
+
TGCId::SideType::MaxSideType
>;
65
using
EndcapSectorDB
=
66
std::array<std::array<std::shared_ptr<TGCDatabaseASDToPP>,
67
TGCId::NUM_ENDCAP_SECTOR
>,
68
+
TGCId::SideType::MaxSideType
>;
69
70
ForwardSectorDB
m_FWDdb
{};
71
ForwardSectorDB
m_FSDdb
{};
72
ForwardSectorDB
m_FWTdb
{};
73
ForwardSectorDB
m_FSTdb
{};
74
InnerSectorDB
m_FWIdb
{};
75
InnerSectorDB
m_FSIdb
{};
76
77
EndcapSectorDB
m_EWDdb
{};
78
EndcapSectorDB
m_ESDdb
{};
79
EndcapSectorDB
m_EWTdb
{};
80
EndcapSectorDB
m_ESTdb
{};
81
InnerSectorDB
m_EWIdb
{};
82
InnerSectorDB
m_ESIdb
{};
83
85
using
CommonDB
= std::array<
86
std::array<std::shared_ptr<TGCDatabaseASDToPP>, +
TGCId::ModuleType::MaxModuleType
>,
87
+
TGCId::RegionType::MaxRegionType
>;
88
CommonDB
m_commonDb
{{{
nullptr
}}};
89
};
90
91
}
// namespace MuonTGC_Cabling
92
93
#endif
TGCCable.h
TGCDatabaseASDToPP.h
TGCId.h
MuonTGC_Cabling::TGCCableASDToPP::InnerSectorDB
std::array< std::array< std::shared_ptr< TGCDatabaseASDToPP >, TGCId::NUM_INNER_SECTOR >,+TGCId::SideType::MaxSideType > InnerSectorDB
Definition
TGCCableASDToPP.h:61
MuonTGC_Cabling::TGCCableASDToPP::m_ESDdb
EndcapSectorDB m_ESDdb
Definition
TGCCableASDToPP.h:78
MuonTGC_Cabling::TGCCableASDToPP::getDatabase
TGCDatabaseASDToPP * getDatabase(const TGCId::SideType side, const TGCId::RegionType region, const int sector, const TGCId::ModuleType module) const
Definition
TGCCableASDToPP.cxx:194
MuonTGC_Cabling::TGCCableASDToPP::m_EWDdb
EndcapSectorDB m_EWDdb
Definition
TGCCableASDToPP.h:77
MuonTGC_Cabling::TGCCableASDToPP::m_EWIdb
InnerSectorDB m_EWIdb
Definition
TGCCableASDToPP.h:81
MuonTGC_Cabling::TGCCableASDToPP::m_FSDdb
ForwardSectorDB m_FSDdb
Definition
TGCCableASDToPP.h:71
MuonTGC_Cabling::TGCCableASDToPP::m_FWIdb
InnerSectorDB m_FWIdb
Definition
TGCCableASDToPP.h:74
MuonTGC_Cabling::TGCCableASDToPP::updateDatabase
void updateDatabase(const std::string &diffFile)
Definition
TGCCableASDToPP.cxx:77
MuonTGC_Cabling::TGCCableASDToPP::m_FWDdb
ForwardSectorDB m_FWDdb
Definition
TGCCableASDToPP.h:70
MuonTGC_Cabling::TGCCableASDToPP::m_ESIdb
InnerSectorDB m_ESIdb
Definition
TGCCableASDToPP.h:82
MuonTGC_Cabling::TGCCableASDToPP::CommonDB
std::array< std::array< std::shared_ptr< TGCDatabaseASDToPP >,+TGCId::ModuleType::MaxModuleType >,+TGCId::RegionType::MaxRegionType > CommonDB
Pointers of common databases are recorded in this array.
Definition
TGCCableASDToPP.h:85
MuonTGC_Cabling::TGCCableASDToPP::getChannel
std::unique_ptr< TGCChannelId > getChannel(const TGCChannelId &channelId, bool orChannel=false) const
Definition
TGCCableASDToPP.cxx:280
MuonTGC_Cabling::TGCCableASDToPP::m_ESTdb
EndcapSectorDB m_ESTdb
Definition
TGCCableASDToPP.h:80
MuonTGC_Cabling::TGCCableASDToPP::~TGCCableASDToPP
virtual ~TGCCableASDToPP()
MuonTGC_Cabling::TGCCableASDToPP::m_commonDb
CommonDB m_commonDb
Definition
TGCCableASDToPP.h:88
MuonTGC_Cabling::TGCCableASDToPP::m_FSIdb
InnerSectorDB m_FSIdb
Definition
TGCCableASDToPP.h:75
MuonTGC_Cabling::TGCCableASDToPP::getChannelOut
std::unique_ptr< TGCChannelId > getChannelOut(const TGCChannelId &asdout, bool orChannel=false) const
Definition
TGCCableASDToPP.cxx:333
MuonTGC_Cabling::TGCCableASDToPP::updateIndividualDatabase
void updateIndividualDatabase(const int side, const int sector, const std::vector< std::string > &diffFile, std::string_view blockname, std::shared_ptr< TGCDatabaseASDToPP > &database)
Definition
TGCCableASDToPP.cxx:386
MuonTGC_Cabling::TGCCableASDToPP::getUpdateInfo
std::vector< std::vector< int > > getUpdateInfo(const int side, const int sector, const std::vector< std::string > &diffFile, std::string_view blockname)
Definition
TGCCableASDToPP.cxx:133
MuonTGC_Cabling::TGCCableASDToPP::ForwardSectorDB
std::array< std::array< std::shared_ptr< TGCDatabaseASDToPP >, TGCId::NUM_FORWARD_SECTOR >,+TGCId::SideType::MaxSideType > ForwardSectorDB
Definition
TGCCableASDToPP.h:57
MuonTGC_Cabling::TGCCableASDToPP::EndcapSectorDB
std::array< std::array< std::shared_ptr< TGCDatabaseASDToPP >, TGCId::NUM_ENDCAP_SECTOR >,+TGCId::SideType::MaxSideType > EndcapSectorDB
Definition
TGCCableASDToPP.h:65
MuonTGC_Cabling::TGCCableASDToPP::m_EWTdb
EndcapSectorDB m_EWTdb
Definition
TGCCableASDToPP.h:79
MuonTGC_Cabling::TGCCableASDToPP::getChannelIn
std::unique_ptr< TGCChannelId > getChannelIn(const TGCChannelId &ppin, bool orChannel=false) const
Definition
TGCCableASDToPP.cxx:292
MuonTGC_Cabling::TGCCableASDToPP::TGCCableASDToPP
TGCCableASDToPP(const std::string &fileName, const std::string &diffFile)
Definition
TGCCableASDToPP.cxx:17
MuonTGC_Cabling::TGCCableASDToPP::m_FWTdb
ForwardSectorDB m_FWTdb
Definition
TGCCableASDToPP.h:72
MuonTGC_Cabling::TGCCableASDToPP::s_stripForward
static constexpr std::array< int, 10 > s_stripForward
Definition
TGCCableASDToPP.h:53
MuonTGC_Cabling::TGCCableASDToPP::m_FSTdb
ForwardSectorDB m_FSTdb
Definition
TGCCableASDToPP.h:73
MuonTGC_Cabling::TGCCable::TGCCable
TGCCable(CableType type=NoCableType)
Definition
TGCCable.h:31
MuonTGC_Cabling::TGCChannelId
Definition
TGCChannelId.h:17
MuonTGC_Cabling::TGCDatabaseASDToPP
Definition
TGCDatabaseASDToPP.h:12
MuonTGC_Cabling::TGCId::NUM_INNER_SECTOR
static constexpr int NUM_INNER_SECTOR
Definition
TGCId.h:45
MuonTGC_Cabling::TGCId::ModuleType
ModuleType
Definition
TGCId.h:51
MuonTGC_Cabling::TGCId::ModuleType::MaxModuleType
@ MaxModuleType
Definition
TGCId.h:54
MuonTGC_Cabling::TGCId::NUM_ENDCAP_SECTOR
static constexpr int NUM_ENDCAP_SECTOR
Definition
TGCId.h:43
MuonTGC_Cabling::TGCId::RegionType
RegionType
Definition
TGCId.h:59
MuonTGC_Cabling::TGCId::RegionType::MaxRegionType
@ MaxRegionType
Definition
TGCId.h:59
MuonTGC_Cabling::TGCId::SideType
SideType
Definition
TGCId.h:48
MuonTGC_Cabling::TGCId::SideType::MaxSideType
@ MaxSideType
Definition
TGCId.h:48
MuonTGC_Cabling::TGCId::NUM_FORWARD_SECTOR
static constexpr int NUM_FORWARD_SECTOR
Definition
TGCId.h:44
MuonTGC_Cabling
Definition
TGCCable.h:12
initialize
void initialize()
Definition
run_EoverP.cxx:894
Generated on
for ATLAS Offline Software by
1.17.0