ATLAS Offline Software
ISCT_ReadCalibDataTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 // Multiple inclusion protection
9 #ifndef ISCT_READ_CALIB_DATA_TOOL
10 #define ISCT_READ_CALIB_DATA_TOOL
11 
12 //STL includes
13 #include <vector>
14 #include <list>
15 #include <string>
16 
17 // Include SCT calibration data map objects
18 //needed for typedef
20 
21 // Include top level interface
24 
25 class Identifier;
26 class IdentifierHash;
27 class StatusCode;
28 
30 
31  public:
32 
33  typedef struct {
34  std::vector<std::string> scan;
35  std::vector<std::string> defect;
36  std::vector<float> value;
38 
39  //----------Public Member Functions----------//
40  // Structors
41  virtual ~ISCT_ReadCalibDataTool() = default;
42 
45 
46  // Methods to return calibration defect type and summary
49  virtual SCT_CalibDefectData::CalibModuleDefects defectsSummary(const Identifier& moduleId, const std::string& scan, const EventContext& ctx) const = 0;
50  virtual SCT_CalibDefectData::CalibModuleDefects defectsSummary(const Identifier& moduleId, const std::string& scan) const = 0;
51  virtual std::list<Identifier> defectList(const std::string& defect, const EventContext& ctx) const = 0;
52  virtual std::list<Identifier> defectList(const std::string& defect) const = 0;
53 
54 };
55 
56 //----------------------------------------------------------------------
57 #endif // ISCT_READ_CALIB_DATA_TOOL
ISCT_ReadCalibDataTool::defectType
virtual ISCT_ReadCalibDataTool::CalibDefectType defectType(const Identifier &stripId, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const =0
Return summary of defect type and values for a strip.
ISCT_ReadCalibDataTool::CalibDefectType::defect
std::vector< std::string > defect
Definition: ISCT_ReadCalibDataTool.h:35
SCT_CalibDefectData.h
ISCT_ConditionsTool.h
ISCT_ReadCalibDataTool::CalibDefectType::scan
std::vector< std::string > scan
Definition: ISCT_ReadCalibDataTool.h:34
ISCT_ReadCalibDataTool::defectType
virtual ISCT_ReadCalibDataTool::CalibDefectType defectType(const Identifier &stripId, const EventContext &ctx, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const =0
Return summary of defect type and values for a strip.
ISCT_ReadCalibDataTool::defectsSummary
virtual SCT_CalibDefectData::CalibModuleDefects defectsSummary(const Identifier &moduleId, const std::string &scan, const EventContext &ctx) const =0
Returns module summary of defect.
InDetConditions::Hierarchy
Hierarchy
Definition: InDetHierarchy.h:14
ISCT_ReadCalibDataTool::defectsSummary
virtual SCT_CalibDefectData::CalibModuleDefects defectsSummary(const Identifier &moduleId, const std::string &scan) const =0
Returns module summary of defect.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ISCT_ReadCalibDataTool::DeclareInterfaceID
DeclareInterfaceID(ISCT_ReadCalibDataTool, 1, 0)
Creates the InterfaceID and interfaceID() method.
ISCT_ReadCalibDataTool::defectList
virtual std::list< Identifier > defectList(const std::string &defect) const =0
Returns module summary of defect.
InDetHierarchy.h
ISCT_ReadCalibDataTool::CalibDefectType
Definition: ISCT_ReadCalibDataTool.h:33
SCT_CalibDefectData::CalibModuleDefects
Definition: SCT_CalibDefectData.h:32
dq_defect_bulk_create_defects.defect
defect
Definition: dq_defect_bulk_create_defects.py:35
h
scan
void scan(TDirectory *td=0, int depth=0)
Definition: listroot.cxx:440
ISCT_ReadCalibDataTool::CalibDefectType::value
std::vector< float > value
Definition: ISCT_ReadCalibDataTool.h:36
ISCT_ReadCalibDataTool::defectList
virtual std::list< Identifier > defectList(const std::string &defect, const EventContext &ctx) const =0
Returns module summary of defect.
ISCT_ReadCalibDataTool::~ISCT_ReadCalibDataTool
virtual ~ISCT_ReadCalibDataTool()=default
Destructor.
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
InDetConditions::DEFAULT
@ DEFAULT
Definition: InDetHierarchy.h:14
ISCT_ReadCalibDataTool
Definition: ISCT_ReadCalibDataTool.h:29
ISCT_ConditionsTool
Definition: ISCT_ConditionsTool.h:34
Identifier
Definition: IdentifierFieldParser.cxx:14