45 if (test ==
nullptr) {
46 cout <<
"Unable to load test" << endl;
51 if (!
xAOD::Init(testName.c_str()).isSuccess()) {
56 std::unique_ptr< TFile >
file( TFile::Open( gSystem->Getenv(
"ROOTCORE_TEST_FILE"),
"READ" ) );
62 cout <<
"cannot read from file: " <<
file << endl;
67 ToolHandle<TrigConf::ITrigConfigTool> configHandle(&configTool);
68 if (!configHandle->initialize().isSuccess())
return 1;
71 if (!trigDecTool.setProperty(
"ConfigTool",configHandle))
return 1;
72 if (!trigDecTool.setProperty(
"TrigDecisionKey",
"xTrigDecision"))
return 1;
76 test->setEventStore( &sgevent );
79 size_t nEntries =
event->getEntries();
80 for (
size_t entry = 0; entry < nEntries; entry++) {
81 event->getEntry(entry);
83 test->processEvent (trigDecTool);
87 return test->finalize();
Wrapper for Event to make it look like StoreGate.
static std::unique_ptr< Event > createAndReadFrom(TFile &file)
static method to create an Event object and readFrom a file, given by a TFile.
ITest * GetTrigAnalysisTest(const string &name)
int runTrigAnalysisTest(const std::string &testName)
Forward iterator to traverse the main components of the trigger configuration.
The common trigger namespace for trigger analysis tools.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.