ATLAS Offline Software
TRT_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 TRT_BYTESTREAM_CONDITIONSSVC_H
6 #define TRT_BYTESTREAM_CONDITIONSSVC_H
7 
15 //Update, June 2020, W.L:
16 //This service is replaced by the TRT_BSErrContainer object in SG
17 //It's only remaining purpose is to carry information from the
18 //TRT_TRTRawDataProvider to the TRT_TrgRIO_Maker with are both thread-unsafe
19 //legcay tools
20 
21 #include "GaudiKernel/IIncidentListener.h"
22 #include "GaudiKernel/IIncidentSvc.h"
23 
27 #include "GaudiKernel/ServiceHandle.h"
28 #include "StoreGate/StoreGateSvc.h"
29 
30 
31 
33 class TRT_ByteStream_ConditionsSvc : public extends<AthService,
34  ITRT_ConditionsSvc,
35  ITRT_ByteStream_ConditionsSvc,
36  IIncidentListener>
37 {
38 
39  public:
40 
41  TRT_ByteStream_ConditionsSvc( const std::string&, ISvcLocator* );
43 
44  virtual StatusCode initialize();
45  virtual StatusCode finalize();
46 
48 
49 
51 
55 
57 
58  void handle(const Incident&);
59 
60  void resetSets( void );
61  void resetCounts( void );
62 
64  const std::set<std::pair<uint32_t,uint32_t> > &
65  getL1idErrorSet( void );
66  const std::set<std::pair<uint32_t,uint32_t> > &
67  getBcidErrorSet( void );
68  const std::set<std::pair<uint32_t,uint32_t> > &getRobErrorSet( void );
69  const std::set<uint32_t> & getMissingErrorSet( void );
70  const std::set<uint32_t> & getErrorErrorSet( void );
71  const std::set<uint32_t> & getSidErrorSet( void );
72 
73  std::set<std::pair<uint32_t,uint32_t> > * getRodRobErrorSet( TRTByteStreamErrors::errorTypes ErrType );
74  std::set<std::pair<uint32_t,uint32_t> > * getIdErrorSet( TRTByteStreamErrors::errorTypes ErrType );
75  std::set<uint32_t> * getErrorSet( TRTByteStreamErrors::errorTypes ErrType );
76 
77  void add_l1id_error( uint32_t DTMROC_idx );
78  void add_bcid_error( uint32_t DTMROC_idx );
79  void add_missing_error( uint32_t DTMROC_idx );
80  void add_error_error( uint32_t DTMROC_idx );
81  void add_sid_error( uint32_t DTMROC_idx );
82 
83  void add_l1id_error( uint32_t DTMROC_idx, uint32_t l1id );
84  void add_bcid_error( uint32_t DTMROC_idx, uint32_t bcid );
85 
86  void add_rob_error( uint32_t robSourceId, uint32_t robStatus );
87 
88  private:
89 
91 
92  std::set<uint32_t> m_l1id_errors; // Deprecated
93  std::set<uint32_t> m_bcid_errors; // Deprecated
94  std::set<uint32_t> m_missing_errors;
95  std::set<uint32_t> m_error_errors;
96  std::set<uint32_t> m_sid_errors;
97 
98  std::set<std::pair<uint32_t,uint32_t> > m_l1id_pair_errors;
99  std::set<std::pair<uint32_t,uint32_t> > m_bcid_pair_errors;
100 
101  std::set<std::pair<uint32_t,uint32_t> > m_rob_status_errors;
102 
109 
116 
117  //TRT_BSIdErrContainer* m_IdCont;
118  //TRT_BSErrContainer* m_cont;
119 
120 };
121 
122 #endif // TRT_BYTESTREAM_CONDITIONSSVC_H
TRT_ByteStream_ConditionsSvc::getMissingErrorSet
const std::set< uint32_t > & getMissingErrorSet(void)
Definition: TRT_ByteStream_ConditionsSvc.cxx:224
TRT_ByteStream_ConditionsSvc::add_sid_error
void add_sid_error(uint32_t DTMROC_idx)
Definition: TRT_ByteStream_ConditionsSvc.cxx:285
TRT_ByteStream_ConditionsSvc::m_tot_num_missing_errors
long long m_tot_num_missing_errors
Definition: TRT_ByteStream_ConditionsSvc.h:112
TRT_ByteStream_ConditionsSvc::~TRT_ByteStream_ConditionsSvc
virtual ~TRT_ByteStream_ConditionsSvc()
Destructor //.
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TRT_ByteStream_ConditionsSvc::m_tot_num_bcid_errors
long long m_tot_num_bcid_errors
Definition: TRT_ByteStream_ConditionsSvc.h:111
TRT_ByteStream_ConditionsSvc::m_num_missing_errors
int m_num_missing_errors
Definition: TRT_ByteStream_ConditionsSvc.h:105
TRT_ByteStream_ConditionsSvc::m_num_bcid_errors
int m_num_bcid_errors
Definition: TRT_ByteStream_ConditionsSvc.h:104
TRT_ByteStream_ConditionsSvc::add_error_error
void add_error_error(uint32_t DTMROC_idx)
Definition: TRT_ByteStream_ConditionsSvc.cxx:277
ITRT_ByteStream_ConditionsSvc.h
Service for accessing TRT ByteStream conditions information.
TRT_ByteStream_ConditionsSvc::getL1idErrorSet
const std::set< std::pair< uint32_t, uint32_t > > & getL1idErrorSet(void)
Definition: TRT_ByteStream_ConditionsSvc.cxx:192
ITRT_ConditionsSvc.h
TRT_ByteStream_ConditionsSvc::getBcidErrorSet
const std::set< std::pair< uint32_t, uint32_t > > & getBcidErrorSet(void)
Definition: TRT_ByteStream_ConditionsSvc.cxx:202
TRT_ByteStream_ConditionsSvc::m_tot_num_robStatus_errors
long long m_tot_num_robStatus_errors
Definition: TRT_ByteStream_ConditionsSvc.h:115
TRT_ByteStream_ConditionsSvc::m_rob_status_errors
std::set< std::pair< uint32_t, uint32_t > > m_rob_status_errors
Definition: TRT_ByteStream_ConditionsSvc.h:101
TRT_ByteStream_ConditionsSvc::m_num_l1id_errors
int m_num_l1id_errors
Definition: TRT_ByteStream_ConditionsSvc.h:103
TRT_ByteStream_ConditionsSvc::m_tot_num_error_errors
long long m_tot_num_error_errors
Definition: TRT_ByteStream_ConditionsSvc.h:113
TRT_ByteStream_ConditionsSvc::finalize
virtual StatusCode finalize()
Finalize //.
Definition: TRT_ByteStream_ConditionsSvc.cxx:102
TRT_ByteStream_ConditionsSvc::getRobErrorSet
const std::set< std::pair< uint32_t, uint32_t > > & getRobErrorSet(void)
Definition: TRT_ByteStream_ConditionsSvc.cxx:213
TRT_ByteStream_ConditionsSvc::condSummaryStatus
InDet::TRT_CondFlag condSummaryStatus(const Identifier &)
Evaluation for TRT_ConditionsSummarySvc.
Definition: TRT_ByteStream_ConditionsSvc.cxx:93
TRT_ByteStream_ConditionsSvc::m_num_sid_errors
int m_num_sid_errors
Definition: TRT_ByteStream_ConditionsSvc.h:107
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRT_ByteStream_ConditionsSvc::resetSets
void resetSets(void)
Definition: TRT_ByteStream_ConditionsSvc.cxx:135
TRT_ByteStream_ConditionsSvc::m_num_robStatus_errors
int m_num_robStatus_errors
Definition: TRT_ByteStream_ConditionsSvc.h:108
TRT_ByteStream_ConditionsSvc::m_num_error_errors
int m_num_error_errors
Definition: TRT_ByteStream_ConditionsSvc.h:106
TRT_ByteStream_ConditionsSvc::m_bcid_errors
std::set< uint32_t > m_bcid_errors
Definition: TRT_ByteStream_ConditionsSvc.h:93
TRT_ByteStream_ConditionsSvc::m_missing_errors
std::set< uint32_t > m_missing_errors
Definition: TRT_ByteStream_ConditionsSvc.h:94
TRT_ByteStream_ConditionsSvc::add_rob_error
void add_rob_error(uint32_t robSourceId, uint32_t robStatus)
Definition: TRT_ByteStream_ConditionsSvc.cxx:318
TRT_ByteStream_ConditionsSvc::initialize
virtual StatusCode initialize()
Initialize //.
Definition: TRT_ByteStream_ConditionsSvc.cxx:50
TRT_ByteStream_ConditionsSvc::getSidErrorSet
const std::set< uint32_t > & getSidErrorSet(void)
Definition: TRT_ByteStream_ConditionsSvc.cxx:244
TRT_ByteStream_ConditionsSvc::add_missing_error
void add_missing_error(uint32_t DTMROC_idx)
Definition: TRT_ByteStream_ConditionsSvc.cxx:269
TRT_ByteStream_ConditionsSvc
Service for retrieving ByteStream conditions information.
Definition: TRT_ByteStream_ConditionsSvc.h:37
TRT_ByteStream_ConditionsSvc::m_l1id_pair_errors
std::set< std::pair< uint32_t, uint32_t > > m_l1id_pair_errors
Definition: TRT_ByteStream_ConditionsSvc.h:98
TRT_ByteStream_ConditionsSvc::getErrorErrorSet
const std::set< uint32_t > & getErrorErrorSet(void)
Definition: TRT_ByteStream_ConditionsSvc.cxx:234
TRT_ByteStream_ConditionsSvc::m_tot_num_sid_errors
long long m_tot_num_sid_errors
Definition: TRT_ByteStream_ConditionsSvc.h:114
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
TRT_ByteStream_ConditionsSvc::getNumberOfErrors
int getNumberOfErrors(TRTByteStreamErrors::errorTypes ErrType)
Definition: TRT_ByteStream_ConditionsSvc.cxx:169
TRT_ByteStream_ConditionsSvc::getIdErrorSet
std::set< std::pair< uint32_t, uint32_t > > * getIdErrorSet(TRTByteStreamErrors::errorTypes ErrType)
Definition: TRT_ByteStream_ConditionsSvc.cxx:346
TRT_ByteStream_ConditionsSvc::resetCounts
void resetCounts(void)
The following methods are for HLT, to get the numbers of errors per RoI, so won't necessarily match u...
Definition: TRT_ByteStream_ConditionsSvc.cxx:158
TRT_ByteStream_ConditionsSvc::getRodRobErrorSet
std::set< std::pair< uint32_t, uint32_t > > * getRodRobErrorSet(TRTByteStreamErrors::errorTypes ErrType)
Definition: TRT_ByteStream_ConditionsSvc.cxx:332
TRT_ByteStream_ConditionsSvc::m_sid_errors
std::set< uint32_t > m_sid_errors
Definition: TRT_ByteStream_ConditionsSvc.h:96
TRT_ByteStream_ConditionsSvc::TRT_ByteStream_ConditionsSvc
TRT_ByteStream_ConditionsSvc(const std::string &, ISvcLocator *)
Constructor //.
Definition: TRT_ByteStream_ConditionsSvc.cxx:22
TRT_ByteStream_ConditionsSvc::m_tot_num_l1id_errors
long long m_tot_num_l1id_errors
Definition: TRT_ByteStream_ConditionsSvc.h:110
TRT_ByteStream_ConditionsSvc::m_evtStore
ServiceHandle< StoreGateSvc > m_evtStore
Definition: TRT_ByteStream_ConditionsSvc.h:90
AthService.h
TRTByteStreamErrors::errorTypes
errorTypes
Definition: ITRT_ByteStream_ConditionsSvc.h:18
TRT_ByteStream_ConditionsSvc::getErrorSet
std::set< uint32_t > * getErrorSet(TRTByteStreamErrors::errorTypes ErrType)
Definition: TRT_ByteStream_ConditionsSvc.cxx:362
TRT_ByteStream_ConditionsSvc::add_l1id_error
void add_l1id_error(uint32_t DTMROC_idx)
InDet::TRT_CondFlag
TRT_CondFlag
status flag to be derived from the inheriting tool's conditions info
Definition: ITRT_ConditionsSvc.h:19
TRT_ByteStream_ConditionsSvc::handle
void handle(const Incident &)
Definition: TRT_ByteStream_ConditionsSvc.cxx:128
StoreGateSvc.h
TRT_ByteStream_ConditionsSvc::add_bcid_error
void add_bcid_error(uint32_t DTMROC_idx)
TRT_ByteStream_ConditionsSvc::m_l1id_errors
std::set< uint32_t > m_l1id_errors
Definition: TRT_ByteStream_ConditionsSvc.h:92
TRT_ByteStream_ConditionsSvc::m_bcid_pair_errors
std::set< std::pair< uint32_t, uint32_t > > m_bcid_pair_errors
Definition: TRT_ByteStream_ConditionsSvc.h:99
TRT_ByteStream_ConditionsSvc::m_error_errors
std::set< uint32_t > m_error_errors
Definition: TRT_ByteStream_ConditionsSvc.h:95
ServiceHandle< StoreGateSvc >
Identifier
Definition: IdentifierFieldParser.cxx:14