45 if (test ==
nullptr) {
46 cout <<
"Unable to load test" << endl;
51 if (!
xAOD::Init(testName.c_str()).isSuccess()) {
56 auto chain =
new TChain(
"CollectionTree");
57 chain->Add(gSystem->Getenv(
"ROOTCORE_TEST_FILE"));
61 if (!event.readFrom(chain).isSuccess()) {
66 ToolHandle<TrigConf::ITrigConfigTool> configHandle(&configTool);
67 configHandle->initialize();
70 trigDecTool.setProperty(
"ConfigTool",configHandle);
71 trigDecTool.setProperty(
"TrigDecisionKey",
"xTrigDecision");
75 test->setEventStore( &sgtevent );
78 size_t nEntries = chain->GetEntries();
79 for (
size_t entry = 0; entry < nEntries; entry++) {
80 event.getEntry(entry);
82 test->processEvent (trigDecTool);
86 return test->finalize();
Wrapper for TEvent to make it look like StoreGate.
Tool for accessing xAOD files outside of Athena.
@ kClassAccess
Access auxiliary data using the aux containers.
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.