ATLAS Offline Software
TRTCondPrint.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRTCONDITIONSALGS_TRTCONDPRINT_H
6 #define TRTCONDITIONSALGS_TRTCONDPRINT_H
7 
13 //
14 #include <string>
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"
22 #include "StoreGate/DataHandle.h"
23 #include "InDetIdentifier/TRT_ID.h"
27 #include "GaudiKernel/EventIDRange.h"
28 
33 class TRTCondPrint:public AthAlgorithm {
34 public:
37 
38 
40  TRTCondPrint(const std::string& name, ISvcLocator* pSvcLocator);
43 
44  virtual StatusCode initialize(void) override;
45  virtual StatusCode execute(void) override;
46  virtual StatusCode finalize(void) override;
47 
50 
52  virtual StatusCode writeCalibTextFile(std::ostream&) const;
53  virtual StatusCode writeErrorTextFile(std::ostream&) const;
54 
55 
56  private:
57 
58  ToolHandle<ITRT_CalDbTool> m_TRTCalDbTool;
59  bool m_setup;
60  std::string m_par_caloutputfile;
61  const TRT_ID* m_trtid;
63 
64 };
65 
66 #endif // TRTCONDITIONSALGS_TRTCONDPRINT_H
67 
TRTCondPrint::initialize
virtual StatusCode initialize(void) override
TRTCondPrint::writeErrorTextFile
virtual StatusCode writeErrorTextFile(std::ostream &) const
TRTCondPrint::m_setup
bool m_setup
true at first event
Definition: TRTCondPrint.h:59
TRT_ID.h
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
TRTCondPrint
Definition: TRTCondPrint.h:33
DataHandle.h
TRTCondPrint::~TRTCondPrint
~TRTCondPrint(void)
destructor
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
IAthenaOutputStreamTool.h
Interface to an output stream tool.
AthAlgorithm.h
TRTCondPrint::m_TRTCalDbTool
ToolHandle< ITRT_CalDbTool > m_TRTCalDbTool
Definition: TRTCondPrint.h:58
TRTCondPrint::m_par_caloutputfile
std::string m_par_caloutputfile
must be either nothing, caliboutput.txt or erroroutput.txt
Definition: TRTCondPrint.h:60
TRTCondPrint::TRTCondPrint
TRTCondPrint(const std::string &name, ISvcLocator *pSvcLocator)
constructor
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
TRTCondPrint::RtRelationContainer
TRTCond::RtRelationMultChanContainer RtRelationContainer
Definition: TRTCondPrint.h:35
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRTCondPrint::StrawT0Container
TRTCond::StrawT0MultChanContainer StrawT0Container
Definition: TRTCondPrint.h:36
TRTCondPrint::trtcondid
virtual TRTCond::ExpandedIdentifier trtcondid(const Identifier &id, int level=TRTCond::ExpandedIdentifier::STRAW) const
create an TRTCond::ExpandedIdentifier from a TRTID identifier
ITRT_CalDbTool.h
abstract interface to TRT calibration constants
AthAlgorithm
Definition: AthAlgorithm.h:47
TRTCondPrint::m_trtid
const TRT_ID * m_trtid
trt id helper
Definition: TRTCondPrint.h:61
TRTCondPrint::writeCalibTextFile
virtual StatusCode writeCalibTextFile(std::ostream &) const
write calibration constants or errors to flat text file
TRTCondPrint::execute
virtual StatusCode execute(void) override
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TRTCond::ExpandedIdentifier::STRAW
@ STRAW
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:37
TRTCondPrint::finalize
virtual StatusCode finalize(void) override
TRT_ID
Definition: TRT_ID.h:84
RtRelationMultChanContainer.h
Class for storing/accessing trt rtrelations with channels 1;95;0c.
TRTCond::ExpandedIdentifier
Identifier for TRT detector elements in the conditions code.
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:30
TRTCond::StrawT0MultChanContainer
Definition: StrawT0MultChanContainer.h:31
StoreGateSvc.h
StrawT0MultChanContainer.h
TRTCondPrint::m_detstore
ServiceHandle< StoreGateSvc > m_detstore
Definition: TRTCondPrint.h:62
ServiceHandle< StoreGateSvc >
TRTCond::RtRelationMultChanContainer
Definition: RtRelationMultChanContainer.h:29