ATLAS Offline Software
Loading...
Searching...
No Matches
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
15
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
36
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
Interface file for the SCT_ReadoutTool class.
Header file storing infomration on the SCT chips: id, config, mask.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Class which stores infomration on the SCT chips: id, config, mask.
Definition SCT_Chip.h:27
BooleanProperty m_link1ok
SCT_Chip initialiseChip(short id, std::string configString)
Initialise a chip given its id and configuration string.
virtual StatusCode finalize() override
short bin2dec(const char *bin)
Function to convert the configuration string into an int.
virtual ~SCT_ReadoutTestAlg()=default
ToolHandle< ISCT_ReadoutTool > m_readout
List of chips for that module.
BooleanProperty m_link0ok
std::vector< SCT_Chip > m_chips
virtual StatusCode initialize() override
Usual framework methods for an Algorithm.
virtual StatusCode execute() override
SCT_ReadoutTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
IntegerProperty m_moduleId
StringArrayProperty m_chipConfigs