ATLAS Offline Software
LArCalibLineMapping.h
Go to the documentation of this file.
1 //Dear emacs, this is -*-c++-*-
2 
3 /*
4  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef LARRECCONDITIONS_LARCALIBLINEMAPPING_
8 #define LARRECCONDITIONS_LARCALIBLINEMAPPING_
9 
11 #include "Identifier/Identifier.h"
13 #include <vector>
14 
15 class LArOnlineID_Base;
16 
18 
19  friend class LArCalibLineMappingAlg; //The conditions alg filling this object
20 
21  public:
23  LArCalibLineMapping(const LArOnlineID_Base* onlineId);
24 
25  const std::vector<HWIdentifier>& calibSlotLine(const HWIdentifier id) const;
26  const std::vector<HWIdentifier>& calibSlotLineFromHash(const IdentifierHash h) const;
27 
28  private:
29  std::vector<std::vector<HWIdentifier> > m_onlHashToCalibLines;
31 
32 };
33 
34 
35 //Inline methods:
36 inline const std::vector<HWIdentifier>& LArCalibLineMapping::calibSlotLineFromHash(const IdentifierHash h) const{
37  return m_onlHashToCalibLines[h];
38 }
39 
40 
41 #include "AthenaKernel/CLASS_DEF.h"
42 CLASS_DEF( LArCalibLineMapping,142865765 , 1)
43 #include "AthenaKernel/CondCont.h"
45 
46 #endif
LArCalibLineMapping::m_onlHashToCalibLines
std::vector< std::vector< HWIdentifier > > m_onlHashToCalibLines
Definition: LArCalibLineMapping.h:29
LArCalibLineMapping::calibSlotLine
const std::vector< HWIdentifier > & calibSlotLine(const HWIdentifier id) const
Definition: LArCalibLineMapping.cxx:15
LArCalibLineMapping
Definition: LArCalibLineMapping.h:17
LArCalibLineMapping::calibSlotLineFromHash
const std::vector< HWIdentifier > & calibSlotLineFromHash(const IdentifierHash h) const
Definition: LArCalibLineMapping.h:36
HWIdentifier
Definition: HWIdentifier.h:13
extractSporadic.h
list h
Definition: extractSporadic.py:97
LArOnlineID_Base
Helper for the Liquid Argon Calorimeter cell identifiers.
Definition: LArOnlineID_Base.h:105
HWIdentifier.h
IdentifierHash.h
LArCalibLineMapping::m_onlineId
const LArOnlineID_Base * m_onlineId
Definition: LArCalibLineMapping.h:30
LArCalibLineMappingAlg
Definition: LArCalibLineMappingAlg.h:17
CondCont< LArCalibLineMapping >
h
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
LArCalibLineMapping::LArCalibLineMapping
LArCalibLineMapping()=delete
CLASS_DEF.h
macros to associate a CLID to a type