ATLAS Offline Software
Loading...
Searching...
No Matches
ITkPixelCablingAlg.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 ITkPixelCablingAlg_H
6#define ITkPixelCablingAlg_H
15
16//Athena includes
19
21
22//Gaudi includes
23#include "GaudiKernel/ServiceHandle.h"
24
25//STL includes
26#include <string>
27#include <fstream>
28
29//Forward declarations
30class PixelID;
31
32namespace InDetDD{
34}
35
36
42
44 public:
45 ITkPixelCablingAlg(const std::string& name, ISvcLocator* svc);
46 virtual ~ITkPixelCablingAlg() = default;
47 virtual StatusCode initialize() override;
48 virtual StatusCode execute(const EventContext& ctx) const override;
50 virtual bool isClonable() const override { return true; };
51
52private:
53
54 StatusCode generateTestCabling(std::unique_ptr<ITkPixelCablingData>& cabling) const;
55
56 StatusCode fillFromCREST(std::unique_ptr<ITkPixelCablingData>& cabling) const;
57
58 Gaudi::Property<bool> m_useTestCabling{this, "UseTestCabling", false, "Generate a dummy cabling for testing/development purposes, as the online IDs don't exist yet"};
59 Gaudi::Property<std::string> m_crestServer{this, "CrestServer", "crest:https://atlas-crest-dev.cern.ch/api-v6.4", "CREST server name"};
60 Gaudi::Property<std::string> m_crestTag{this, "CrestTag", "ITkPixModIDMap-RUN4-00-00-TEST", "CREST Tag name"};
61 Gaudi::Property<uint64_t> m_crestTime{this, "CrestTime", 0, "Time within iov"};
62 SG::WriteCondHandleKey<ITkPixelCablingData> m_writeKey{this, "WriteKey", "ITkPixelCablingData", "Key of output (derived) conditions data"};
63 const PixelID* m_idHelper{nullptr};
65
66
67};
68
69#endif
Base class for conditions algorithms.
Base class for conditions algorithms.
SG::WriteCondHandleKey< ITkPixelCablingData > m_writeKey
StatusCode fillFromCREST(std::unique_ptr< ITkPixelCablingData > &cabling) const
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_crestServer
virtual StatusCode execute(const EventContext &ctx) const override
virtual ~ITkPixelCablingAlg()=default
Gaudi::Property< uint64_t > m_crestTime
const InDetDD::PixelDetectorManager * m_detManager
const PixelID * m_idHelper
virtual bool isClonable() const override
Make this algorithm clonable.
Gaudi::Property< std::string > m_crestTag
StatusCode generateTestCabling(std::unique_ptr< ITkPixelCablingData > &cabling) const
ITkPixelCablingAlg(const std::string &name, ISvcLocator *svc)
Gaudi::Property< bool > m_useTestCabling
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated pixel ...
This is an Identifier helper class for the Pixel subdetector.
Definition PixelID.h:69
Message Stream Member.