ATLAS Offline Software
SCT_ReadoutTestAlg.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5 */
6 
16 #ifndef SCT_ReadoutTestAlg_H
17 #define SCT_ReadoutTestAlg_H
18 
19 // Athena
21 
24 
25 //Gaudi
26 #include "GaudiKernel/ToolHandle.h"
27 
28 // C++
29 #include <string>
30 #include <vector>
31 
38  public:
39  SCT_ReadoutTestAlg(const std::string& name, ISvcLocator* pSvcLocator);
40  virtual ~SCT_ReadoutTestAlg() = default;
41 
43  virtual StatusCode initialize() override;
44  virtual StatusCode execute() override;
45  virtual StatusCode finalize() override;
46 
47  private:
48  ToolHandle<ISCT_ReadoutTool> m_readout{this, "SCT_ReadoutTool", "SCT_ReadoutTool", "Handle to the SCT_ReadoutTool"};
49 
51  std::vector<SCT_Chip> m_chips;
52 
53  StringArrayProperty m_chipConfigs{this, "ChipConfigurationList", {}, "The configuration of the chips in that module (from job options)"};
54  IntegerProperty m_moduleId{this, "ModuleId", 168497152, "The Module identifier (from job options)"};
55  BooleanProperty m_link0ok{this, "Link0Status", true, "Status of link 0 (from job options)"};
56  BooleanProperty m_link1ok{this, "Link1Status", true, "Status of link 1 (from job options)"};
57 
59  short bin2dec(const char *bin);
61  SCT_Chip initialiseChip(short id, std::string configString);
62 
63 }; //end of class
64 
65 #endif // SCT_ReadoutTestAlg_H
SCT_ReadoutTestAlg::execute
virtual StatusCode execute() override
Definition: SCT_ReadoutTestAlg.cxx:44
SCT_ReadoutTestAlg::SCT_ReadoutTestAlg
SCT_ReadoutTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_ReadoutTestAlg.cxx:20
SCT_ReadoutTestAlg::m_chipConfigs
StringArrayProperty m_chipConfigs
Definition: SCT_ReadoutTestAlg.h:53
SCT_ReadoutTestAlg::m_moduleId
IntegerProperty m_moduleId
Definition: SCT_ReadoutTestAlg.h:54
SCT_Chip
Class which stores infomration on the SCT chips: id, config, mask.
Definition: SCT_Chip.h:27
SCT_ReadoutTestAlg::m_readout
ToolHandle< ISCT_ReadoutTool > m_readout
List of chips for that module.
Definition: SCT_ReadoutTestAlg.h:48
bin
Definition: BinsDiffFromStripMedian.h:43
SCT_ReadoutTestAlg::initialiseChip
SCT_Chip initialiseChip(short id, std::string configString)
Initialise a chip given its id and configuration string.
Definition: SCT_ReadoutTestAlg.cxx:96
SCT_ReadoutTestAlg::m_link1ok
BooleanProperty m_link1ok
Definition: SCT_ReadoutTestAlg.h:56
SCT_Chip.h
AthAlgorithm.h
ISCT_ReadoutTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_ReadoutTestAlg::~SCT_ReadoutTestAlg
virtual ~SCT_ReadoutTestAlg()=default
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SCT_ReadoutTestAlg::m_link0ok
BooleanProperty m_link0ok
Definition: SCT_ReadoutTestAlg.h:55
SCT_ReadoutTestAlg
Definition: SCT_ReadoutTestAlg.h:37
SCT_ReadoutTestAlg::finalize
virtual StatusCode finalize() override
Definition: SCT_ReadoutTestAlg.cxx:63
SCT_ReadoutTestAlg::m_chips
std::vector< SCT_Chip > m_chips
Definition: SCT_ReadoutTestAlg.h:51
SCT_ReadoutTestAlg::initialize
virtual StatusCode initialize() override
Usual framework methods for an Algorithm.
Definition: SCT_ReadoutTestAlg.cxx:26
SCT_ReadoutTestAlg::bin2dec
short bin2dec(const char *bin)
Function to convert the configuration string into an int.
Definition: SCT_ReadoutTestAlg.cxx:70