ATLAS Offline Software
ITRT_ByteStream_ConditionsSvc.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ITRT_BYTESTREAM_CONDITIONSSVC_H
6 #define ITRT_BYTESTREAM_CONDITIONSSVC_H
7 
14 #include <set>
15 #include "GaudiKernel/IService.h"
16 
18  enum errorTypes {
25  };
26 }
27 
28 
29 class ITRT_ByteStream_ConditionsSvc : virtual public IService {
30  public:
31 
33 
34  virtual void resetSets( void ) = 0;
35  virtual void resetCounts( void ) = 0;
36 
37  /*
38  * !!! WARNING !!!
39  * getNumberOfErrors( int ) is an obsolete interface. It is not guaranteed to be maintained
40  * to even to be correct. It only supports error types defined as of 1 July 2009
41  */
42  int getNumberOfErrors( int ErrType);
43 
44  /*
45  * Use getNumberOfErrors( TRTByteStreamErrors::errorTypes ) instead!
46  */
48 
49  virtual const std::set<std::pair<uint32_t,uint32_t> > &getL1idErrorSet( void ) = 0;
50  virtual const std::set<std::pair<uint32_t,uint32_t> > &getBcidErrorSet( void ) = 0;
51  virtual const std::set<std::pair<uint32_t,uint32_t> > &getRobErrorSet( void ) = 0;
52  virtual const std::set<uint32_t> & getMissingErrorSet( void ) = 0;
53  virtual const std::set<uint32_t> & getErrorErrorSet( void ) = 0;
54  virtual const std::set<uint32_t> & getSidErrorSet( void ) = 0;
55 
56  virtual std::set<std::pair<uint32_t,uint32_t> > * getRodRobErrorSet( TRTByteStreamErrors::errorTypes ErrType ) = 0;
57  virtual std::set<std::pair<uint32_t,uint32_t> > * getIdErrorSet( TRTByteStreamErrors::errorTypes ErrType ) = 0;
58  virtual std::set<uint32_t> * getErrorSet( TRTByteStreamErrors::errorTypes ErrType ) = 0;
59 
60  virtual void add_missing_error( uint32_t DTMROC_idx ) = 0;
61  virtual void add_error_error( uint32_t DTMROC_idx ) = 0;
62  virtual void add_sid_error( uint32_t DTMROC_idx ) = 0;
63 
64  virtual void add_l1id_error( uint32_t DTMROC_idx, uint32_t l1id ) = 0;
65  virtual void add_bcid_error( uint32_t DTMROC_idx, uint32_t bcid ) = 0;
66 
67  virtual void add_rob_error( uint32_t robSourceId, uint32_t robStatus ) = 0;
68 
69 };
70 
71 /*
72  * !!! WARNING !!!
73  * getNumberOfErrors( int ) is an obsolete interface. It is not guaranteed to be maintained
74  * to even to be correct. It only supports error types defined as of 1 July 2009.
75  *
76  * Use getNumberOfErrors( TRTByteStreamErrors::errorTypes ) instead!
77  */
78 inline int
80 {
81  switch( ErrType )
82  {
83  case 0:
85  case 1:
87  case 2:
89  case 3:
91  case 4:
93  default:
94  return 0;
95  }
96 }
97 
98 
99 #endif // ITRT_BYTESTREAM_CONDITIONSSVC_H
ITRT_ByteStream_ConditionsSvc::add_rob_error
virtual void add_rob_error(uint32_t robSourceId, uint32_t robStatus)=0
ITRT_ByteStream_ConditionsSvc::add_l1id_error
virtual void add_l1id_error(uint32_t DTMROC_idx, uint32_t l1id)=0
ITRT_ByteStream_ConditionsSvc::getIdErrorSet
virtual std::set< std::pair< uint32_t, uint32_t > > * getIdErrorSet(TRTByteStreamErrors::errorTypes ErrType)=0
TRTByteStreamErrors::L1IDError
@ L1IDError
Definition: ITRT_ByteStream_ConditionsSvc.h:20
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TRTByteStreamErrors::ERRORError
@ ERRORError
Definition: ITRT_ByteStream_ConditionsSvc.h:22
TRTByteStreamErrors
Definition: ITRT_ByteStream_ConditionsSvc.h:17
ITRT_ByteStream_ConditionsSvc::add_error_error
virtual void add_error_error(uint32_t DTMROC_idx)=0
ITRT_ByteStream_ConditionsSvc::add_missing_error
virtual void add_missing_error(uint32_t DTMROC_idx)=0
TRTByteStreamErrors::RobStatusError
@ RobStatusError
Definition: ITRT_ByteStream_ConditionsSvc.h:24
ITRT_ByteStream_ConditionsSvc::add_sid_error
virtual void add_sid_error(uint32_t DTMROC_idx)=0
ITRT_ByteStream_ConditionsSvc::add_bcid_error
virtual void add_bcid_error(uint32_t DTMROC_idx, uint32_t bcid)=0
ITRT_ByteStream_ConditionsSvc::getRobErrorSet
virtual const std::set< std::pair< uint32_t, uint32_t > > & getRobErrorSet(void)=0
ITRT_ByteStream_ConditionsSvc::resetCounts
virtual void resetCounts(void)=0
ITRT_ByteStream_ConditionsSvc::getRodRobErrorSet
virtual std::set< std::pair< uint32_t, uint32_t > > * getRodRobErrorSet(TRTByteStreamErrors::errorTypes ErrType)=0
ITRT_ByteStream_ConditionsSvc::resetSets
virtual void resetSets(void)=0
TRTByteStreamErrors::BCIDError
@ BCIDError
Definition: ITRT_ByteStream_ConditionsSvc.h:19
ITRT_ByteStream_ConditionsSvc::getMissingErrorSet
virtual const std::set< uint32_t > & getMissingErrorSet(void)=0
ITRT_ByteStream_ConditionsSvc::getNumberOfErrors
int getNumberOfErrors(int ErrType)
Definition: ITRT_ByteStream_ConditionsSvc.h:79
ITRT_ByteStream_ConditionsSvc::getNumberOfErrors
virtual int getNumberOfErrors(TRTByteStreamErrors::errorTypes ErrType)=0
ITRT_ByteStream_ConditionsSvc::getSidErrorSet
virtual const std::set< uint32_t > & getSidErrorSet(void)=0
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
ITRT_ByteStream_ConditionsSvc::DeclareInterfaceID
DeclareInterfaceID(ITRT_ByteStream_ConditionsSvc, 1, 0)
ITRT_ByteStream_ConditionsSvc
Definition: ITRT_ByteStream_ConditionsSvc.h:29
ITRT_ByteStream_ConditionsSvc::getErrorErrorSet
virtual const std::set< uint32_t > & getErrorErrorSet(void)=0
TRTByteStreamErrors::MISSINGError
@ MISSINGError
Definition: ITRT_ByteStream_ConditionsSvc.h:21
TRTByteStreamErrors::errorTypes
errorTypes
Definition: ITRT_ByteStream_ConditionsSvc.h:18
TRTByteStreamErrors::SIDError
@ SIDError
Definition: ITRT_ByteStream_ConditionsSvc.h:23
ITRT_ByteStream_ConditionsSvc::getL1idErrorSet
virtual const std::set< std::pair< uint32_t, uint32_t > > & getL1idErrorSet(void)=0
ITRT_ByteStream_ConditionsSvc::getBcidErrorSet
virtual const std::set< std::pair< uint32_t, uint32_t > > & getBcidErrorSet(void)=0
ITRT_ByteStream_ConditionsSvc::getErrorSet
virtual std::set< uint32_t > * getErrorSet(TRTByteStreamErrors::errorTypes ErrType)=0