ATLAS Offline Software
L1CaloPprDisabledChannel.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef TRIGT1CALOCALIBCONDITIONS_L1CALOPPRDISABLEDCHANNEL_H
8 #define TRIGT1CALOCALIBCONDITIONS_L1CALOPPRDISABLEDCHANNEL_H
9 
14 
15 #include <iostream>
16 #include <string>
17 
26  friend std::ostream& operator<<(std::ostream& output, const L1CaloPprDisabledChannel& r);
27 
28  public:
29 
31  L1CaloPprDisabledChannel( unsigned int channelId );
35 
37 
38  // getters
39  inline L1CaloCoolChannelId channelId(void) const { return m_channelId; };
40 
41  inline ChanCalibErrorCode calibErrorCode(void) const { return m_calibErrorCode; };
43 
44  inline ChanDeadErrorCode deadErrorCode(void) const { return m_deadErrorCode; };
46 
47  inline bool isMasked(void) const { return m_bMasked; };
48  inline void isMasked(bool isMasked) { m_bMasked = isMasked; };
49 
50  inline bool isDead(void) const { return m_deadErrorCode.chanValid(); };
51  inline bool hasCalib(void) const { return m_calibErrorCode.chanValid(); };
52 
53  inline unsigned int noiseCut() const { return m_noiseCut; }
54  inline void setNoiseCut(unsigned int noiseCut) { m_noiseCut = noiseCut; }
55 
56  inline unsigned int disabledBits() const { return m_disabledBits; }
57  inline void setDisabledBits(unsigned int disabledBits) { m_disabledBits = disabledBits; }
58 
59  private:
63  bool m_bMasked;
64  unsigned int m_noiseCut;
65  unsigned int m_disabledBits;
66 };
67 
68 #endif
L1CaloCoolChannelId.h
L1CaloPprDisabledChannel::m_channelId
L1CaloCoolChannelId m_channelId
Definition: L1CaloPprDisabledChannel.h:60
beamspotman.r
def r
Definition: beamspotman.py:676
L1CaloPprDisabledChannel::operator<<
friend std::ostream & operator<<(std::ostream &output, const L1CaloPprDisabledChannel &r)
Definition: L1CaloPprDisabledChannel.cxx:56
L1CaloPprDisabledChannel
Transient conditions class for objects defined by the online framework and retrieved from COOL.
Definition: L1CaloPprDisabledChannel.h:25
L1CaloPprDisabledChannel::deadErrorCode
void deadErrorCode(const ChanDeadErrorCode &deadErrorCode)
Definition: L1CaloPprDisabledChannel.h:45
L1CaloPprDisabledChannel::setDisabledBits
void setDisabledBits(unsigned int disabledBits)
Definition: L1CaloPprDisabledChannel.h:57
ChanCalibErrorCode::chanValid
bool chanValid() const
Checks if channel is valid, ie.
Definition: ChanCalibErrorCode.cxx:46
ChanCalibErrorCode
ChanCalibErrorCode class for L1Calo error codes Adapted from /LVL1/l1calo/coolL1Calo/coolL1Calo/ChanE...
Definition: ChanCalibErrorCode.h:20
L1CaloPprDisabledChannel::calibErrorCode
void calibErrorCode(const ChanCalibErrorCode &calibErrorCode)
Definition: L1CaloPprDisabledChannel.h:42
AbstractL1CaloPersistentCondition.h
L1CaloPprDisabledChannel::setNoiseCut
void setNoiseCut(unsigned int noiseCut)
Definition: L1CaloPprDisabledChannel.h:54
L1CaloPprDisabledChannel::L1CaloPprDisabledChannel
L1CaloPprDisabledChannel()
Definition: L1CaloPprDisabledChannel.cxx:12
ChanDeadErrorCode
ChanDeadErrorCode class for L1Calo error codes Adapted from /LVL1/l1calo/coolL1Calo/coolL1Calo/ChanDe...
Definition: ChanDeadErrorCode.h:20
L1CaloPprDisabledChannel::m_calibErrorCode
ChanCalibErrorCode m_calibErrorCode
Definition: L1CaloPprDisabledChannel.h:61
L1CaloPprDisabledChannel::m_bMasked
bool m_bMasked
Definition: L1CaloPprDisabledChannel.h:63
L1CaloPprDisabledChannel::calibErrorCode
ChanCalibErrorCode calibErrorCode(void) const
Definition: L1CaloPprDisabledChannel.h:41
L1CaloPprDisabledChannel::m_deadErrorCode
ChanDeadErrorCode m_deadErrorCode
Definition: L1CaloPprDisabledChannel.h:62
ChanDeadErrorCode::chanValid
bool chanValid() const
Definition: ChanDeadErrorCode.h:62
L1CaloPprDisabledChannel::disabledBits
unsigned int disabledBits() const
Definition: L1CaloPprDisabledChannel.h:56
merge.output
output
Definition: merge.py:17
L1CaloPprDisabledChannel::noiseCut
unsigned int noiseCut() const
Definition: L1CaloPprDisabledChannel.h:53
ChanDeadErrorCode.h
L1CaloPprDisabledChannel::m_noiseCut
unsigned int m_noiseCut
Definition: L1CaloPprDisabledChannel.h:64
L1CaloPprDisabledChannel::m_disabledBits
unsigned int m_disabledBits
Definition: L1CaloPprDisabledChannel.h:65
L1CaloPprDisabledChannel::deadErrorCode
ChanDeadErrorCode deadErrorCode(void) const
Definition: L1CaloPprDisabledChannel.h:44
L1CaloCoolChannelId
Definition: L1CaloCoolChannelId.h:10
L1CaloPprDisabledChannel::isMasked
void isMasked(bool isMasked)
Definition: L1CaloPprDisabledChannel.h:48
L1CaloPprDisabledChannel::~L1CaloPprDisabledChannel
~L1CaloPprDisabledChannel()=default
L1CaloPprDisabledChannel::isDead
bool isDead(void) const
Definition: L1CaloPprDisabledChannel.h:50
ChanCalibErrorCode.h
L1CaloPprDisabledChannel::channelId
L1CaloCoolChannelId channelId(void) const
Definition: L1CaloPprDisabledChannel.h:39
L1CaloPprDisabledChannel::isMasked
bool isMasked(void) const
Definition: L1CaloPprDisabledChannel.h:47
L1CaloPprDisabledChannel::hasCalib
bool hasCalib(void) const
Definition: L1CaloPprDisabledChannel.h:51