ATLAS Offline Software
SCT_CablingCondAlgFromText.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_CablingCondAlgFromText_H
8 #define SCT_CablingCondAlgFromText_H
9 
18 //Athena includes
22 
23 //Gaudi includes
24 #include "GaudiKernel/ServiceHandle.h"
25 
26 //STL includes
27 #include <string>
28 
29 //Forward declarations
30 class SCT_ID;
31 
39  public:
40 
41  SCT_CablingCondAlgFromText(const std::string& name, ISvcLocator* svc);
42  virtual ~SCT_CablingCondAlgFromText() = default;
43  virtual StatusCode initialize() override;
44  virtual StatusCode execute(const EventContext& ctx) const override;
45  virtual StatusCode finalize() override;
47  virtual bool isClonable() const override { return true; };
48 
49 private:
50 
51  bool insert(const IdentifierHash& hash, const SCT_OnlineId& onlineId, const SCT_SerialNumber& sn, SCT_CablingData* data) const;
52  StringProperty m_source{this, "DataSource", "SCT_MC_FullCabling_svc.dat", "a plain text file for the SCT Cabing"};
53  SG::WriteCondHandleKey<SCT_CablingData> m_writeKey{this, "WriteKey", "SCT_CablingData", "Key of output (derived) conditions data"};
54 
55  const SCT_ID* m_idHelper{nullptr};
56 };//end of class
57 
58 #endif // SCT_CablingCondAlgFromText_H
SCT_CablingCondAlgFromText::m_idHelper
const SCT_ID * m_idHelper
Definition: SCT_CablingCondAlgFromText.h:55
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
SCT_CablingCondAlgFromText
Condition algorithm which fills the SCT Cabling from plain text (a file).
Definition: SCT_CablingCondAlgFromText.h:38
SCT_OnlineId
Definition: SCT_OnlineId.h:22
WriteCondHandleKey.h
SCT_CablingCondAlgFromText::~SCT_CablingCondAlgFromText
virtual ~SCT_CablingCondAlgFromText()=default
SCT_CablingCondAlgFromText::insert
bool insert(const IdentifierHash &hash, const SCT_OnlineId &onlineId, const SCT_SerialNumber &sn, SCT_CablingData *data) const
Definition: SCT_CablingCondAlgFromText.cxx:232
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCT_CablingCondAlgFromText::finalize
virtual StatusCode finalize() override
Definition: SCT_CablingCondAlgFromText.cxx:87
SCT_CablingCondAlgFromText::m_source
StringProperty m_source
Definition: SCT_CablingCondAlgFromText.h:52
SCT_CablingCondAlgFromText::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: SCT_CablingCondAlgFromText.h:47
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
SCT_CablingCondAlgFromText::initialize
virtual StatusCode initialize() override
Definition: SCT_CablingCondAlgFromText.cxx:67
SCT_CablingCondAlgFromText::m_writeKey
SG::WriteCondHandleKey< SCT_CablingData > m_writeKey
Definition: SCT_CablingCondAlgFromText.h:53
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SCT_SerialNumber
Definition: SCT_SerialNumber.h:22
SCT_CablingData
Definition: SCT_CablingData.h:35
SCT_CablingCondAlgFromText::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: SCT_CablingCondAlgFromText.cxx:93
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
SCT_ID
Definition: SCT_ID.h:68
SCT_CablingData.h
SCT_CablingCondAlgFromText::SCT_CablingCondAlgFromText
SCT_CablingCondAlgFromText(const std::string &name, ISvcLocator *svc)
Definition: SCT_CablingCondAlgFromText.cxx:60
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