ATLAS Offline Software
Loading...
Searching...
No Matches
LArTBH6TriggerTimeTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LArTBH6TriggerTimeTool_H
6#define LArTBH6TriggerTimeTool_H
7
9#include "GaudiKernel/IIncidentListener.h"
11
14
15class LArTBH6TriggerTimeTool : public extends<AthAlgTool, ITriggerTime, IIncidentListener>
16{
17
18public:
19 LArTBH6TriggerTimeTool(const std::string& type,
20 const std::string& name,
21 const IInterface* parent);
22
23
24 virtual StatusCode initialize() override;
25
26 virtual ~LArTBH6TriggerTimeTool() = default;
27
29 virtual double time() override;
30
31 virtual void handle(const Incident& incident) override;
32
33 double larTime();
35
36private:
37 Gaudi::Property<double> m_time{this, "FixedTime", 0.};
38 Gaudi::Property<bool> m_fixed{this, "isFixed", true};
39 bool m_newEvent{true};
40 std::vector< SG::ReadHandle< LArHitContainer > > m_hitcoll;
41};
42
43
44#endif
interface to a tool that returns the time offset of the current trigger.
Handle class for reading from StoreGate.
virtual void handle(const Incident &incident) override
virtual double time() override
returns the time offset of the current trigger
Gaudi::Property< double > m_time
LArTBH6TriggerTimeTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual ~LArTBH6TriggerTimeTool()=default
Gaudi::Property< bool > m_fixed
std::vector< SG::ReadHandle< LArHitContainer > > m_hitcoll
virtual StatusCode initialize() override