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