ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_MajorityConditionsTool.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5*/
6
12
13#ifndef SCT_MajorityConditionsTool_h
14#define SCT_MajorityConditionsTool_h
15
16// Athena includes
19
23
24// Gaudi includes
25#include "GaudiKernel/ContextSpecificPtr.h"
26#include "GaudiKernel/EventContext.h"
27
28// STL includes
29#include <string>
30
37
38class SCT_MajorityConditionsTool: public extends<AthAlgTool, ISCT_DetectorLevelConditionsTool> {
39
40 public:
41 //@name Tool methods
43 SCT_MajorityConditionsTool(const std::string &type, const std::string &name, const IInterface *parent);
44 virtual ~SCT_MajorityConditionsTool() = default;
45 virtual StatusCode initialize() override;
46 virtual StatusCode finalize() override;
48
50 virtual bool isGood() const override;
51 virtual bool isGood(const EventContext& ctx) const override;
52
54 virtual bool isGood(int bec) const override;
55 virtual bool isGood(int bec, const EventContext& ctx) const override;
56
57 private:
58 BooleanProperty m_overall{this, "UseOverall", false, "Use overall value or ECA/B/ECC"};
59 FloatProperty m_majorityFraction{this, "MajorityFraction", 0.9, "Required fraction in majority state"};
60
61 SG::ReadCondHandleKey<SCT_MajorityCondData> m_condKey{this, "CondKey", "SCT_MajorityCondData", "Majority of SCT status"};
62 const SCT_MajorityCondData* getCondData(const EventContext& ctx) const;
63};
64
65#endif // SCT_MajorityConditionsTool_h
interface file for tools that report on the detector or ECC/B/ECA level
header file for data object for SCT_MajorityCondAlg and SCT_MajorityConditionsTool.
Property holding a SG store/key/clid from which a ReadHandle is made.
Class for data object used in SCT_MajorityCondAlg and SCT_MajorityConditionsTool.
const SCT_MajorityCondData * getCondData(const EventContext &ctx) const
virtual bool isGood() const override
Is the detector good?
virtual ~SCT_MajorityConditionsTool()=default
SG::ReadCondHandleKey< SCT_MajorityCondData > m_condKey
virtual StatusCode finalize() override
SCT_MajorityConditionsTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize() override