ATLAS Offline Software
LArAutoCorrNoise.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 LArAutoCorrNoise::LArAutoCorrNoise( std::vector<std::map<HWIdentifier, std::vector<float>>>&& input,
8  const LArMCSym* larMCsym )
9  : m_larMCsym( larMCsym ),
10  m_autoCorrNoise (std::move(input))
11 {
12 }
13 
15 
16 const std::vector<float>& LArAutoCorrNoise::autoCorrSqrt( const Identifier& id, int gain ) const
17 {
18  HWIdentifier hwid(0);
19  if ( m_larMCsym ) hwid = m_larMCsym->ZPhiSymOfl( id );
20  // Not sure what to do with this method when no larMCsym is available
21  return m_autoCorrNoise.at( gain ).at( hwid );
22 }
23 
24 const std::vector<float>& LArAutoCorrNoise::autoCorrSqrt( const HWIdentifier& hwid, int gain ) const
25 {
26  return m_autoCorrNoise.at( gain ).at( hwid );
27 }
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArAutoCorrNoise::LArAutoCorrNoise
LArAutoCorrNoise()=delete
LArAutoCorrNoise::m_autoCorrNoise
std::vector< std::map< HWIdentifier, std::vector< float > > > m_autoCorrNoise
Definition: LArAutoCorrNoise.h:27
LArAutoCorrNoise::autoCorrSqrt
const std::vector< float > & autoCorrSqrt(const HWIdentifier &id, int gain) const
Definition: LArAutoCorrNoise.cxx:24
HWIdentifier
Definition: HWIdentifier.h:13
LArAutoCorrNoise.h
LArMCSym::ZPhiSymOfl
HWIdentifier ZPhiSymOfl(const Identifier notSymOffId) const
Find the symmetric HWID for an offline cell identifier.
Definition: LArMCSym.h:48
LArMCSym
Helper class to handle z-phi symmetry of calibration constants in MC.
Definition: LArMCSym.h:19
LArAutoCorrNoise::m_larMCsym
const LArMCSym * m_larMCsym
Definition: LArAutoCorrNoise.h:26
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
LArAutoCorrNoise::~LArAutoCorrNoise
~LArAutoCorrNoise()
Definition: LArAutoCorrNoise.cxx:14
Identifier
Definition: IdentifierFieldParser.cxx:14