ATLAS Offline Software
TRT_BSErrContainer.h
Go to the documentation of this file.
1 //Dear emacs, this is -*-c++-*-
2 
3 /*
4  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 /***************************************************************************
8  InDetByteStreamErrors package
9  -----------------------------------------
10  ***************************************************************************/
11 
12 
13 #ifndef TRT_BYTESTREAMERRORS_TRT_BSERRCONTAINER_H
14 #define TRT_BYTESTREAMERRORS_TRT_BSERRCONTAINER_H
15 
16 #include "AthenaKernel/CLASS_DEF.h"
17 #include <stdint.h>
18 #include <set>
19 
21 
22  public:
23 
24  TRT_BSErrContainer() = default;
25 
26  //Getters, for entire sets:
27  const std::set<std::pair<uint32_t,uint32_t> > &
28  getRobErrorSet( void ) const { return m_rob_status_errors;}
29 
30  const std::set<uint32_t> & getMissingErrorSet( void ) const {
32 
33  const std::set<uint32_t> & getErrorErrorSet( void ) const {
34  return m_error_errors;}
35 
36  const std::set<uint32_t> & getSidErrorSet( void ) const {
37  return m_sid_errors;}
38 
39  const std::set<std::pair<uint32_t,uint32_t> >& getL1ErrorSet() const {
40  return m_l1id_pair_errors;}
41 
42  const std::set<std::pair<uint32_t,uint32_t> >& getBCIDErrorSet() const {
43  return m_bcid_pair_errors;}
44 
45  void add_missing_error(const uint32_t DTMROC_idx ) {
46  m_missing_errors.insert( DTMROC_idx );
47  }
48 
49  void add_error_error(const uint32_t DTMROC_idx ) {
50  m_error_errors.insert( DTMROC_idx );
51  }
52 
53  void add_sid_error(const uint32_t DTMROC_idx ) {
54  m_sid_errors.insert( DTMROC_idx );
55  }
56 
57 
58  void add_l1id_error( uint32_t DTMROC_idx, uint32_t l1id ) {
59  m_l1id_pair_errors.insert(std::make_pair( DTMROC_idx, l1id));
60  }
61 
62  void add_bcid_error( uint32_t DTMROC_idx, uint32_t bcid ) {
63  m_bcid_pair_errors.insert(std::make_pair( DTMROC_idx, bcid ));
64  }
65 
66  void add_rob_error( uint32_t robSourceId, uint32_t robStatus ) {
67  m_rob_status_errors.insert(std::make_pair(robSourceId, robStatus));
68  }
69 
70  private:
71  std::set<uint32_t> m_missing_errors;
72  std::set<uint32_t> m_error_errors;
73  std::set<uint32_t> m_sid_errors;
74 
75  std::set<std::pair<uint32_t,uint32_t> > m_l1id_pair_errors;
76  std::set<std::pair<uint32_t,uint32_t> > m_bcid_pair_errors;
77  std::set<std::pair<uint32_t,uint32_t> > m_rob_status_errors;
78 
79 };
80 
81 
82 
83 CLASS_DEF(TRT_BSErrContainer,1324847776,1)
84 
85 
86 #endif // TRT_BYTESTREAMERRORS_TRT_BSERRCONTAINER_H
TRT_BSErrContainer::getMissingErrorSet
const std::set< uint32_t > & getMissingErrorSet(void) const
Definition: TRT_BSErrContainer.h:33
TRT_BSErrContainer::add_rob_error
void add_rob_error(uint32_t robSourceId, uint32_t robStatus)
Definition: TRT_BSErrContainer.h:69
TRT_BSErrContainer::m_l1id_pair_errors
std::set< std::pair< uint32_t, uint32_t > > m_l1id_pair_errors
Definition: TRT_BSErrContainer.h:78
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TRT_BSErrContainer::add_error_error
void add_error_error(const uint32_t DTMROC_idx)
Definition: TRT_BSErrContainer.h:52
TRT_BSErrContainer::m_missing_errors
std::set< uint32_t > m_missing_errors
Definition: TRT_BSErrContainer.h:74
TRT_BSErrContainer::getRobErrorSet
const std::set< std::pair< uint32_t, uint32_t > > & getRobErrorSet(void) const
Definition: TRT_BSErrContainer.h:31
TRT_BSErrContainer
Definition: TRT_BSErrContainer.h:20
TRT_BSErrContainer::m_error_errors
std::set< uint32_t > m_error_errors
Definition: TRT_BSErrContainer.h:75
TRT_BSErrContainer::TRT_BSErrContainer
TRT_BSErrContainer()=default
TRT_BSErrContainer::add_l1id_error
void add_l1id_error(uint32_t DTMROC_idx, uint32_t l1id)
Definition: TRT_BSErrContainer.h:61
TRT_BSErrContainer::m_rob_status_errors
std::set< std::pair< uint32_t, uint32_t > > m_rob_status_errors
Definition: TRT_BSErrContainer.h:80
TRT_BSErrContainer::add_sid_error
void add_sid_error(const uint32_t DTMROC_idx)
Definition: TRT_BSErrContainer.h:56
TRT_BSErrContainer::add_missing_error
void add_missing_error(const uint32_t DTMROC_idx)
Definition: TRT_BSErrContainer.h:48
TRT_BSErrContainer::add_bcid_error
void add_bcid_error(uint32_t DTMROC_idx, uint32_t bcid)
Definition: TRT_BSErrContainer.h:65
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
TRT_BSErrContainer::getSidErrorSet
const std::set< uint32_t > & getSidErrorSet(void) const
Definition: TRT_BSErrContainer.h:39
TRT_BSErrContainer::m_bcid_pair_errors
std::set< std::pair< uint32_t, uint32_t > > m_bcid_pair_errors
Definition: TRT_BSErrContainer.h:79
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
TRT_BSErrContainer::getL1ErrorSet
const std::set< std::pair< uint32_t, uint32_t > > & getL1ErrorSet() const
Definition: TRT_BSErrContainer.h:42
TRT_BSErrContainer::m_sid_errors
std::set< uint32_t > m_sid_errors
Definition: TRT_BSErrContainer.h:76
TRT_BSErrContainer::getErrorErrorSet
const std::set< uint32_t > & getErrorErrorSet(void) const
Definition: TRT_BSErrContainer.h:36
CLASS_DEF.h
macros to associate a CLID to a type
TRT_BSErrContainer::getBCIDErrorSet
const std::set< std::pair< uint32_t, uint32_t > > & getBCIDErrorSet() const
Definition: TRT_BSErrContainer.h:45