ATLAS Offline Software
Loading...
Searching...
No Matches
EMBHVElectrode.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
7#include "LArHV/EMBHVModule.h"
8#include <cmath>
9
10#include "EMBHVPayload.h"
11
13public:
14 Clockwork(const EMBHVModule* modulePtr, unsigned int electrode)
15 : module(modulePtr)
16 , iElectrode(electrode)
17 {}
19 unsigned int iElectrode;
20};
21
22EMBHVElectrode::EMBHVElectrode(const EMBHVModule* module, unsigned int iElectrode)
23 : m_c(new Clockwork(module,iElectrode))
24{
25}
26
31
33{
34 return *(m_c->module);
35}
36
38{
39 return m_c->module->getPhiMin()+m_c->iElectrode*2.0*M_PI/1024.0;
40}
41
42#if !(defined(SIMULATIONBASE) || defined(GENERATIONBASE))
43int EMBHVElectrode::hvLineNo(int iGap, const LArHVIdMapping* hvIdMapping) const {
44 return m_c->module->getManager().hvLineNo(*this, iGap, hvIdMapping);
45}
46#endif
47
49 return m_c->iElectrode;
50}
#define M_PI
Clockwork(const EMBHVModule *modulePtr, unsigned int electrode)
const EMBHVModule * module
EMBHVElectrode(const EMBHVModule *module, unsigned int iElectrode)
Clockwork * m_c
const EMBHVModule & getModule() const
int hvLineNo(int iGap, const LArHVIdMapping *hvIdMapping) const
double getPhi() const
unsigned int getElectrodeIndex() const
Describes one HV Module within the EMB.
Definition EMBHVModule.h:20