ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
TRT_ConditionsAlgs
src
TRTCondWrite.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 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>
15
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
16
#include "GaudiKernel/ToolHandle.h"
17
#include "GaudiKernel/IInterface.h"
18
#include "GaudiKernel/ServiceHandle.h"
19
#include "GaudiKernel/ICondSvc.h"
20
#include "
StoreGate/StoreGateSvc.h
"
21
#include "
StoreGate/WriteCondHandleKey.h
"
22
#include "
InDetIdentifier/TRT_ID.h
"
23
#include "
TRT_ConditionsData/RtRelationMultChanContainer.h
"
24
#include "
TRT_ConditionsData/StrawT0MultChanContainer.h
"
25
#include "
AthenaKernel/IAthenaOutputStreamTool.h
"
26
#include "GaudiKernel/EventIDRange.h"
27
31
32
class
TRTCondWrite
:
public
AthCondAlgorithm
33
{
34
public
:
35
typedef
TRTCond::RtRelationMultChanContainer
RtRelationContainer
;
36
typedef
TRTCond::StrawT0MultChanContainer
StrawT0Container
;
37
39
TRTCondWrite
(
const
std::string &name, ISvcLocator *pSvcLocator);
41
virtual
~TRTCondWrite
()
override
=
default
;
42
43
virtual
StatusCode
initialize
(
void
)
override
;
44
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
45
virtual
StatusCode
finalize
(
void
)
override
;
46
48
virtual
TRTCond::ExpandedIdentifier
trtcondid
(
const
Identifier
&
id
,
int
level =
TRTCond::ExpandedIdentifier::STRAW
)
const
;
49
51
virtual
StatusCode
checkTextFile
(
const
std::string &
file
,
int
&format);
52
virtual
StatusCode
readTextFile
(
const
EventContext& ctx,
const
std::string &
file
,
int
&format)
const
;
53
virtual
StatusCode
readTextFile_Format1
(
const
EventContext&, std::istream &)
const
;
54
55
virtual
EventIDRange
IOVInfRange
()
const
;
56
57
private
:
58
const
TRT_ID
*
m_trtid
{};
59
ServiceHandle<ICondSvc>
m_condSvc
{
this
,
"CondSvc"
,
"CondSvc"
};
60
Gaudi::Property<std::string>
m_par_caltextfile
{
this
,
"CalibInputFile"
,
"dummy_TRTCondWrite.txt"
,
""
};
61
62
// WriteHandle Keys
63
SG::WriteCondHandleKey<RtRelationContainer>
m_rtWriteKey
{
this
,
"RtWriteKeyName"
,
"/TRT/Calib/RT"
,
"r-t relation out-key"
};
64
SG::WriteCondHandleKey<StrawT0Container>
m_t0WriteKey
{
this
,
"T0WriteKeyName"
,
"/TRT/Calib/T0"
,
"t0 out-key"
};
65
};
66
67
#endif
// TRTCONDITIONSALGS_TRTCONDWRITE_H
AthCondAlgorithm.h
Base class for conditions algorithms.
IAthenaOutputStreamTool.h
Interface to an output stream tool.
RtRelationMultChanContainer.h
Class for storing/accessing trt rtrelations with channels 1;95;0c.
StoreGateSvc.h
StrawT0MultChanContainer.h
TRT_ID.h
This is an Identifier helper class for the TRT subdetector.
WriteCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
ServiceHandle
Definition
ClusterMakerTool.h:36
TRTCondWrite::TRTCondWrite
TRTCondWrite(const std::string &name, ISvcLocator *pSvcLocator)
constructor
Definition
TRTCondWrite.cxx:22
TRTCondWrite::trtcondid
virtual TRTCond::ExpandedIdentifier trtcondid(const Identifier &id, int level=TRTCond::ExpandedIdentifier::STRAW) const
create an TRTCond::ExpandedIdentifier from a TRTID identifier
Definition
TRTCondWrite.cxx:303
TRTCondWrite::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
TRTCondWrite.cxx:67
TRTCondWrite::checkTextFile
virtual StatusCode checkTextFile(const std::string &file, int &format)
read calibration from text file into TDS
Definition
TRTCondWrite.cxx:106
TRTCondWrite::StrawT0Container
TRTCond::StrawT0MultChanContainer StrawT0Container
Definition
TRTCondWrite.h:36
TRTCondWrite::m_par_caltextfile
Gaudi::Property< std::string > m_par_caltextfile
Definition
TRTCondWrite.h:60
TRTCondWrite::m_t0WriteKey
SG::WriteCondHandleKey< StrawT0Container > m_t0WriteKey
Definition
TRTCondWrite.h:64
TRTCondWrite::initialize
virtual StatusCode initialize(void) override
Definition
TRTCondWrite.cxx:25
TRTCondWrite::~TRTCondWrite
virtual ~TRTCondWrite() override=default
destructor
TRTCondWrite::m_trtid
const TRT_ID * m_trtid
trt id helper
Definition
TRTCondWrite.h:58
TRTCondWrite::m_condSvc
ServiceHandle< ICondSvc > m_condSvc
Definition
TRTCondWrite.h:59
TRTCondWrite::IOVInfRange
virtual EventIDRange IOVInfRange() const
Definition
TRTCondWrite.cxx:309
TRTCondWrite::readTextFile_Format1
virtual StatusCode readTextFile_Format1(const EventContext &, std::istream &) const
Definition
TRTCondWrite.cxx:178
TRTCondWrite::m_rtWriteKey
SG::WriteCondHandleKey< RtRelationContainer > m_rtWriteKey
Definition
TRTCondWrite.h:63
TRTCondWrite::RtRelationContainer
TRTCond::RtRelationMultChanContainer RtRelationContainer
Definition
TRTCondWrite.h:35
TRTCondWrite::finalize
virtual StatusCode finalize(void) override
Definition
TRTCondWrite.cxx:101
TRTCondWrite::readTextFile
virtual StatusCode readTextFile(const EventContext &ctx, const std::string &file, int &format) const
Definition
TRTCondWrite.cxx:140
TRTCond::ExpandedIdentifier
Identifier for TRT detector elements in the conditions code.
Definition
InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:30
TRTCond::ExpandedIdentifier::STRAW
@ STRAW
Definition
InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:37
TRTCond::RtRelationMultChanContainer
Multichannel container for RtRelation objects.
Definition
RtRelationMultChanContainer.h:29
TRTCond::StrawT0MultChanContainer
A COOL Multichannel container for StrawT0 objects.
Definition
StrawT0MultChanContainer.h:31
TRT_ID
This is an Identifier helper class for the TRT subdetector.
Definition
TRT_ID.h:84
Identifier
Definition
IdentifierFieldParser.cxx:14
file
TFile * file
Definition
tile_monitor.h:29
Generated on
for ATLAS Offline Software by
1.17.0