ATLAS Offline Software
TRTCondRead.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_TRTCONDREAD_H
6 #define TRTCONDITIONSALGS_TRTCONDREAD_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"
26 
31 class TRTCondRead:public AthAlgorithm {
32 public:
35 
36 
38  TRTCondRead(const std::string& name, ISvcLocator* pSvcLocator);
40  ~TRTCondRead(void);
41 
42  virtual StatusCode initialize(void) override;
43  virtual StatusCode execute(void) override;
44  virtual StatusCode finalize(void) override;
45 
48 
49  // methods for persistency
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; //set this to either "caliboutput,txt" or "erroroutput.txt"
61  const TRT_ID* m_trtid;
63 
64 };
65 
66 #endif // TRTCONDITIONSALGS_TRTCONDREAD_H
67 
TRTCondRead::writeCalibTextFile
virtual StatusCode writeCalibTextFile(std::ostream &) const
write calibration constants or errors to flat text file
Definition: TRTCondRead.cxx:105
TRTCondRead::m_setup
bool m_setup
true at first event
Definition: TRTCondRead.h:59
TRT_ID.h
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
TRTCondRead::initialize
virtual StatusCode initialize(void) override
Definition: TRTCondRead.cxx:39
TRTCondRead::finalize
virtual StatusCode finalize(void) override
Definition: TRTCondRead.cxx:101
TRTCondRead::TRTCondRead
TRTCondRead(const std::string &name, ISvcLocator *pSvcLocator)
constructor
Definition: TRTCondRead.cxx:23
DataHandle.h
TRTCondRead::writeErrorTextFile
virtual StatusCode writeErrorTextFile(std::ostream &) const
Definition: TRTCondRead.cxx:139
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
TRTCondRead::~TRTCondRead
~TRTCondRead(void)
destructor
Definition: TRTCondRead.cxx:36
AthAlgorithm.h
TRTCondRead::trtcondid
virtual TRTCond::ExpandedIdentifier trtcondid(const Identifier &id, int level=TRTCond::ExpandedIdentifier::STRAW) const
create an TRTCond::ExpandedIdentifier from a TRTID identifier
Definition: TRTCondRead.cxx:176
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRTCondRead::RtRelationContainer
TRTCond::RtRelationMultChanContainer RtRelationContainer
Definition: TRTCondRead.h:33
ITRT_CalDbTool.h
abstract interface to TRT calibration constants
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TRTCond::ExpandedIdentifier::STRAW
@ STRAW
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:37
TRTCondRead::m_par_caloutputfile
std::string m_par_caloutputfile
Definition: TRTCondRead.h:60
TRTCondRead::m_detstore
ServiceHandle< StoreGateSvc > m_detstore
Definition: TRTCondRead.h:62
TRT_ID
Definition: TRT_ID.h:84
TRTCondRead::execute
virtual StatusCode execute(void) override
Definition: TRTCondRead.cxx:60
TRTCondRead::m_TRTCalDbTool
ToolHandle< ITRT_CalDbTool > m_TRTCalDbTool
Definition: TRTCondRead.h:58
RtRelationMultChanContainer.h
Class for storing/accessing trt rtrelations with channels 1;95;0c.
TRTCondRead::StrawT0Container
TRTCond::StrawT0MultChanContainer StrawT0Container
Definition: TRTCondRead.h:34
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
TRTCondRead
Definition: TRTCondRead.h:31
TRTCondRead::m_trtid
const TRT_ID * m_trtid
trt id helper
Definition: TRTCondRead.h:61
ServiceHandle< StoreGateSvc >
TRTCond::RtRelationMultChanContainer
Definition: RtRelationMultChanContainer.h:29
Identifier
Definition: IdentifierFieldParser.cxx:14