ATLAS Offline Software
LArBadFebMasker.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARBADFEBMASKER_H
6 #define LARBADFEBMASKER_H
7 
9 #include "GaudiKernel/ToolHandle.h"
10 #include "Identifier/HWIdentifier.h"
13 
15 
16 class LArBadFebMasker : public extends<AthAlgTool, ILArBadFebMasker>
17 {
18 public:
19 
20  LArBadFebMasker(const std::string& type, const std::string& name, const IInterface* parent);
21  virtual ~LArBadFebMasker();
22 
23  virtual StatusCode initialize() override;
24 
25  virtual bool febMissing( const HWIdentifier& febId) const override final;
26  virtual bool shouldbeMasked(const HWIdentifier& febId) const override final;
27  virtual LArBadFeb febStatus(const HWIdentifier& febId) const override final;
28 
29  virtual bool isMaskingOn() const override final//allow the client code to check in order to optimize
30  {return m_doMasking;}
31 
32 private:
33 
35 
37 
38  void buildBitMask();
39  static const std::vector<std::string>& defaultProblems();
40 
42  BitWord m_bitMask; // The list of problems from m_problemWords, in bit form.
43  std::vector<std::string> m_problemWords; // The list of FEB problems to be masked.
44  bool m_doMasking; // Determines whether to do masking.
45 
46 };
47 
48 #endif
LArBadFebMasker::BitWord
LArBadFebEnum::BitWord BitWord
Definition: LArBadFebMasker.h:34
LArBadFebMasker::buildBitMask
void buildBitMask()
Definition: LArBadFebMasker.cxx:69
LArBadFebMasker::initialize
virtual StatusCode initialize() override
Definition: LArBadFebMasker.cxx:26
LArBadFebMasker::~LArBadFebMasker
virtual ~LArBadFebMasker()
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
HWIdentifier
Definition: HWIdentifier.h:13
LArBadFebEnum::BitWord
unsigned int BitWord
Definition: LArBadFebEnum.h:13
LArBadFebMasker::m_doMasking
bool m_doMasking
Definition: LArBadFebMasker.h:44
LArBadFebMasker::m_bitMask
BitWord m_bitMask
Definition: LArBadFebMasker.h:42
LArBadChannelCont.h
LArBadFebMasker
Definition: LArBadFebMasker.h:17
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ILArBadFebMasker.h
LArBadFebMasker::febMissing
virtual bool febMissing(const HWIdentifier &febId) const override final
Definition: LArBadFebMasker.cxx:44
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
LArBadFebMasker::m_problemWords
std::vector< std::string > m_problemWords
Definition: LArBadFebMasker.h:43
LArBadFebMasker::shouldbeMasked
virtual bool shouldbeMasked(const HWIdentifier &febId) const override final
Definition: LArBadFebMasker.cxx:53
ReadCondHandleKey.h
LArBadFebMasker::LArBadFebMasker
LArBadFebMasker()
LArBadFebMasker::febStatus
virtual LArBadFeb febStatus(const HWIdentifier &febId) const override final
Definition: LArBadFebMasker.cxx:62
HWIdentifier.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LArBadFeb
Definition: LArBadFeb.h:10
SG::ReadCondHandleKey
Definition: ReadCondHandleKey.h:20
LArBadFebMasker::defaultProblems
static const std::vector< std::string > & defaultProblems()
Definition: LArBadFebMasker.cxx:84
LArBadFebMasker::m_bfContKey
SG::ReadCondHandleKey< LArBadFebCont > m_bfContKey
Definition: LArBadFebMasker.h:41
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LArBadFebMasker::isMaskingOn
virtual bool isMaskingOn() const override final
Definition: LArBadFebMasker.h:29