ATLAS Offline Software
Loading...
Searching...
No Matches
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
13//STL
14#include <vector>
15//Gaudi
16#include "GaudiKernel/ICondSvc.h"
17//StoreGate
19//Athena
21//TRT
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
abstract interface to TRT straw status constants
This is an Identifier helper class for the TRT subdetector.
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
A COOL multichannel container for StrawStatus.
This is an Identifier helper class for the TRT subdetector.
Definition TRT_ID.h:82
virtual int getStatus(Identifier offlineId, const EventContext &) const override
virtual ~TRT_StrawStatusSummaryTool()=default
destructor
virtual int getStatusPermanent(Identifier offlineId, const EventContext &) const override
virtual int getStatusHT(Identifier offlineId, const EventContext &) const override
virtual bool get_statusHT(Identifier offlineId, const EventContext &) const override
SG::ReadCondHandleKey< StrawStatusContainer > m_statHTReadKey
virtual StatusCode finalize() override
tool finalize
SG::ReadCondHandleKey< StrawStatusContainer > m_permReadKey
Gaudi::Property< std::string > m_par_strawstatusHTcontainerkey
SG::ReadCondHandleKey< StrawStatusContainer > m_statReadKey
TRTCond::StrawStatusMultChanContainer StrawStatusContainer
TRT_StrawStatusSummaryTool(const std::string &type, const std::string &name, const IInterface *parent)
constructor
virtual const StrawStatusContainer * getStrawStatusHTContainer() const override
ServiceHandle< ICondSvc > m_condSvc
virtual bool get_status(Identifier offlineId, const EventContext &) const override
void initialize()