ATLAS Offline Software
TRTStrawStatusRead.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 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 
12 #ifndef TRTSTRAWSTATUSREAD_H
13 #define TRTSTRAWSTATUSREAD_H
14 
17 #include "StoreGate/StoreGateSvc.h"
20 #include "InDetIdentifier/TRT_ID.h"
21 #include "GaudiKernel/ToolHandle.h"
23 
25 {
26 
27  public:
28 
29  TRTStrawStatusRead( const std::string &name, ISvcLocator *pSvcLocator);
30  virtual ~TRTStrawStatusRead()=default;
32 
33  // Gaudi
34  virtual StatusCode initialize( ) override;
35  virtual StatusCode execute( ) override;
36  virtual StatusCode finalize( ) override;
37 
38 
39  virtual StatusCode writeToTextFile(const std::string& filename);
40 
41  virtual const StrawStatusContainer* getStrawStatusContainer() const;
43  virtual const StrawStatusContainer* getStrawStatusHTContainer() const;
44 
45  private:
46 
47 
48  bool m_setup; //false before first event
49  const TRT_ID* m_trtid;
50  ToolHandle<ITRT_StrawStatusSummaryTool> m_status;
51  // ReadHandle keys
52  SG::ReadCondHandleKey<StrawStatusContainer> m_statReadKey{this,"StatReadKeyName","/TRT/Cond/Status","StrawStatus in-key"};
53  SG::ReadCondHandleKey<StrawStatusContainer> m_permReadKey{this,"PermReadKeyName","/TRT/Cond/StatusPermanent","StrawStatusPermanent in-key"};
54  SG::ReadCondHandleKey<StrawStatusContainer> m_statHTReadKey{this,"StatHTReadKeyName","/TRT/Cond/StatusHT","StrawStatusHT in-key"};
55 
56  // Which folder to print
57  std::string m_printfolder;
58 };
59 
60 
61 #endif
TRTStrawStatusRead::m_setup
bool m_setup
Definition: TRTStrawStatusRead.h:48
TRTCond::StrawStatusMultChanContainer
Definition: StrawStatusMultChanContainer.h:19
TRT_ID.h
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
TRTStrawStatusRead::StrawStatusContainer
TRTCond::StrawStatusMultChanContainer StrawStatusContainer
Definition: TRTStrawStatusRead.h:31
ExpandedIdentifier.h
TRTStrawStatusRead::m_printfolder
std::string m_printfolder
Definition: TRTStrawStatusRead.h:57
StrawStatusMultChanContainer.h
AthAlgorithm.h
TRTStrawStatusRead::initialize
virtual StatusCode initialize() override
Definition: TRTStrawStatusRead.cxx:42
TRTStrawStatusRead
Definition: TRTStrawStatusRead.h:25
TRTStrawStatusRead::m_status
ToolHandle< ITRT_StrawStatusSummaryTool > m_status
Definition: TRTStrawStatusRead.h:50
ITRT_StrawStatusSummaryTool.h
abstract interface to TRT straw status constants
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRTStrawStatusRead::TRTStrawStatusRead
TRTStrawStatusRead(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TRTStrawStatusRead.cxx:28
TRTStrawStatusRead::getStrawStatusHTContainer
virtual const StrawStatusContainer * getStrawStatusHTContainer() const
Definition: TRTStrawStatusRead.cxx:368
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
TRTStrawStatusRead::getStrawStatusContainer
virtual const StrawStatusContainer * getStrawStatusContainer() const
Definition: TRTStrawStatusRead.cxx:352
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TRTStrawStatusRead::finalize
virtual StatusCode finalize() override
Definition: TRTStrawStatusRead.cxx:82
TRTStrawStatusRead::execute
virtual StatusCode execute() override
Definition: TRTStrawStatusRead.cxx:62
SG::ReadCondHandleKey
Definition: ReadCondHandleKey.h:20
TRT_ID
Definition: TRT_ID.h:84
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
TRTStrawStatusRead::writeToTextFile
virtual StatusCode writeToTextFile(const std::string &filename)
Definition: TRTStrawStatusRead.cxx:91
TRTStrawStatusRead::m_permReadKey
SG::ReadCondHandleKey< StrawStatusContainer > m_permReadKey
Definition: TRTStrawStatusRead.h:53
StoreGateSvc.h
TRTStrawStatusRead::~TRTStrawStatusRead
virtual ~TRTStrawStatusRead()=default
TRTStrawStatusRead::m_statHTReadKey
SG::ReadCondHandleKey< StrawStatusContainer > m_statHTReadKey
Definition: TRTStrawStatusRead.h:54
TRTStrawStatusRead::m_trtid
const TRT_ID * m_trtid
trt id helper
Definition: TRTStrawStatusRead.h:49
TRTStrawStatusRead::getStrawStatusPermanentContainer
virtual const StrawStatusContainer * getStrawStatusPermanentContainer() const
Definition: TRTStrawStatusRead.cxx:360
TRTStrawStatusRead::m_statReadKey
SG::ReadCondHandleKey< StrawStatusContainer > m_statReadKey
Definition: TRTStrawStatusRead.h:52