ATLAS Offline Software
Trigger
TrigAlgorithms
TrigT2CaloCommon
src
TestCaloDataAccess.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef TrigT2CaloCommon_TestCaloDataAccess_h
5
#define TrigT2CaloCommon_TestCaloDataAccess_h
6
7
#include <string>
8
9
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
10
#include "
TrigT2CaloCommon/ITrigCaloDataAccessSvc.h
"
11
12
class
ParallelCallTest
;
13
19
class
TestCaloDataAccess
20
:
public
::AthReentrantAlgorithm
21
{
22
public
:
23
24
TestCaloDataAccess
(
const
std::string&
name
, ISvcLocator* pSvcLocator );
25
virtual
~TestCaloDataAccess
();
26
virtual
StatusCode
initialize
()
override
;
27
virtual
StatusCode
execute
(
const
EventContext& context)
const override
;
28
29
private
:
30
TestCaloDataAccess
();
31
void
emulateRoIs
(
const
EventContext& context, std::vector<ParallelCallTest*>& allRoIs )
const
;
32
void
emulateFixedRoIs
(
const
EventContext& context, std::vector<ParallelCallTest*>& allRoIs )
const
;
33
ServiceHandle<ITrigCaloDataAccessSvc>
m_dataAccessSvc
;
34
35
int
m_nFixedRoIs
;
36
bool
m_emulateRoIs
;
37
bool
m_emulateFixedRoIs
;
38
};
39
40
41
#endif
ParallelCallTest
Provides interface and helper functions to perform stress testing of the thread-safe code.
Definition:
ParallelCallTest.h:30
TestCaloDataAccess::emulateRoIs
void emulateRoIs(const EventContext &context, std::vector< ParallelCallTest * > &allRoIs) const
Definition:
TestCaloDataAccess.cxx:218
TestCaloDataAccess::~TestCaloDataAccess
virtual ~TestCaloDataAccess()
Definition:
TestCaloDataAccess.cxx:211
TestCaloDataAccess::m_emulateFixedRoIs
bool m_emulateFixedRoIs
Definition:
TestCaloDataAccess.h:37
TestCaloDataAccess::m_nFixedRoIs
int m_nFixedRoIs
Definition:
TestCaloDataAccess.h:35
TestCaloDataAccess::emulateFixedRoIs
void emulateFixedRoIs(const EventContext &context, std::vector< ParallelCallTest * > &allRoIs) const
Definition:
TestCaloDataAccess.cxx:277
TestCaloDataAccess::TestCaloDataAccess
TestCaloDataAccess()
TestCaloDataAccess::m_emulateRoIs
bool m_emulateRoIs
Definition:
TestCaloDataAccess.h:36
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition:
AthReentrantAlgorithm.h:83
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TestCaloDataAccess::execute
virtual StatusCode execute(const EventContext &context) const override
Definition:
TestCaloDataAccess.cxx:307
TestCaloDataAccess
Definition:
TestCaloDataAccess.h:21
AthReentrantAlgorithm.h
ITrigCaloDataAccessSvc.h
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
TestCaloDataAccess::initialize
virtual StatusCode initialize() override
Definition:
TestCaloDataAccess.cxx:213
TestCaloDataAccess::m_dataAccessSvc
ServiceHandle< ITrigCaloDataAccessSvc > m_dataAccessSvc
Definition:
TestCaloDataAccess.h:33
ServiceHandle< ITrigCaloDataAccessSvc >
Generated on Mon Dec 23 2024 21:19:25 for ATLAS Offline Software by
1.8.18