ATLAS Offline Software
Loading...
Searching...
No Matches
LArHVData.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
6#include "Identifier/Identifier.h"
7
8const std::vector<LArHVData::HV_t> & LArHVData::getHV(const Identifier& id) const {
9 const auto& it=m_voltage.find(id);
10 if (it==m_voltage.end())
11 return m_empty; //return empty vector
12 else {
13 return it->second;
14 }
15}
16
17
const std::vector< LArHVData::HV_t > m_empty
Definition LArHVData.h:47
const std::vector< LArHVData::HV_t > & getHV(const Identifier &id) const
brief Given a Offline Readout ID, return values of HV and Weight
Definition LArHVData.cxx:8
hvMap m_voltage
Definition LArHVData.h:44