ATLAS Offline Software
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 
11 
12 class ParallelCallTest;
13 
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:
31  void emulateRoIs( const EventContext& context, std::vector<ParallelCallTest*>& allRoIs ) const;
32  void emulateFixedRoIs( const EventContext& context, std::vector<ParallelCallTest*>& allRoIs ) const;
34 
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:221
TestCaloDataAccess::initialize
virtual StatusCode initialize() override
Definition: TestCaloDataAccess.cxx:213
TestCaloDataAccess::m_dataAccessSvc
ServiceHandle< ITrigCaloDataAccessSvc > m_dataAccessSvc
Definition: TestCaloDataAccess.h:33
ServiceHandle< ITrigCaloDataAccessSvc >