|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #include "Gaudi/Property.h"
13 ISvcLocator* pSvcLocator ) :
22 return StatusCode::SUCCESS;
26 return StatusCode::SUCCESS;
45 for (
auto& rob:
robs ) {
46 if ( rob->rod_lvl1_id() !=
m_lvl1ID )
65 ATH_MSG_DEBUG(
"Obtained event, global id: " <<
ev->global_id() <<
" lvl1 id: " <<
ev->lvl1_id() );
70 std::vector<ParallelCallTest*> requests;
71 std::vector<eformat::read::ROBFragment>
robs;
75 rng.seed = context.evt();
76 for (
size_t i = 0;
i < 8; ++
i ) {
79 ATH_MSG_DEBUG(
"Prepared parallel request with " <<
r->nrobs() <<
" robs" );
80 requests.push_back(
r );
86 ATH_MSG_ERROR(
"Concurrent ROB requests resulted in inconsistent information" );
95 if ( 1120005 == rob->rob_source_id() )
96 ATH_MSG_DEBUG(
"rob in the cache " << rob->rob_source_id() ); }
101 return StatusCode::SUCCESS;
Provides interface and helper functions to perform stress testing of the thread-safe code.
virtual ~ROBDataProviderMTTest()
OFFLINE_FRAGMENTS_NAMESPACE::FullEventFragment RawEvent
data type for reading raw event
virtual void firstCall() override
a method that will be called to obtain first results from the service It should set the reference qua...
An algorithm that can be simultaneously executed in multiple threads.
Very simple random numbers for regression testing.
StatusCode execute(const EventContext &context) const override
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
std::vector< const ROBF * > VROBFRAG
AthROOTErrorHandlerSvc * svc
static bool launchTests(size_t nrepeats, const std::vector< ParallelCallTest * > &tests)
Method to run launch number of tests in parallel (increasing the stress of the calle) It has a potent...
AskForROBs(const EventContext &context, const ServiceHandle< IROBDataProviderSvc > &svc, uint32_t lvl1ID, const std::vector< eformat::read::ROBFragment > &robs, size_t frac=8)
StatusCode finalize() override
std::vector< uint32_t > m_ROBIDs
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
virtual bool callAndCompare() const override
a function that performs request, and compares the results obtained with the result of the first exec...
Generator compatible with the C++11 STL UniformRandomNumberGenerator.
const ServiceHandle< IROBDataProviderSvc > & m_svc
StatusCode initialize() override