ATLAS Offline Software
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  */
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>
24 class LArHVLineID;
25 class LArElectrodeID;
26 
27 
32  : public AthMessaging
33 {
34 public:
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 
47 private:
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
LArHVIdMappingReader::LArHVIdMappingReader
LArHVIdMappingReader()
Definition: LArHVIdMappingReader.cxx:21
LArHVIdMappingReader::electrodeMap_t
std::map< HWIdentifier, std::vector< HWIdentifier > > electrodeMap_t
Definition: LArHVIdMappingReader.h:36
LArHVIdMappingReader::fromFile
std::string fromFile() const
Definition: LArHVIdMappingReader.cxx:73
LArElectrodeID
Helper for the Liquid Argon Calorimeter cell at the electrode level.
Definition: LArElectrodeID.h:101
LArHVIdMappingReader
Helper to read HV ID mapping data from a file or conditions.
Definition: LArHVIdMappingReader.h:33
LArHVIdMappingReader::hvlineMap_t
std::map< HWIdentifier, HWIdentifier > hvlineMap_t
Definition: LArHVIdMappingReader.h:35
grepfile.content
string content
Definition: grepfile.py:56
LArHVIdMappingReader::fromAttrList
std::string fromAttrList(const AthenaAttributeList &attrList) const
Definition: LArHVIdMappingReader.cxx:57
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
AthenaAttributeList
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
Definition: PersistentDataModel/PersistentDataModel/AthenaAttributeList.h:45
HWIdentifier.h
AthMessaging.h
LArHVIdMappingReader::fillHV
StatusCode fillHV(const std::string &content, const LArHVLineID &hvlineHelper, const LArElectrodeID &electrodeHelper, hvlineMap_t &hvlineMap, electrodeMap_t &electrodeMap) const
Definition: LArHVIdMappingReader.cxx:101
LArHVIdMappingReader::read
StatusCode read(const AthenaAttributeList *attrList, const LArHVLineID &hvlineHelper, const LArElectrodeID &electrodeHelper, hvlineMap_t &hvlineMap, electrodeMap_t &electrodeMap) const
Definition: LArHVIdMappingReader.cxx:27
LArHVLineID
Helper for the Liquid Argon Calorimeter High-Voltage identifiers.
Definition: LArHVLineID.h:48