ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
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
30public:
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
67private:
68
69 typedef std::map<Identifier, CalibModuleDefects> CalibConditions;
71
72};
73
74// Class definition for StoreGate
76CLASS_DEF( SCT_CalibDefectData , 103608210, 1 )
77
78// Condition container definition for CondInputLoader
79#include "AthenaKernel/CondCont.h"
81
82#endif // SCT_CALIBDEFECTDATA_H
#define CONDCONT_MIXED_DEF(...)
Definition CondCont.h:1446
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Container with a list of defects derived from calibration data and used in SCT_ReadCalibDataCondAlg a...
std::string str()
Print the map - might be useful.
void clear()
Clear the map.
CalibModuleDefects findModule(const Identifier &moduleId) const
Search the map for a module.
virtual ~SCT_CalibDefectData()=default
Destructor.
bool addModule(const Identifier &moduleId, const CalibModuleDefects &defects)
Add defects for a module.
bool empty() const
Return whether the map is empty.
std::string moduleText(const Identifier &moduleId) const
Print data for one module.
SCT_CalibDefectData()
Constructor.
std::map< Identifier, CalibModuleDefects > CalibConditions
unsigned long int size() const
Return the size of the map.
CalibConditions m_defectMap