ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
9
10namespace InDetDD
11{
12
14 : AthMessaging("BCMPrimeGmxInterface")
15{}
16
17int 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
#define ATH_MSG_DEBUG(x)
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
virtual int sensorId(std::map< std::string, int > &index) const override final
int buildHitId(const int, const int, const int, const int, const int, const int) const
static const SiHitIdHelper * GetHelper()
Message Stream Member.
Definition index.py:1