93 {
94
95
96
97
99 std::vector<const CondAttrListCollection*> attrLists;
101 {
103 attrLists.push_back (*attrList);
104 }
106 ATH_CHECK( detStore()->retrieve(manager) );
107
108 const EMBHVManager& hvManager_EMB=manager->getEMBHVManager();
110
113
116
119
122
123 const HECHVManager& hvManager_HEC=manager->getHECHVManager();
125
126 const FCALHVManager& hvManager_FCAL=manager->getFCALHVManager();
128
129 if(m_hvonlId_map.empty()) {
131 const LArOnOffIdMapping*
cabling{*cablingHdl};
132 if(!cabling) {
134 return StatusCode::FAILURE;
135 }
136
137 SG::ReadCondHandle<CaloDetDescrManager> caloMgrHandle{
m_caloMgrKey, ctx};
139 const CaloDetDescrManager* calodetdescrmgr=*caloMgrHandle;
142 for(;cell_b!=cell_e; ++cell_b) {
144 HWIdentifier onlid =
cabling->createSignalChannelID(*cell_b);
145 std::vector<int> hvlines =
GetHVLines (hvdata_EMB,
146 hvdata_EMBPS,
147 hvdata_EMEC_OUT,
148 hvdata_EMEC_IN,
149 hvdata_EMECPS,
150 hvdata_HEC,
151 hvdata_FCAL,
152 *cell_b,
153 calodetdescrmgr);
154 for(const auto thisLine : hvlines ) {
156 }
157 }
158 }
159
164 const EMBHVModule& hvMod = hvManager_EMB.
getHVModule(iSide,iEta,iPhi,iSector);
166 for (unsigned int ielec=0;ielec<32;ielec++) {
167 const EMBHVElectrode& electrode = hvMod.
getElectrode(ielec);
168 for (unsigned int iGap=0;iGap<2;iGap++) {
169 float hv = hvdata_EMB.
voltage (electrode, iGap);
172
182
183 if(m_addcells) {
191 }
193
194 }
195 }
196 }
197 }
198 }
199 }
200
204 const EMBPresamplerHVModule& hvMod = hvManager_EMBPS.
getHVModule(iSide,iEta,iPhi);
205 for (int iGap=0;iGap<2;iGap++) {
206 float hv = hvdata_EMBPS.
voltage (hvMod, iGap);
210
220
221 if(m_addcells) {
229 }
231
232 }
233 }
234 }
235 }
236
239 const EMECPresamplerHVModule& hvMod = hvManager_EMECPS.
getHVModule(iSide,iPhi);
240 for (int iGap=0;iGap<2;iGap++) {
241 float hv = hvdata_EMECPS.
voltage (hvMod, iGap);
245
255
256 if(m_addcells) {
264 }
266
267 }
268 }
269 }
270
271
272
277 const EMECHVModule& hvMod=hvManager_EMEC_OUT.
getHVModule(iSide,iEta,iPhi,iSector);
280 const EMECHVElectrode& electrode = hvMod.
getElectrode(ielec);
281 for (unsigned int iGap=0;iGap<2;iGap++) {
282 float hv = hvdata_EMEC_OUT.
voltage (electrode, iGap);
285
295
296 if(m_addcells) {
304 }
306
307 }
308 }
309 }
310 }
311 }
312 }
313
318 const EMECHVModule& hvMod=hvManager_EMEC_IN.
getHVModule(iSide,iEta,iPhi,iSector);
321 const EMECHVElectrode& electrode = hvMod.
getElectrode(ielec);
322 for (unsigned int iGap=0;iGap<2;iGap++) {
323 float hv = hvdata_EMEC_IN.
voltage (electrode, iGap);
326
336
337 if(m_addcells) {
345 }
347
348 }
349 }
350 }
351 }
352 }
353 }
354
355 float etamax_layer[4]={3.3,3.1,3.1,3.3};
356 float etamin_layer[4]={1.5,1.5,1.6,1.7};
357
358
362 float eta_min,eta_max;
363 if (iSide==1) {
364 eta_min = etamin_layer[iSampling];
365 eta_max = etamax_layer[iSampling];
366 } else {
367 eta_min = -1.*etamax_layer[iSampling];
368 eta_max = -1.*etamin_layer[iSampling];
369 }
370 float eta = 0.5*(eta_min+eta_max);
371 const HECHVModule& hvMod = hvManager_HEC.
getHVModule(iSide,iPhi,iSampling);
373
375 const HECHVSubgap& subgap=hvMod.
getSubgap(iGap);
378 m_bec = 10+iSampling;
387 if(m_addcells) {
395 }
397 }
398 }
399 }
400 }
401
403 float eta_min=3.1,eta_max=4.9;
404 if (iSide==0) { eta_min=-4.9; eta_max=-3.1; }
405
406 float eta = 0.5*(eta_min+eta_max);
409
410 const FCALHVModule& hvMod = hvManager_FCAL.
getHVModule(iSide,iSector,iSampling);
411
415 float phi_min = ((
float)(iSector))*dphi;
418 float phi = 0.5*(phi_min+phi_max);
419
424 m_bec = 14+iSampling;
433 if(m_addcells) {
441 }
443 }
444 }
445 }
446 }
447
448 return StatusCode::SUCCESS;
449 }
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x,...)
id_iterator cell_begin() const
begin iterator over full set of Identifiers (LAr + Tiles)
id_iterator cell_end() const
end iterator over full set of Identifiers (LAr + Tiles)
bool is_tile(const Identifier id) const
test if the id belongs to the Tiles
static double fix(double phi)
int hvLineNo(const EMBHVElectrode &electrode, const int &iGap) const
double voltage(const EMBHVElectrode &electrode, const int &iGap) const
double current(const EMBHVElectrode &electrode, const int &iGap) const
This class provides direct access to information on the HV electrodes within the barrels.
unsigned int beginPhiIndex() const
unsigned int endEtaIndex() const
static unsigned int endSectorIndex()
unsigned int beginEtaIndex() const
static unsigned int beginSectorIndex()
const EMBHVModule & getHVModule(unsigned int iSide, unsigned int iEta, unsigned int iPhi, unsigned int iSector) const
EMBHVData getData(const LArHVIdMapping &hvIdMapping, const std::vector< const CondAttrListCollection * > &attrLists) const
unsigned int endPhiIndex() const
static unsigned int beginSideIndex()
static unsigned int endSideIndex()
const EMBHVElectrode & getElectrode(unsigned int iElectrode) const
double voltage(const EMBPresamplerHVModule &module, const int &iGap) const
double current(const EMBPresamplerHVModule &module, const int &iGap) const
int hvLineNo(const EMBPresamplerHVModule &module, const int &iGap) const
This class provides direct access to information on the HV electrodes within the barrels.
const EMBPresamplerHVModule & getHVModule(unsigned int iSide, unsigned int iEta, unsigned int iPhi) const
EMBPresamplerHVData getData(const LArHVIdMapping &hvIdMapping, const std::vector< const CondAttrListCollection * > &attrLists) const
static unsigned int beginSideIndex()
unsigned int endPhiIndex() const
unsigned int beginPhiIndex() const
static unsigned int endSideIndex()
unsigned int endEtaIndex() const
unsigned int beginEtaIndex() const
double current(const EMECHVElectrode &electrode, const int &iGap) const
double voltage(const EMECHVElectrode &electrode, const int &iGap) const
int hvLineNo(const EMECHVElectrode &electrode, const int &iGap) const
This class provides direct access to information on the HV electrodes within the EMEC.
unsigned int beginEtaIndex() const
const EMECHVModule & getHVModule(unsigned int iSide, unsigned int iEta, unsigned int iPhi, unsigned int iSector) const
unsigned int beginSectorIndex() const
unsigned int endPhiIndex() const
static unsigned int beginSideIndex()
static unsigned int endSideIndex()
unsigned int endEtaIndex() const
unsigned int endSectorIndex() const
unsigned int beginPhiIndex() const
EMECHVData getData(const LArHVIdMapping &hvIdMapping, const std::vector< const CondAttrListCollection * > &attrLists) const
const EMECHVElectrode & getElectrode(unsigned int iElectrode) const
unsigned int getNumElectrodes() const
double voltage(const EMECPresamplerHVModule &module, const int &iGap) const
double current(const EMECPresamplerHVModule &module, const int &iGap) const
int hvLineNo(const EMECPresamplerHVModule &module, const int &iGap) const
This class provides direct access to information on the HV electrodes within the EMEC.
EMECPresamplerHVData getData(const LArHVIdMapping &hvIdMapping, const std::vector< const CondAttrListCollection * > &attrLists) const
unsigned int beginPhiIndex() const
unsigned int endPhiIndex() const
const EMECPresamplerHVModule & getHVModule(unsigned int iSide, unsigned int iPhi) const
static unsigned int endSideIndex()
static unsigned int beginSideIndex()
double current(const FCALHVLine &line) const
double voltage(const FCALHVLine &line) const
int hvLineNo(const FCALHVLine &line) const
This class provides direct access to information on the HV electrodes within the barrels.
static unsigned int beginSideIndex()
static unsigned int endSamplingIndex()
static unsigned int endSideIndex()
static unsigned int beginSectorIndex(unsigned int iSampling)
static unsigned int beginSamplingIndex()
const FCALHVModule & getHVModule(unsigned int iSide, unsigned int iSector, unsigned int iSampling) const
static unsigned int endSectorIndex(unsigned int iSampling)
FCALHVData getData(const LArHVIdMapping &hvIdMapping, const std::vector< const CondAttrListCollection * > &attrLists) const
const FCALHVLine & getHVLine(unsigned int iLine) const
static unsigned int getNumHVLines()
double current(const HECHVSubgap &subgap) const
int hvLineNo(const HECHVSubgap &subgap) const
double voltage(const HECHVSubgap &subgap) const
This class provides direct access to information on the HV electrodes within the barrels.
static unsigned int beginPhiIndex()
static unsigned int endSamplingIndex()
const HECHVModule & getHVModule(unsigned int iSide, unsigned int iPhi, unsigned int iSampling) const
static unsigned int endSideIndex()
HECHVData getData(const LArHVIdMapping &hvIdMapping, const std::vector< const CondAttrListCollection * > &attrLists) const
static unsigned int beginSideIndex()
static unsigned int beginSamplingIndex()
static unsigned int endPhiIndex()
const HECHVSubgap & getSubgap(unsigned int iElectrode) const
static unsigned int getNumSubgaps()
std::vector< int > GetHVLines(const EMBHVManager::EMBHVData &hvdata_EMB, const EMBPresamplerHVManager::EMBPresamplerHVData &hvdata_EMBPS, const EMECHVManager::EMECHVData &hvdata_EMEC_OUT, const EMECHVManager::EMECHVData &hvdata_EMEC_IN, const EMECPresamplerHVManager::EMECPresamplerHVData &hvdata_EMECPS, const HECHVManager::HECHVData &hvdata_HEC, const FCALHVManager::FCALHVData &hvdata_FCAL, const Identifier &id, const CaloDetDescrManager *calodetdescrmgr)
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
std::map< int, std::vector< HWIdentifier > > m_hvonlId_map
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
const CaloCell_ID * m_caloId
const LArOnlineID * m_onlId
This class provides access to the High Voltage throughout the LAr.
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
int barrel_ec(const HWIdentifier id) const
Return the position barrel or endcap of a hardware cell identifier: barrel_ec = [0,...
int channel(const HWIdentifier id) const
Return the channel number of a hardware cell identifier channel = [0,127] in all FEB.
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...
const std::string & key() const
Return the StoreGate ID for the referenced object.