42 {
43
45 if (test == nullptr) {
46 cout << "Unable to load test" << endl;
47 return 1;
48 }
49
50
51 if (!
xAOD::Init(testName.c_str()).isSuccess()) {
52 return 1;
53 }
54
55
56 auto chain =
new TChain(
"CollectionTree");
57 chain->Add(gSystem->Getenv(
"ROOTCORE_TEST_FILE"));
58
59
61 if (!
event.readFrom(chain).isSuccess()) {
62 return 1;
63 }
64
65 xAODConfigTool configTool("xAODConfigTool");
66 ToolHandle<TrigConf::ITrigConfigTool> configHandle(&configTool);
67 configHandle->initialize();
68
70 trigDecTool.setProperty("ConfigTool",configHandle);
71 trigDecTool.setProperty("TrigDecisionKey","xTrigDecision");
72 trigDecTool.initialize();
73
74 asg::SgTEvent sgtevent(&event);
75 test->setEventStore( &sgtevent );
76
77
80 event.getEntry(entry);
81
82 test->processEvent (trigDecTool);
83 }
84
85
86 return test->finalize();
87 }
@ kClassAccess
Access auxiliary data using the aux containers.
ITest * GetTrigAnalysisTest(const string &name)
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.