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(void) override;
46 virtual StatusCode finalize(void) override;
47
50
52 virtual StatusCode checkTextFile(const std::string &file, int &format);
53 virtual StatusCode readTextFile(const std::string &file, int &format);
54 virtual StatusCode readTextFile_Format1(std::istream &);
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
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.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
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 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
virtual StatusCode readTextFile_Format1(std::istream &)
virtual StatusCode execute(void) override
virtual StatusCode readTextFile(const std::string &file, int &format)
ServiceHandle< ICondSvc > m_condSvc
virtual EventIDRange IOVInfRange() const
SG::WriteCondHandleKey< RtRelationContainer > m_rtWriteKey
TRTCond::RtRelationMultChanContainer RtRelationContainer
virtual StatusCode finalize(void) override
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