ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_ConditionsSummaryTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
9#ifndef SCT_ConditionsSummaryTool_h
10#define SCT_ConditionsSummaryTool_h
11
13
20
21//Gaudi Includes
22#include "GaudiKernel/ToolHandle.h"
23
24//STL includes
25#include <string>
26#include <vector>
27
28//forward declarations
30
31class SCT_ID;
32
33
38class SCT_ConditionsSummaryTool: public extends<AthAlgTool, IDetectorElementStatusTool, IInDetConditionsTool> {
39
40public:
41 SCT_ConditionsSummaryTool(const std::string& type, const std::string& name, const IInterface* parent);
42 virtual ~SCT_ConditionsSummaryTool() = default;
43 //@name Gaudi STool Implementation
45 virtual StatusCode initialize() override;
47
48 //@name reimplemented from IInDetConditionsTool
50 virtual bool isActive(const Identifier& elementId, const InDetConditions::Hierarchy h, const EventContext& ctx) const override;
51 virtual bool isActive(const IdentifierHash& elementHash, const EventContext& ctx) const override;
52 virtual bool isActive(const IdentifierHash& elementHash, const Identifier& elementId, const EventContext& ctx) const override;
53 virtual double activeFraction(const IdentifierHash& elementHash, const Identifier& idStart, const Identifier& idEnd, const EventContext& ctx) const override;
54
55 virtual bool isGood(const Identifier& elementId, const InDetConditions::Hierarchy h, const EventContext& ctx) const override;
56 virtual bool isGood(const IdentifierHash& elementHash, const EventContext& ctx) const override;
57 virtual bool isGood(const IdentifierHash& elementHash, const Identifier& elementId, const EventContext& ctx, const IDCCacheEntry* cacheEntry=nullptr) const override;
58 virtual double goodFraction(const IdentifierHash& elementHash, const Identifier& idStart, const Identifier& idEnd, const EventContext& ctx) const override;
59 virtual std::unique_ptr<InDet::SiDetectorElementStatus>
60 getDetectorElementStatus(const EventContext& ctx,
62
63 virtual bool hasBSError(const IdentifierHash& elementHash, const EventContext& ctx, const IDCCacheEntry* cacheEntry=nullptr) const override;
64 virtual bool hasBSError(const IdentifierHash& elementHash, Identifier elementId, const EventContext& ctx, const IDCCacheEntry* cacheEntry=nullptr) const override;
65 virtual uint64_t getBSErrorWord(const IdentifierHash& moduleHash, const EventContext& ctx, const IDCCacheEntry* cacheEntry=nullptr) const override;
66
67 virtual uint64_t getBSErrorWord(const IdentifierHash& moduleHash, const int index, const EventContext& ctx, const IDCCacheEntry* cacheEntry=nullptr) const override;
68 virtual IDCCacheEntry* getCacheEntryOut(const EventContext& ctx) const override;
70private:
71 std::unique_ptr<InDet::SiDetectorElementStatus>
72 createDetectorElementStatus(const EventContext& ctx,
74
75 ToolHandleArray<ISCT_ConditionsTool> m_toolHandles
76 {this, "ConditionsTools", {},""};
78 {this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
80 {this, "SCTDetElStatusEventDataBaseKey", "", "Optional event data key of an input SiDetectorElementStatus on which the newly created object will be based."};
82 {this, "SCTDetElStatusCondDataBaseKey", "" , "Optional conditions data key of an input SiDetectorElementStatus on which the newly created object will be based."};
83 const SCT_ID* m_id_sct{nullptr};
84
85
86 bool m_noReports{true};
87};
88
89#endif // SCT_ConditionsSummaryTool_h
Header containing the InDetHierarchy enum, to avoid pulling in a class every time it is needed and na...
Header file for AthHistogramAlgorithm.
Base class for SCT conditions tools so they can be used in the summary tool.
This is a "hash" representation of an Identifier.
virtual uint64_t getBSErrorWord(const IdentifierHash &moduleHash, const EventContext &ctx, const IDCCacheEntry *cacheEntry=nullptr) const override
virtual bool isActive(const Identifier &elementId, const InDetConditions::Hierarchy h, const EventContext &ctx) const override
virtual IDCCacheEntry * getCacheEntryOut(const EventContext &ctx) const override
virtual StatusCode initialize() override
Tool init.
SG::ReadCondHandleKey< InDet::SiDetectorElementStatus > m_SCTDetElStatusCondKey
ToolHandleArray< ISCT_ConditionsTool > m_toolHandles
const SCT_ID * m_id_sct
Handle to SCT ID helper.
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
virtual ~SCT_ConditionsSummaryTool()=default
virtual std::unique_ptr< InDet::SiDetectorElementStatus > getDetectorElementStatus(const EventContext &ctx, SG::WriteCondHandle< InDet::SiDetectorElementStatus > *whandle) const override
SG::ReadHandleKey< InDet::SiDetectorElementStatus > m_SCTDetElStatusEventKey
SCT_ConditionsSummaryTool(const std::string &type, const std::string &name, const IInterface *parent)
Tool constructor.
virtual bool isGood(const IdentifierHash &elementHash, const Identifier &elementId, const EventContext &ctx, const IDCCacheEntry *cacheEntry=nullptr) const override
virtual double goodFraction(const IdentifierHash &elementHash, const Identifier &idStart, const Identifier &idEnd, const EventContext &ctx) const override
virtual bool hasBSError(const IdentifierHash &elementHash, const EventContext &ctx, const IDCCacheEntry *cacheEntry=nullptr) const override
virtual bool isGood(const Identifier &elementId, const InDetConditions::Hierarchy h, const EventContext &ctx) const override
virtual uint64_t getBSErrorWord(const IdentifierHash &moduleHash, const int index, const EventContext &ctx, const IDCCacheEntry *cacheEntry=nullptr) const override
virtual bool hasBSError(const IdentifierHash &elementHash, Identifier elementId, const EventContext &ctx, const IDCCacheEntry *cacheEntry=nullptr) const override
std::unique_ptr< InDet::SiDetectorElementStatus > createDetectorElementStatus(const EventContext &ctx, SG::WriteCondHandle< InDet::SiDetectorElementStatus > *whandle) const
virtual double activeFraction(const IdentifierHash &elementHash, const Identifier &idStart, const Identifier &idEnd, const EventContext &ctx) const override
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition index.py:1