ATLAS Offline Software
Loading...
Searching...
No Matches
CosmicTriggerTimeTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef COSMICTRIGGERTIMETOOL_H
6#define COSMICTRIGGERTIMETOOL_H
7
9#include "GaudiKernel/IIncidentListener.h"
11
12class ComTime;
13
14class CosmicTriggerTimeTool : public extends<AthAlgTool, ITriggerTime, IIncidentListener>
15{
16
17public:
18 CosmicTriggerTimeTool(const std::string& type,
19 const std::string& name,
20 const IInterface* parent);
21
22
23 virtual StatusCode initialize() override;
24
26
28 virtual double time() override;
29
30 virtual void handle(const Incident& incident) override;
31
32 double larTime();
33 double trackRecordTime() ;
34
35 void setComTime(const ComTime* comTime )
36 {
37 m_comTime = comTime;
38 return;
39 }
40
41private:
42
43 double m_time;
44 bool m_newEvent ;
47};
48
49
50#endif
interface to a tool that returns the time offset of the current trigger.
void setComTime(const ComTime *comTime)
virtual double time() override
returns the time offset of the current trigger
CosmicTriggerTimeTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize() override
virtual void handle(const Incident &incident) override