ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_TestCablingAlg.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef SCT_TestCablingAlg_h
8#define SCT_TestCablingAlg_h
15
17
18//package includes
20
21//Gaudi
22#include "GaudiKernel/ToolHandle.h"
23
24//STL
25#include <string>
26
27class ISvcLocator;
28class StatusCode;
29class SCT_ID;
30
36 public:
37 SCT_TestCablingAlg(const std::string& name, ISvcLocator* pSvcLocator);
39 // Standard Gaudi functions
40 virtual StatusCode initialize() override;
41 virtual StatusCode execute(const EventContext& ctx) const override;
42 virtual StatusCode finalize() override;
44 virtual bool isClonable() const override { return true; };
45
46 private:
47 ToolHandle<ISCT_CablingTool> m_cablingTool{this, "SCT_CablingTool", "SCT_CablingTool", "Tool to retrieve SCT Cabling"};
48 const SCT_ID* m_idHelper{nullptr};
49 std::string coordString(const Identifier& offlineId) const;
50 UnsignedIntegerProperty m_POSIXtime{this, "POSIXtime", 0, "POSIX time for database"};
51
52};
53#endif // SCT_TestCablingAlg_h
Header file for abstract interface to SCT cabling tool.
An algorithm that can be simultaneously executed in multiple threads.
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
UnsignedIntegerProperty m_POSIXtime
virtual bool isClonable() const override
Make this algorithm clonable.
const SCT_ID * m_idHelper
helper for offlineId/hash conversions
ToolHandle< ISCT_CablingTool > m_cablingTool
std::string coordString(const Identifier &offlineId) const
virtual StatusCode execute(const EventContext &ctx) const override
Gaudi executer.
~SCT_TestCablingAlg()=default
virtual StatusCode initialize() override
Gaudi initialiser.
virtual StatusCode finalize() override
Gaudi finaliser.
SCT_TestCablingAlg(const std::string &name, ISvcLocator *pSvcLocator)