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
20
22
25
26//Gaudi includes
27#include "GaudiKernel/ServiceHandle.h"
28
29//STL includes
30#include <string>
31#include <fstream>
32
33//Forward declarations
34class PixelID;
35
36namespace InDetDD{
38}
39
40
46
48 public:
49 ITkPixelCablingAlg(const std::string& name, ISvcLocator* svc);
50 virtual ~ITkPixelCablingAlg() = default;
51 virtual StatusCode initialize() override;
52 virtual StatusCode execute(const EventContext& ctx) const override;
54 virtual bool isClonable() const override { return true; };
55
56private:
57
58 StatusCode generateTestCabling(std::unique_ptr<ITkPixelCablingData>& cabling) const;
59
60 StatusCode fillFromCREST(std::unique_ptr<ITkPixelCablingData>& cabling, const std::string& c) const;
61
62 Gaudi::Property<bool> m_useTestCabling{this, "UseTestCabling", false, "Generate a dummy cabling for testing/development purposes, as the online IDs don't exist yet"};
63
64 //Retrieve the cabling from the store gate
65 SG::ReadCondHandleKey<AthenaAttributeList> m_readKey {this,"ReadKey","/ITk/Pixel/Identifier"};
66 SG::WriteCondHandleKey<ITkPixelCablingData> m_writeKey{this, "WriteKey", "ITkPixelCablingData", "Key of output (derived) conditions data"};
67 const PixelID* m_idHelper{nullptr};
69
70
71};
72
73#endif
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
An AttributeList represents a logical row of attributes in a metadata table.
Base class for conditions algorithms.
SG::WriteCondHandleKey< ITkPixelCablingData > m_writeKey
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &ctx) const override
StatusCode fillFromCREST(std::unique_ptr< ITkPixelCablingData > &cabling, const std::string &c) const
virtual ~ITkPixelCablingAlg()=default
SG::ReadCondHandleKey< AthenaAttributeList > m_readKey
const InDetDD::PixelDetectorManager * m_detManager
const PixelID * m_idHelper
virtual bool isClonable() const override
Make this algorithm clonable.
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.