ATLAS Offline Software
SCT_DCSStatCondData.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
15 #ifndef SCT_DCSSTATCONDDATA_H
16 #define SCT_DCSSTATCONDDATA_H
17 
19 
20 #include <map>
21 #include <string>
22 #include <vector>
23 
30 public:
31  typedef std::map<CondAttrListCollection::ChanNum, std::vector<std::string> > DCSConditions;
34 
36  virtual ~SCT_DCSStatCondData() = default;
37  //@name main methods
39  void fill(const CondAttrListCollection::ChanNum& chanNum, const std::string& param);
42  void remove(const CondAttrListCollection::ChanNum& chanNum, const std::string& param);
44  int output(const CondAttrListCollection::ChanNum& chanNum, std::vector<std::string>& usersVector) const;
48  const DCSConditions &badChannelsMap() const { return m_bad_channels; }
49 
50 private:
52 };
53 
54 // Class definition for StoreGate
55 #include "AthenaKernel/CLASS_DEF.h"
56 CLASS_DEF( SCT_DCSStatCondData , 254074432 , 1 )
57 
58 // Condition container definition for CondInputLoader
59 #include "AthenaKernel/CondCont.h"
61 
62 #endif // SCT_DCSSTATCONDDATA_H
SCT_DCSStatCondData::m_bad_channels
DCSConditions m_bad_channels
Definition: SCT_DCSStatCondData.h:51
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
SCT_DCSStatCondData::SCT_DCSStatCondData
SCT_DCSStatCondData()
Constructor.
Definition: SCT_DCSStatCondData.cxx:16
SCT_DCSStatCondData
Classs for data object used in SCT_DCSConditionsStatCondAlg, SCT_DCSConditionsTool,...
Definition: SCT_DCSStatCondData.h:29
SCT_DCSStatCondData::fill
void fill(const CondAttrListCollection::ChanNum &chanNum, const std::string &param)
Add defect.
Definition: SCT_DCSStatCondData.cxx:22
SCT_DCSStatCondData::remove
void remove(const CondAttrListCollection::ChanNum &chanNum, const std::string &param)
Remove a defect.
Definition: SCT_DCSStatCondData.cxx:46
checkCoolLatestUpdate.chanNum
chanNum
Definition: checkCoolLatestUpdate.py:27
SCT_DCSStatCondData::output
int output(const CondAttrListCollection::ChanNum &chanNum, std::vector< std::string > &usersVector) const
Copy all defects to a users vector, the return value is the size.
Definition: SCT_DCSStatCondData.cxx:58
CondAttrListCollection::ChanNum
unsigned int ChanNum
Definition: CondAttrListCollection.h:55
CONDCONT_DEF
CONDCONT_DEF(SCT_DCSStatCondData, 162792902)
SCT_DCSStatCondData::DCSConditions
std::map< CondAttrListCollection::ChanNum, std::vector< std::string > > DCSConditions
Definition: SCT_DCSStatCondData.h:31
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_DCSStatCondData::~SCT_DCSStatCondData
virtual ~SCT_DCSStatCondData()=default
Destructor.
CLASS_DEF.h
macros to associate a CLID to a type
SCT_DCSStatCondData::badChannelsMap
const DCSConditions & badChannelsMap() const
Definition: SCT_DCSStatCondData.h:48