ATLAS Offline Software
Loading...
Searching...
No Matches
TRTStrawStatusRead.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6// TRTStrawStatusRead.h
7// Algorithm to dump the straw status info in CondStore to text file
8// phansen@nbi.dk
10
11#ifndef TRTSTRAWSTATUSREAD_H
12#define TRTSTRAWSTATUSREAD_H
13
20#include "GaudiKernel/ToolHandle.h"
22
24{
25
26public:
27 TRTStrawStatusRead(const std::string &name, ISvcLocator *pSvcLocator);
28 virtual ~TRTStrawStatusRead() = default;
30
31 // Gaudi
32 virtual StatusCode initialize() override;
33 virtual StatusCode execute() override;
34 virtual StatusCode finalize() override;
35
36 virtual StatusCode writeToTextFile(const std::string &filename);
37
38 virtual const StrawStatusContainer *getStrawStatusContainer() const;
41
42private:
43 const TRT_ID *m_trtid{};
44 ToolHandle<ITRT_StrawStatusSummaryTool> m_status{this, "TRT_StrawStatusSummaryTool", "InDetTRTStrawStatusSummaryTool", ""};
45 // ReadHandle keys
46 SG::ReadCondHandleKey<StrawStatusContainer> m_statReadKey{this, "StatReadKeyName", "/TRT/Cond/Status", "StrawStatus in-key"};
47 SG::ReadCondHandleKey<StrawStatusContainer> m_permReadKey{this, "PermReadKeyName", "/TRT/Cond/StatusPermanent", "StrawStatusPermanent in-key"};
48 SG::ReadCondHandleKey<StrawStatusContainer> m_statHTReadKey{this, "StatHTReadKeyName", "/TRT/Cond/StatusHT", "StrawStatusHT in-key"};
49
50 // Which folder to print
51 Gaudi::Property<std::string> m_printfolder{this, "FolderToPrint", ""};
52 Gaudi::Property<std::string> m_outputfile{this, "OutputFile", "StrawStatusDump_Writer.txt"};
53};
54
55#endif
abstract interface to TRT straw status constants
This is an Identifier helper class for the TRT subdetector.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
A COOL multichannel container for StrawStatus.
TRTStrawStatusRead(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode writeToTextFile(const std::string &filename)
SG::ReadCondHandleKey< StrawStatusContainer > m_statReadKey
Gaudi::Property< std::string > m_outputfile
SG::ReadCondHandleKey< StrawStatusContainer > m_statHTReadKey
virtual StatusCode initialize() override
virtual StatusCode execute() override
const TRT_ID * m_trtid
trt id helper
TRTCond::StrawStatusMultChanContainer StrawStatusContainer
Gaudi::Property< std::string > m_printfolder
virtual const StrawStatusContainer * getStrawStatusContainer() const
virtual ~TRTStrawStatusRead()=default
SG::ReadCondHandleKey< StrawStatusContainer > m_permReadKey
ToolHandle< ITRT_StrawStatusSummaryTool > m_status
virtual const StrawStatusContainer * getStrawStatusPermanentContainer() const
virtual StatusCode finalize() override
virtual const StrawStatusContainer * getStrawStatusHTContainer() const
This is an Identifier helper class for the TRT subdetector.
Definition TRT_ID.h:82