ATLAS Offline Software
HECHVSubgap.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "LArHV/HECHVSubgap.h"
6 #include "LArHV/HECHVModule.h"
7 #include "LArHV/HECHVManager.h"
8 
9 #include "HECHVPayload.h"
10 
12 public:
13  Clockwork(const HECHVModule* modulePtr
14  , unsigned int subgap)
15  : module(modulePtr)
16  , iSubgap(subgap)
17  {}
18 
20  unsigned int iSubgap;
21 };
22 
24  , unsigned int iSubgap)
25  :m_c(new Clockwork(module,iSubgap))
26 {
27 }
28 
30 {
31  delete m_c;
32 }
33 
35 {
36  return *(m_c->module);
37 }
38 
39 unsigned int HECHVSubgap::getSubgapIndex() const
40 {
41  return m_c->iSubgap;
42 }
43 
44 #if !(defined(SIMULATIONBASE) || defined(GENERATIONBASE))
45 int HECHVSubgap::hvLineNo(const LArHVIdMapping* hvIdMapping) const {
46  return m_c->module->getManager().hvLineNo(*this,hvIdMapping);
47 }
48 #endif
HECHVModule
Describes one HV Module within the HEC.
Definition: HECHVModule.h:21
HECHVSubgap::Clockwork::Clockwork
Clockwork(const HECHVModule *modulePtr, unsigned int subgap)
Definition: HECHVSubgap.cxx:13
HECHVSubgap::Clockwork
Definition: HECHVSubgap.cxx:11
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
HECHVModule::getManager
const HECHVManager & getManager() const
Definition: HECHVModule.cxx:89
HECHVManager.h
python.PyAthena.module
module
Definition: PyAthena.py:134
HECHVSubgap::HECHVSubgap
HECHVSubgap(const HECHVModule *module, unsigned int iSubgap)
Definition: HECHVSubgap.cxx:23
HECHVSubgap::hvLineNo
int hvLineNo(const LArHVIdMapping *hvIdMapping) const
Definition: HECHVSubgap.cxx:45
HECHVManager::hvLineNo
int hvLineNo(const HECHVSubgap &subgap, const LArHVIdMapping *hvIdMapping) const
Definition: HECHVManager.cxx:298
HECHVSubgap.h
HECHVPayload.h
HECHVSubgap::getModule
const HECHVModule & getModule() const
Definition: HECHVSubgap.cxx:34
HECHVSubgap::getSubgapIndex
unsigned int getSubgapIndex() const
Definition: HECHVSubgap.cxx:39
HECHVSubgap::Clockwork::iSubgap
unsigned int iSubgap
Definition: HECHVSubgap.cxx:20
HECHVSubgap::m_c
Clockwork * m_c
Definition: HECHVSubgap.h:34
HECHVSubgap::~HECHVSubgap
~HECHVSubgap()
Definition: HECHVSubgap.cxx:29
LArHVIdMapping
Definition: LArHVIdMapping.h:21
HECHVSubgap::Clockwork::module
const HECHVModule * module
Definition: HECHVSubgap.cxx:19
HECHVModule.h