ATLAS Offline Software
SCT_ReadCalibDataTestAlg.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 // Multiple inclusion protection
13 #ifndef SCT_READ_CALIB_DATA_TEST_ALG
14 #define SCT_READ_CALIB_DATA_TEST_ALG
15 
16 //local and indet stuff
18 
19 // Include Athena stuff
21 #include "Identifier/Identifier.h"
23 
24 // Include Gaudi stuff
25 #include "GaudiKernel/ToolHandle.h"
26 
27 // Include STL stuff
28 #include <string>
29 
30 // Forward declarations
31 class ISvcLocator;
32 class SCT_ID;
33 
36 {
37  public:
38  //----------Public Member Functions----------//
39  // Structors
40  SCT_ReadCalibDataTestAlg(const std::string& name, ISvcLocator* pSvcLocator);
41  virtual ~SCT_ReadCalibDataTestAlg() = default;
42 
43  // Standard Gaudi functions
44  virtual StatusCode initialize() override;
45  virtual StatusCode execute(const EventContext& ctx) const override;
46  virtual StatusCode finalize() override;
47 
48  virtual bool isClonable() const override { return true; };
49 
50  private:
51  //----------Private Member Functions----------//
53 
54  //----------Private Attributes----------//
55  const SCT_ID* m_id_sct{nullptr};
59 
60  // Get Tool Handle
61  ToolHandle<ISCT_ReadCalibDataTool> m_ReadCalibDataTool{this, "SCT_ReadCalibDataTool", "SCT_ReadCalibDataTool", "Tool to retrieve calibration information"};
62  ToolHandle<ISCT_CablingTool> m_cabling{this, "SCT_CablingTool", "SCT_CablingTool", "Tool to retrieve SCT Cabling"};
63 
64  BooleanProperty m_doTestmyConditionsSummary{this, "DoTestmyConditionsSummary", false, "Test return bool conditions summary?"};
65  BooleanProperty m_doTestmyDefectIsGood{this, "DoTestmyDefectIsGood", false, "Test return defect type summary?"};
66  IntegerArrayProperty m_moduleOfflinePosition{this, "ModuleOfflinePosition", {}, "Offline pos. as: B-EC,layer-disk,phi,eta"};
67 };
68 //----------------------------------------------------------------------
69 
70 #endif // SCT_READ_CALIB_DATA_TEST_ALG
ISCT_ReadCalibDataTool.h
SCT_ReadCalibDataTestAlg::finalize
virtual StatusCode finalize() override
Gaudi finaliser.
Definition: SCT_ReadCalibDataTestAlg.cxx:143
SCT_ReadCalibDataTestAlg::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: SCT_ReadCalibDataTestAlg.h:48
SCT_ReadCalibDataTestAlg::m_moduleId
Identifier m_moduleId
Module identifier.
Definition: SCT_ReadCalibDataTestAlg.h:56
SCT_ReadCalibDataTestAlg::SCT_ReadCalibDataTestAlg
SCT_ReadCalibDataTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: SCT_ReadCalibDataTestAlg.cxx:23
SCT_ReadCalibDataTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Gaudi executer.
Definition: SCT_ReadCalibDataTestAlg.cxx:89
SCT_ReadCalibDataTestAlg::m_cabling
ToolHandle< ISCT_CablingTool > m_cabling
Definition: SCT_ReadCalibDataTestAlg.h:62
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCT_ReadCalibDataTestAlg::m_doTestmyDefectIsGood
BooleanProperty m_doTestmyDefectIsGood
Definition: SCT_ReadCalibDataTestAlg.h:65
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_ReadCalibDataTestAlg::m_doTestmyConditionsSummary
BooleanProperty m_doTestmyConditionsSummary
Definition: SCT_ReadCalibDataTestAlg.h:64
SCT_ReadCalibDataTestAlg::processProperties
StatusCode processProperties()
Process jobOpt properties.
Definition: SCT_ReadCalibDataTestAlg.cxx:50
SCT_ReadCalibDataTestAlg::m_moduleOfflinePosition
IntegerArrayProperty m_moduleOfflinePosition
Offline pos.
Definition: SCT_ReadCalibDataTestAlg.h:66
SCT_ReadCalibDataTestAlg::initialize
virtual StatusCode initialize() override
Gaudi initialiser.
Definition: SCT_ReadCalibDataTestAlg.cxx:29
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SCT_ReadCalibDataTestAlg
This class acts as a test/sample client to the SCT_ReadSCalibDataSvc class.
Definition: SCT_ReadCalibDataTestAlg.h:36
SCT_ID
Definition: SCT_ID.h:68
SCT_ReadCalibDataTestAlg::~SCT_ReadCalibDataTestAlg
virtual ~SCT_ReadCalibDataTestAlg()=default
Destructor.
SCT_ReadCalibDataTestAlg::m_ReadCalibDataTool
ToolHandle< ISCT_ReadCalibDataTool > m_ReadCalibDataTool
Definition: SCT_ReadCalibDataTestAlg.h:61
SCT_ReadCalibDataTestAlg::m_stripId
Identifier m_stripId
Strip identifier.
Definition: SCT_ReadCalibDataTestAlg.h:58
ISCT_CablingTool.h
SCT_ReadCalibDataTestAlg::m_waferId
Identifier m_waferId
Wafer identifier.
Definition: SCT_ReadCalibDataTestAlg.h:57
SCT_ReadCalibDataTestAlg::m_id_sct
const SCT_ID * m_id_sct
ID helper for SCT.
Definition: SCT_ReadCalibDataTestAlg.h:55
Identifier
Definition: IdentifierFieldParser.cxx:14