ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_CablingCondAlgFromCoraCool.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef SCT_CablingCondAlgFromCoraCool_H
8#define SCT_CablingCondAlgFromCoraCool_H
17
18//Athena includes
24
25//Gaudi includes
26#include "GaudiKernel/ServiceHandle.h"
27
28//STL includes
29#include <string>
30
31//Forward declarations
32class SCT_ID;
33
39
41 public:
42
43 SCT_CablingCondAlgFromCoraCool(const std::string& name, ISvcLocator* svc);
45 virtual StatusCode initialize() override;
46 virtual StatusCode execute(const EventContext& ctx) const override;
47 virtual StatusCode finalize() override;
49 virtual bool isClonable() const override { return true; };
50
51private:
52
53 bool insert(const IdentifierHash& hash, const SCT_OnlineId& onlineId, const SCT_SerialNumber& sn, SCT_CablingData* data) const;
54
56 SG::ReadCondHandleKey<CondAttrListVec> m_readKeyRod{this, "ReadKeyRod", "/SCT/DAQ/Config/ROD", "Key of input (raw) conditions folder of Rods"};
57 SG::ReadCondHandleKey<CondAttrListVec> m_readKeyRodMur{this, "ReadKeyRodMur", "/SCT/DAQ/Config/RODMUR", "Key of input (raw) conditions folder of RodMurs"};
58 SG::ReadCondHandleKey<CondAttrListVec> m_readKeyMur{this, "ReadKeyMur", "/SCT/DAQ/Config/MUR", "Key of input (raw) conditions folder of Murs"};
59 SG::ReadCondHandleKey<CondAttrListVec> m_readKeyGeo{this, "ReadKeyGeo", "/SCT/DAQ/Config/Geog", "Key of input (raw) conditions folder of Geography"};
61 SG::WriteCondHandleKey<SCT_CablingData> m_writeKey{this, "WriteKey", "SCT_CablingData", "Key of output (derived) conditions data"};
62
63 const SCT_ID* m_idHelper{nullptr};
64};//end of class
65
66#endif // SCT_CablingCondAlgFromCoraCool_H
Base class for conditions algorithms.
A CondAttrListVec is an Athena DataObject holding a vector of CORAL AttributeLists,...
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
Header file for SCT cabling data.
Base class for conditions algorithms.
This is a "hash" representation of an Identifier.
virtual ~SCT_CablingCondAlgFromCoraCool()=default
SG::ReadCondHandleKey< CondAttrListVec > m_readKeyMur
SG::ReadCondHandleKey< CondAttrListVec > m_readKeyRod
Input conditions folders.
virtual bool isClonable() const override
Make this algorithm clonable.
SCT_CablingCondAlgFromCoraCool(const std::string &name, ISvcLocator *svc)
SG::ReadCondHandleKey< CondAttrListVec > m_readKeyRodMur
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadCondHandleKey< CondAttrListVec > m_readKeyGeo
SG::WriteCondHandleKey< SCT_CablingData > m_writeKey
Output condition data.
bool insert(const IdentifierHash &hash, const SCT_OnlineId &onlineId, const SCT_SerialNumber &sn, SCT_CablingData *data) const
A class to hold the data necessary for SCT_CablingTool.
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
SCT_OnlineId is a class to hold an online id number and provide check on validity,...
SCT_SerialNumber is a class to hold a serial number and provide check on validity,...