ATLAS Offline Software
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
9 
18 //Athena includes
24 
25 //Gaudi includes
26 #include "GaudiKernel/ServiceHandle.h"
27 
28 //STL includes
29 #include <string>
30 
31 //Forward declarations
32 class SCT_ID;
33 
41  public:
42 
43  SCT_CablingCondAlgFromCoraCool(const std::string& name, ISvcLocator* svc);
44  virtual ~SCT_CablingCondAlgFromCoraCool() = default;
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 
51 private:
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
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
SCT_CablingCondAlgFromCoraCool::m_idHelper
const SCT_ID * m_idHelper
Definition: SCT_CablingCondAlgFromCoraCool.h:63
SCT_CablingCondAlgFromCoraCool::m_readKeyMur
SG::ReadCondHandleKey< CondAttrListVec > m_readKeyMur
Definition: SCT_CablingCondAlgFromCoraCool.h:58
SCT_CablingCondAlgFromCoraCool::m_readKeyGeo
SG::ReadCondHandleKey< CondAttrListVec > m_readKeyGeo
Definition: SCT_CablingCondAlgFromCoraCool.h:59
SCT_OnlineId
Definition: SCT_OnlineId.h:22
WriteCondHandleKey.h
SCT_CablingCondAlgFromCoraCool::insert
bool insert(const IdentifierHash &hash, const SCT_OnlineId &onlineId, const SCT_SerialNumber &sn, SCT_CablingData *data) const
Definition: SCT_CablingCondAlgFromCoraCool.cxx:504
SCT_CablingCondAlgFromCoraCool::SCT_CablingCondAlgFromCoraCool
SCT_CablingCondAlgFromCoraCool(const std::string &name, ISvcLocator *svc)
Definition: SCT_CablingCondAlgFromCoraCool.cxx:169
SCT_CablingCondAlgFromCoraCool::m_writeKey
SG::WriteCondHandleKey< SCT_CablingData > m_writeKey
Output condition data.
Definition: SCT_CablingCondAlgFromCoraCool.h:61
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCT_CablingCondAlgFromCoraCool::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: SCT_CablingCondAlgFromCoraCool.cxx:218
SCT_CablingCondAlgFromCoraCool::m_readKeyRod
SG::ReadCondHandleKey< CondAttrListVec > m_readKeyRod
Input conditions folders.
Definition: SCT_CablingCondAlgFromCoraCool.h:56
CondAttrListVec.h
A CondAttrListVec is an Athena DataObject holding a vector of CORAL AttributeLists,...
SCT_CablingCondAlgFromCoraCool::~SCT_CablingCondAlgFromCoraCool
virtual ~SCT_CablingCondAlgFromCoraCool()=default
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
ReadCondHandleKey.h
AthReentrantAlgorithm.h
SCT_CablingCondAlgFromCoraCool::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: SCT_CablingCondAlgFromCoraCool.h:49
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SCT_SerialNumber
Definition: SCT_SerialNumber.h:22
SCT_CablingData
Definition: SCT_CablingData.h:35
SG::ReadCondHandleKey< CondAttrListVec >
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
SCT_ID
Definition: SCT_ID.h:68
SCT_CablingCondAlgFromCoraCool::finalize
virtual StatusCode finalize() override
Definition: SCT_CablingCondAlgFromCoraCool.cxx:212
SCT_CablingCondAlgFromCoraCool::m_readKeyRodMur
SG::ReadCondHandleKey< CondAttrListVec > m_readKeyRodMur
Definition: SCT_CablingCondAlgFromCoraCool.h:57
SCT_CablingCondAlgFromCoraCool::initialize
virtual StatusCode initialize() override
Definition: SCT_CablingCondAlgFromCoraCool.cxx:176
SCT_CablingData.h
SCT_CablingCondAlgFromCoraCool
Condition algorithm which fills the SCT Cabling from the database, using CoraCool.
Definition: SCT_CablingCondAlgFromCoraCool.h:40
SG::WriteCondHandleKey< SCT_CablingData >
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25