ATLAS Offline Software
Loading...
Searching...
No Matches
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
7LArAutoCorrNoise::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
16const 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
24const std::vector<float>& LArAutoCorrNoise::autoCorrSqrt( const HWIdentifier& hwid, int gain ) const
25{
26 return m_autoCorrNoise.at( gain ).at( hwid );
27}
const LArMCSym * m_larMCsym
const std::vector< float > & autoCorrSqrt(const HWIdentifier &id, int gain) const
std::vector< std::map< HWIdentifier, std::vector< float > > > m_autoCorrNoise
LArAutoCorrNoise()=delete
Helper class to handle z-phi symmetry of calibration constants in MC.
Definition LArMCSym.h:19
STL namespace.