ATLAS Offline Software
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
BCMPrimeGeoModelXml
src
BCMPrimeGmxInterface.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
BCMPrimeGmxInterface.h
"
6
7
#include "
BCMPrimeReadoutGeometry/BCMPrimeDetectorManager.h
"
8
#include "
InDetSimEvent/SiHitIdHelper.h
"
9
10
namespace
InDetDD
11
{
12
13
BCMPrimeGmxInterface::BCMPrimeGmxInterface
()
14
:
AthMessaging
(
"BCMPrimeGmxInterface"
)
15
{}
16
17
int
BCMPrimeGmxInterface::sensorId
(std::map<std::string, int> &
index
)
const
18
{
19
// Return the Simulation HitID (nothing to do with "ATLAS Identifiers" aka "Offline Identifiers")
20
int
hitIdOfModule =
SiHitIdHelper::GetHelper
()->
buildHitId
(0, 0,
index
[
"diamond_number"
],
index
[
"module_number"
], 0, 0);
21
22
ATH_MSG_DEBUG
(
"Index list: "
<<
index
[
"diamond_number"
] <<
" "
<<
index
[
"module_number"
]);
23
ATH_MSG_DEBUG
(
"hitIdOfModule = "
<< std::hex << hitIdOfModule << std::dec);
24
ATH_MSG_DEBUG
(
" dia = "
<<
SiHitIdHelper::GetHelper
()->getLayerDisk(hitIdOfModule) <<
25
" mod = "
<<
SiHitIdHelper::GetHelper
()->getEtaModule(hitIdOfModule));
26
return
hitIdOfModule;
27
}
28
29
30
}
// namespace InDetDD
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
BCMPrimeDetectorManager.h
BCMPrimeGmxInterface.h
SiHitIdHelper.h
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
InDetDD::BCMPrimeGmxInterface::sensorId
virtual int sensorId(std::map< std::string, int > &index) const override final
Definition
BCMPrimeGmxInterface.cxx:17
InDetDD::BCMPrimeGmxInterface::BCMPrimeGmxInterface
BCMPrimeGmxInterface()
Definition
BCMPrimeGmxInterface.cxx:13
SiHitIdHelper::buildHitId
int buildHitId(const int, const int, const int, const int, const int, const int) const
Definition
SiHitIdHelper.cxx:118
SiHitIdHelper::GetHelper
static const SiHitIdHelper * GetHelper()
Definition
SiHitIdHelper.cxx:19
InDetDD
Message Stream Member.
Definition
FakeTrackBuilder.h:8
index
Definition
index.py:1
Generated on
for ATLAS Offline Software by
1.14.0