ATLAS Offline Software
Loading...
Searching...
No Matches
LArHVIdMappingReader.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 * Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration.
4 */
11
12
13#ifndef LARCABLING_LARHVIDMAPPINGREADER_H
14#define LARCABLING_LARHVIDMAPPINGREADER_H
15
16
19#include "GaudiKernel/StatusCode.h"
20#include <map>
21#include <vector>
22#include <string>
24class LArHVLineID;
25class LArElectrodeID;
26
27
32 : public AthMessaging
33{
34public:
35 using hvlineMap_t = std::map<HWIdentifier,HWIdentifier>;
36 using electrodeMap_t = std::map<HWIdentifier,std::vector<HWIdentifier> >;
37
39
40 StatusCode read (const AthenaAttributeList* attrList,
41 const LArHVLineID& hvlineHelper,
42 const LArElectrodeID& electrodeHelper,
43 hvlineMap_t& hvlineMap,
44 electrodeMap_t& electrodeMap) const;
45
46
47private:
48 std::string fromAttrList (const AthenaAttributeList& attrList) const;
49 std::string fromFile() const;
50
51 StatusCode fillHV (const std::string& content,
52 const LArHVLineID& hvlineHelper,
53 const LArElectrodeID& electrodeHelper,
54 hvlineMap_t& hvlineMap,
55 electrodeMap_t& electrodeMap) const;
56};
57
58
59#endif // not LARCABLING_LARHVIDMAPPINGREADER_H
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
An AttributeList represents a logical row of attributes in a metadata table.
Helper for the Liquid Argon Calorimeter cell at the electrode level.
StatusCode fillHV(const std::string &content, const LArHVLineID &hvlineHelper, const LArElectrodeID &electrodeHelper, hvlineMap_t &hvlineMap, electrodeMap_t &electrodeMap) const
std::string fromFile() const
std::map< HWIdentifier, HWIdentifier > hvlineMap_t
StatusCode read(const AthenaAttributeList *attrList, const LArHVLineID &hvlineHelper, const LArElectrodeID &electrodeHelper, hvlineMap_t &hvlineMap, electrodeMap_t &electrodeMap) const
std::string fromAttrList(const AthenaAttributeList &attrList) const
std::map< HWIdentifier, std::vector< HWIdentifier > > electrodeMap_t
Helper for the Liquid Argon Calorimeter High-Voltage identifiers.
Definition LArHVLineID.h:43