ATLAS Offline Software
SCT_CalibDefectData.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 
14 #ifndef SCT_CALIBDEFECTDATA_H
15 #define SCT_CALIBDEFECTDATA_H
16 
17 // Include Athena stuff
18 #include "Identifier/Identifier.h"
19 
20 #include <map>
21 #include <string>
22 #include <vector>
23 
30 public:
31 
32  typedef struct{
33  std::vector<unsigned int> begDefects;
34  std::vector<unsigned int> endDefects;
35  std::vector<std::string> typeOfDefect;
36  std::vector<float> parValue;
38 
41 
43  virtual ~SCT_CalibDefectData() = default;
44 
46  bool addModule( const Identifier & moduleId, const CalibModuleDefects & defects );
47 
49  CalibModuleDefects findModule( const Identifier & moduleId ) const;
50 
52  std::string str();
53 
55  std::string moduleText( const Identifier & moduleId ) const;
56 
58  bool empty() const;
59 
61  void clear();
62 
64  unsigned long int size() const;
65 
66 
67 private:
68 
69  typedef std::map<Identifier, CalibModuleDefects> CalibConditions;
71 
72 };
73 
74 // Class definition for StoreGate
75 #include "AthenaKernel/CLASS_DEF.h"
76 CLASS_DEF( SCT_CalibDefectData , 103608210, 1 )
77 
78 // Condition container definition for CondInputLoader
79 #include "AthenaKernel/CondCont.h"
81 
82 #endif // SCT_CALIBDEFECTDATA_H
CONDCONT_MIXED_DEF
CONDCONT_MIXED_DEF(SCT_CalibDefectData, 1073500)
SCT_CalibDefectData::CalibConditions
std::map< Identifier, CalibModuleDefects > CalibConditions
Definition: SCT_CalibDefectData.h:69
SCT_CalibDefectData
Container with a list of defects derived from calibration data and used in SCT_ReadCalibDataCondAlg a...
Definition: SCT_CalibDefectData.h:29
SCT_CalibDefectData::findModule
CalibModuleDefects findModule(const Identifier &moduleId) const
Search the map for a module.
Definition: SCT_CalibDefectData.cxx:32
SCT_CalibDefectData::CalibModuleDefects::begDefects
std::vector< unsigned int > begDefects
Definition: SCT_CalibDefectData.h:33
SCT_CalibDefectData::SCT_CalibDefectData
SCT_CalibDefectData()
Constructor.
Definition: SCT_CalibDefectData.cxx:19
SCT_CalibDefectData::size
unsigned long int size() const
Return the size of the map.
Definition: SCT_CalibDefectData.cxx:101
SCT_CalibDefectData::moduleText
std::string moduleText(const Identifier &moduleId) const
Print data for one module.
Definition: SCT_CalibDefectData.cxx:62
SCT_CalibDefectData::CalibModuleDefects::typeOfDefect
std::vector< std::string > typeOfDefect
Definition: SCT_CalibDefectData.h:35
DeMoScan.defects
defects
Definition: DeMoScan.py:297
SCT_CalibDefectData::CalibModuleDefects
Definition: SCT_CalibDefectData.h:32
SCT_CalibDefectData::CalibModuleDefects::parValue
std::vector< float > parValue
Definition: SCT_CalibDefectData.h:36
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
SCT_CalibDefectData::~SCT_CalibDefectData
virtual ~SCT_CalibDefectData()=default
Destructor.
SCT_CalibDefectData::str
std::string str()
Print the map - might be useful.
Definition: SCT_CalibDefectData.cxx:46
SCT_CalibDefectData::addModule
bool addModule(const Identifier &moduleId, const CalibModuleDefects &defects)
Add defects for a module.
Definition: SCT_CalibDefectData.cxx:25
CLASS_DEF.h
macros to associate a CLID to a type
SCT_CalibDefectData::clear
void clear()
Clear the map.
Definition: SCT_CalibDefectData.cxx:95
SCT_CalibDefectData::empty
bool empty() const
Return whether the map is empty.
Definition: SCT_CalibDefectData.cxx:89
SCT_CalibDefectData::m_defectMap
CalibConditions m_defectMap
Definition: SCT_CalibDefectData.h:70
SCT_CalibDefectData::CalibModuleDefects::endDefects
std::vector< unsigned int > endDefects
Definition: SCT_CalibDefectData.h:34
Identifier
Definition: IdentifierFieldParser.cxx:14