ATLAS Offline Software
DigitEffiData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONCONDDATA_DigitEffiData_H
5 #define MUONCONDDATA_DigitEffiData_H
6 
7 //Athena includes
9 #include "AthenaKernel/CondCont.h"
10 #include "AthenaKernel/BaseInfo.h"
12 
22 namespace Muon{
23  class DigitEffiData: public AthMessaging {
24  public:
27  DigitEffiData(const Muon::IMuonIdHelperSvc* idHelperSvc, double defaultEffi);
29  double getEfficiency(const Identifier& channelId, bool isInnerQ1 = false /* needed for the sTGCs*/) const;
31  StatusCode setEfficiency(const Identifier& sectionId, const double effi, bool isInnerQ1 = false /* needed for the sTGCs*/);
32  private:
33  Identifier getLookUpId(const Identifier& channelId, bool isInnerQ1 = false /*needed for the sTGCs*/) const;
35  using EffiMap = std::unordered_map<Identifier, double>;
37  double m_defaultEffi{1.};
38  };
39 }
40 CLASS_DEF( Muon::DigitEffiData , 248247637 , 1 );
42 #endif
Muon::DigitEffiData::EffiMap
std::unordered_map< Identifier, double > EffiMap
Definition: DigitEffiData.h:35
Muon::DigitEffiData::m_effiData
EffiMap m_effiData
Definition: DigitEffiData.h:36
CondCont.h
Hold mappings of ranges to condition objects.
Muon::DigitEffiData::DigitEffiData
DigitEffiData(const Muon::IMuonIdHelperSvc *idHelperSvc, double defaultEffi)
Constructor taking the pointer to the IdHelperSvc & defining a default efficiency for cases wher the ...
Definition: DigitEffiData.cxx:8
CLASS_DEF
CLASS_DEF(Muon::DigitEffiData, 248247637, 1)
Muon::DigitEffiData::m_idHelperSvc
const Muon::IMuonIdHelperSvc * m_idHelperSvc
Definition: DigitEffiData.h:34
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
sTgcDigitEffiDump.effi
list effi
Definition: sTgcDigitEffiDump.py:38
Muon::DigitEffiData::setEfficiency
StatusCode setEfficiency(const Identifier &sectionId, const double effi, bool isInnerQ1=false)
Sets the efficiency for a given minimal section of the dector.
Definition: DigitEffiData.cxx:46
BaseInfo.h
Provide an interface for finding inheritance information at run time.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Muon::DigitEffiData::getLookUpId
Identifier getLookUpId(const Identifier &channelId, bool isInnerQ1=false) const
Definition: DigitEffiData.cxx:13
Muon::DigitEffiData::getEfficiency
double getEfficiency(const Identifier &channelId, bool isInnerQ1=false) const
Returns the signal generation efficiency of the sTgc channel.
Definition: DigitEffiData.cxx:36
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
Muon::DigitEffiData
Definition: DigitEffiData.h:23
CONDCONT_DEF
CONDCONT_DEF(Muon::DigitEffiData, 17123805)
AthMessaging.h
Muon::IMuonIdHelperSvc
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Definition: IMuonIdHelperSvc.h:27
Muon::DigitEffiData::m_defaultEffi
double m_defaultEffi
Definition: DigitEffiData.h:37
IMuonIdHelperSvc.h
Identifier
Definition: IdentifierFieldParser.cxx:14