ATLAS Offline Software
TRT_StrawStatusSummaryTool.h
Go to the documentation of this file.
1 
2 //Dear emacs this is -*-c++-*-
3 /*
4  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef TRT_STRAWSTATUSSUMMARYTOOL_H
8 #define TRT_STRAWSTATUSSUMMARYTOOL_H
9 
13 //STL
14 #include <vector>
15 //Gaudi
16 #include "GaudiKernel/ICondSvc.h"
17 //StoreGate
19 //Athena
21 //TRT
23 #include "InDetIdentifier/TRT_ID.h"
24 
26 
28 
30  public extends<AthAlgTool, ITRT_StrawStatusSummaryTool>
31 {
32  public:
34 
36  TRT_StrawStatusSummaryTool ( const std::string& type, const std::string& name, const IInterface* parent);
37 
39  virtual ~TRT_StrawStatusSummaryTool() = default;
40 
42  virtual StatusCode initialize() override;
43 
45  virtual StatusCode finalize() override;
46 
47 
48  virtual const StrawStatusContainer* getStrawStatusHTContainer() const override;
49 
50  virtual int getStatus(Identifier offlineId,const EventContext& ) const override;
51  virtual int getStatusPermanent(Identifier offlineId, const EventContext&) const override;
52  virtual int getStatusHT(Identifier offlineId, const EventContext&) const override;
53  virtual bool get_status(Identifier offlineId, const EventContext&) const override;
54  virtual bool get_statusHT(Identifier offlineId, const EventContext&) const override;
55 
56 
57  private:
58  const TRT_ID* m_trtId=nullptr;
59 
61  // ReadHandle keys
62  SG::ReadCondHandleKey<StrawStatusContainer> m_statReadKey{this,"StatReadKeyName","/TRT/Cond/Status","StrawStatus in-key"};
63  SG::ReadCondHandleKey<StrawStatusContainer> m_permReadKey{this,"PermReadKeyName","/TRT/Cond/StatusPermanent","StrawStatusPermanent in-key"};
64  SG::ReadCondHandleKey<StrawStatusContainer> m_statHTReadKey{this,"StatHTReadKeyName","/TRT/Cond/StatusHT","StrawStatusHT in-key"};
65 
66  // Used in simulation (GEANT4) jobs
67  Gaudi::Property<bool> m_isGEANT4 {this,"isGEANT4",true};
68  Gaudi::Property<std::string> m_par_strawstatusHTcontainerkey{this, "SimStatusHTKey","/TRT/Cond/StatusHT"};
69 };
70 
71 #endif // TRT_STRAWSTATUSSUMMARYTOOL_H
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition: PyTestsLib.py:50
TRTCond::StrawStatusMultChanContainer
Definition: StrawStatusMultChanContainer.h:19
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition: checker_macros.h:212
initialize
void initialize()
Definition: run_EoverP.cxx:894
TRT_ID.h
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
TRT_StrawStatusSummaryTool::~TRT_StrawStatusSummaryTool
virtual ~TRT_StrawStatusSummaryTool()=default
destructor
StrawStatusMultChanContainer.h
TRT_StrawStatusSummaryTool::m_condSvc
ServiceHandle< ICondSvc > m_condSvc
Definition: TRT_StrawStatusSummaryTool.h:60
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
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TRT_StrawStatusSummaryTool
Definition: TRT_StrawStatusSummaryTool.h:31
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SG::ReadCondHandleKey
Definition: ReadCondHandleKey.h:20
TRT_ID
Definition: TRT_ID.h:84
TRT_StrawStatusSummaryTool::StrawStatusContainer
TRTCond::StrawStatusMultChanContainer StrawStatusContainer
Definition: TRT_StrawStatusSummaryTool.h:33
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
checker_macros.h
Define macros for attributes used to control the static checker.
ServiceHandle< ICondSvc >
Identifier
Definition: IdentifierFieldParser.cxx:14