ATLAS Offline Software
TrigDecisionMakerValidator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigDecisionMaker_TrigDecisionMakerValidator_H
6 #define TrigDecisionMaker_TrigDecisionMakerValidator_H
7 
9 #include "GaudiKernel/ToolHandle.h"
12 
13 namespace TrigDec {
14 
20  {
21 
22  public:
23 
24  TrigDecisionMakerValidator(const std::string &name, ISvcLocator *pSvcLocator);
26 
27  virtual StatusCode initialize() override;
28  virtual StatusCode execute( const EventContext& context ) const override;
29 
30  private:
31 
32  StatusCode reportError(const std::string& item, const std::string& msg) const;
33 
34  PublicToolHandle<Trig::TrigDecisionTool> m_tdt {this, "TrigDecisionTool", "", "Handle to the public trigger decision tool."};
35 
36  Gaudi::Property<int> m_edmVersion{this, "EDMVersion", 3, "Is the input from the Run 1, 2 trigger or the Run 3 trigger?"};
37  Gaudi::Property<int> m_samplingFrequence{this, "samplingFrequency", 10, "Sample one in every N events."};
38  Gaudi::Property<bool> m_doL1{this, "doL1", true, "Read & verify L1 trigger information."};
39  Gaudi::Property<bool> m_doHLT{this, "doHLT", true, "Read & verify HLT trigger information."};
40  Gaudi::Property<bool> m_errorOnFailure{this, "errorOnFailure", false, "If false, issues found are just WARNINGs rather than ERRORs."};
41 
42  SG::ReadHandleKey<TrigCompositeUtils::DecisionContainer> m_navigationReadHandleKey{this, "NavigationKey", "For the Run 3 trigger, what is the primary navigation container?"};
43 
44  };
45 }
46 
47 #endif
TrigDec::TrigDecisionMakerValidator::m_doHLT
Gaudi::Property< bool > m_doHLT
Definition: TrigDecisionMakerValidator.h:39
TrigDec
Definition: ITrigDecisionCnvTool.h:18
TrigDec::TrigDecisionMakerValidator::m_edmVersion
Gaudi::Property< int > m_edmVersion
Definition: TrigDecisionMakerValidator.h:36
TrigDec::TrigDecisionMakerValidator::initialize
virtual StatusCode initialize() override
Definition: TrigDecisionMakerValidator.cxx:15
TrigDecisionTool.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
TrigDec::TrigDecisionMakerValidator::m_navigationReadHandleKey
SG::ReadHandleKey< TrigCompositeUtils::DecisionContainer > m_navigationReadHandleKey
Definition: TrigDecisionMakerValidator.h:42
TrigDec::TrigDecisionMakerValidator
Definition: TrigDecisionMakerValidator.h:20
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
TrigDec::TrigDecisionMakerValidator::reportError
StatusCode reportError(const std::string &item, const std::string &msg) const
Definition: TrigDecisionMakerValidator.cxx:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrigDec::TrigDecisionMakerValidator::~TrigDecisionMakerValidator
~TrigDecisionMakerValidator()
Definition: TrigDecisionMakerValidator.cxx:12
TrigCompositeContainer.h
AthReentrantAlgorithm.h
TrigDec::TrigDecisionMakerValidator::m_tdt
PublicToolHandle< Trig::TrigDecisionTool > m_tdt
Definition: TrigDecisionMakerValidator.h:34
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
item
Definition: ItemListSvc.h:43
TrigDec::TrigDecisionMakerValidator::m_samplingFrequence
Gaudi::Property< int > m_samplingFrequence
Definition: TrigDecisionMakerValidator.h:37
TrigDec::TrigDecisionMakerValidator::execute
virtual StatusCode execute(const EventContext &context) const override
Definition: TrigDecisionMakerValidator.cxx:30
AthCommonMsg< Gaudi::Algorithm >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
TrigDec::TrigDecisionMakerValidator::m_errorOnFailure
Gaudi::Property< bool > m_errorOnFailure
Definition: TrigDecisionMakerValidator.h:40
TrigDec::TrigDecisionMakerValidator::TrigDecisionMakerValidator
TrigDecisionMakerValidator(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrigDecisionMakerValidator.cxx:8
TrigDec::TrigDecisionMakerValidator::m_doL1
Gaudi::Property< bool > m_doL1
Definition: TrigDecisionMakerValidator.h:38