ATLAS Offline Software
Loading...
Searching...
No Matches
TRTCondWrite.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRTCONDITIONSALGS_TRTCONDWRITE_H
6#define TRTCONDITIONSALGS_TRTCONDWRITE_H
7
12
13//
14#include <string>
16#include "GaudiKernel/ToolHandle.h"
17#include "GaudiKernel/IInterface.h"
18#include "GaudiKernel/ServiceHandle.h"
19#include "GaudiKernel/ICondSvc.h"
27#include "GaudiKernel/EventIDRange.h"
28
32
34{
35public:
38
40 TRTCondWrite(const std::string &name, ISvcLocator *pSvcLocator);
42 virtual ~TRTCondWrite() override = default;
43
44 virtual StatusCode initialize(void) override;
45 virtual StatusCode execute(const EventContext& ctx) const override;
46 virtual StatusCode finalize(void) override;
47
50
52 virtual StatusCode checkTextFile(const std::string &file, int &format);
53 virtual StatusCode readTextFile(const EventContext& ctx, const std::string &file, int &format) const;
54 virtual StatusCode readTextFile_Format1(const EventContext&, std::istream &) const;
55
56 virtual EventIDRange IOVInfRange() const;
57
58private:
59 const TRT_ID *m_trtid{};
60 ServiceHandle<ICondSvc> m_condSvc{this, "CondSvc", "CondSvc"};
61 Gaudi::Property<std::string> m_par_caltextfile{this, "CalibInputFile", "dummy_TRTCondWrite.txt", ""};
62
63 // WriteHandle Keys
64 SG::WriteCondHandleKey<RtRelationContainer> m_rtWriteKey{this, "RtWriteKeyName", "/TRT/Calib/RT", "r-t relation out-key"};
65 SG::WriteCondHandleKey<StrawT0Container> m_t0WriteKey{this, "T0WriteKeyName", "/TRT/Calib/T0", "t0 out-key"};
66};
67
68#endif // TRTCONDITIONSALGS_TRTCONDWRITE_H
Base class for conditions algorithms.
defines an "iterator" over instances of a given type in StoreGateSvc
Interface to an output stream tool.
Class for storing/accessing trt rtrelations with channels 1;95;0c.
This is an Identifier helper class for the TRT subdetector.
Base class for conditions algorithms.
TRTCondWrite(const std::string &name, ISvcLocator *pSvcLocator)
constructor
virtual TRTCond::ExpandedIdentifier trtcondid(const Identifier &id, int level=TRTCond::ExpandedIdentifier::STRAW) const
create an TRTCond::ExpandedIdentifier from a TRTID identifier
virtual StatusCode execute(const EventContext &ctx) const override
virtual StatusCode checkTextFile(const std::string &file, int &format)
read calibration from text file into TDS
TRTCond::StrawT0MultChanContainer StrawT0Container
Gaudi::Property< std::string > m_par_caltextfile
SG::WriteCondHandleKey< StrawT0Container > m_t0WriteKey
virtual StatusCode initialize(void) override
virtual ~TRTCondWrite() override=default
destructor
const TRT_ID * m_trtid
trt id helper
ServiceHandle< ICondSvc > m_condSvc
virtual EventIDRange IOVInfRange() const
virtual StatusCode readTextFile_Format1(const EventContext &, std::istream &) const
SG::WriteCondHandleKey< RtRelationContainer > m_rtWriteKey
TRTCond::RtRelationMultChanContainer RtRelationContainer
virtual StatusCode finalize(void) override
virtual StatusCode readTextFile(const EventContext &ctx, const std::string &file, int &format) const
Multichannel container for RtRelation objects.
A COOL Multichannel container for StrawT0 objects.
This is an Identifier helper class for the TRT subdetector.
Definition TRT_ID.h:82
TFile * file