ATLAS Offline Software
TimeBurner.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGGENERICALGS_TimeBurner_h
6 #define TRIGGENERICALGS_TimeBurner_h
7 
9 #include "GaudiKernel/IAlgTool.h"
10 
15 class TimeBurner : public HypoBase {
16  public:
18  TimeBurner(const std::string& name, ISvcLocator* svcLoc);
19 
20  virtual StatusCode initialize() override;
21  virtual StatusCode execute(const EventContext& eventContext) const override;
22 
23  private:
24  Gaudi::Property<unsigned int> m_sleepTimeMillisec {
25  this, "SleepTimeMillisec", 0, "Time to sleep in each execution [ms]"
26  };
27 
28  // Unused dummy property to pass duck-test of HypoAlgs
29  ToolHandleArray<IAlgTool> m_hypoTools{this, "HypoTools", {}};
30 };
31 
32 #endif // TRIGGENERICALGS_TimeBurner_h
TimeBurner::TimeBurner
TimeBurner(const std::string &name, ISvcLocator *svcLoc)
Standard constructor.
Definition: TimeBurner.cxx:10
TimeBurner::initialize
virtual StatusCode initialize() override
Definition: TimeBurner.cxx:13
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TimeBurner
Reject-all hypo algorithm sleeping for some time and doing nothing else.
Definition: TimeBurner.h:15
TimeBurner::execute
virtual StatusCode execute(const EventContext &eventContext) const override
Definition: TimeBurner.cxx:19
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
HypoBase
Hypothesis algorithms take the output of reco algorithms and the decision from the preceeding InputMa...
Definition: HypoBase.h:13
HypoBase.h
TimeBurner::m_hypoTools
ToolHandleArray< IAlgTool > m_hypoTools
Definition: TimeBurner.h:29
TimeBurner::m_sleepTimeMillisec
Gaudi::Property< unsigned int > m_sleepTimeMillisec
Definition: TimeBurner.h:24