ATLAS Offline Software
TileBadChannels.h
Go to the documentation of this file.
1 //Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef TILECONDITIONS_TILEBADCHANNELS_H
8 #define TILECONDITIONS_TILEBADCHANNELS_H
9 
10 // Tile includes
12 
13 // Athena includes
15 
21 #include <map>
22 #include <vector>
23 
25 
26  public:
27 
29  virtual ~TileBadChannels();
30 
37  void addAdcStatus(const HWIdentifier channel_id, const HWIdentifier adc_id, const TileBchStatus& adcStatus);
38 
39 
45  const TileBchStatus& getAdcStatus(const HWIdentifier adc_id) const;
46 
53 
58  void setTripsProbabilities(std::vector<std::vector<float>>&& tripsProbs);
59 
64  const std::vector<std::vector<float>>& getTripsProbabilities(void) const {return m_tripsProbs;};
65 
66 
71  void setMaskedDrawers(std::vector<int>&& maskedDrawers);
72 
77  const std::vector<int>& getMaskedDrawers(void) const {return m_maskedDrawers;};
78 
80  uint32_t encodeAdcStatus(const HWIdentifier adc_id) const;
81 
82  private:
83 
85 
86  typedef std::map<const HWIdentifier, TileBchStatus> BchMap;
89 
90  std::vector<std::vector<float>> m_tripsProbs;
91  std::vector<int> m_maskedDrawers;
92 };
93 
94 
95 #include "AthenaKernel/CLASS_DEF.h"
96 #include "AthenaKernel/CondCont.h"
97 
98 CLASS_DEF( TileBadChannels, 186938202, 0)
100 
101 // inlines
102 inline
103 void TileBadChannels::setTripsProbabilities(std::vector<std::vector<float>>&& tripsProbs) {
104  m_tripsProbs = std::move(tripsProbs);
105 }
106 
107 #endif // TILECONDITIONS_TILEBADCHANNELS_H
TileBadChannels::getTripsProbabilities
const std::vector< std::vector< float > > & getTripsProbabilities(void) const
Return trips probabilities for all Tile drawers.
Definition: TileBadChannels.h:64
CondCont.h
Hold mappings of ranges to condition objects.
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TileBadChannels::getMaskedDrawers
const std::vector< int > & getMaskedDrawers(void) const
Return Tile drawers masked completely.
Definition: TileBadChannels.h:77
TileBchStatus
Class holding bad channel problems.
Definition: TileBchStatus.h:20
TileBadChannels::encodeAdcStatus
uint32_t encodeAdcStatus(const HWIdentifier adc_id) const
Definition: TileBadChannels.cxx:70
HWIdentifier
Definition: HWIdentifier.h:13
CONDCONT_DEF
CONDCONT_DEF(TileBadChannels, 136686108)
TileBadChannels::m_channelStatus
BchMap m_channelStatus
Definition: TileBadChannels.h:88
TileBadChannels::m_defaultStatus
TileBchStatus m_defaultStatus
Definition: TileBadChannels.h:84
TileBadChannels::setTripsProbabilities
void setTripsProbabilities(std::vector< std::vector< float >> &&tripsProbs)
Store trips probabilities for all Tile drawers.
Definition: TileBadChannels.h:103
vector
Definition: MultiHisto.h:13
TileBadChannels::setMaskedDrawers
void setMaskedDrawers(std::vector< int > &&maskedDrawers)
Store Tile drawers masked completely.
Definition: TileBadChannels.cxx:47
TileBadChannels::encodeStatus
static uint32_t encodeStatus(const TileBchStatus &status)
Definition: TileBadChannels.cxx:52
createCoolChannelIdFile.channel_id
channel_id
Definition: createCoolChannelIdFile.py:52
TileBchStatus.h
TileBadChannels::~TileBadChannels
virtual ~TileBadChannels()
Definition: TileBadChannels.cxx:14
TileBadChannels::getChannelStatus
const TileBchStatus & getChannelStatus(const HWIdentifier channel_id) const
Return Tile channel status.
Definition: TileBadChannels.cxx:35
HWIdentifier.h
TileBadChannels
Condition object to keep Tile channel and ADC status.
Definition: TileBadChannels.h:24
TileBadChannels::m_tripsProbs
std::vector< std::vector< float > > m_tripsProbs
Definition: TileBadChannels.h:90
TileBadChannels::getAdcStatus
const TileBchStatus & getAdcStatus(const HWIdentifier adc_id) const
Return Tile ADC status.
Definition: TileBadChannels.cxx:24
TileBadChannels::addAdcStatus
void addAdcStatus(const HWIdentifier channel_id, const HWIdentifier adc_id, const TileBchStatus &adcStatus)
Add status for given Tile ADC and corresponding channel.
Definition: TileBadChannels.cxx:18
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
TileBadChannels::BchMap
std::map< const HWIdentifier, TileBchStatus > BchMap
Definition: TileBadChannels.h:86
merge.status
status
Definition: merge.py:17
TileBadChannels::m_adcStatus
BchMap m_adcStatus
Definition: TileBadChannels.h:87
CLASS_DEF.h
macros to associate a CLID to a type
TileBadChannels::TileBadChannels
TileBadChannels()
Definition: TileBadChannels.cxx:9
TileBadChannels::m_maskedDrawers
std::vector< int > m_maskedDrawers
Definition: TileBadChannels.h:91