30 {
31
32
34
35
36 if( argc < 2 ) {
38 return 1;
39 }
40
41
43
44
46
47
49
50 configTool.setProperty( "OutputLevel", MSG::VERBOSE ).ignore();
51 if( configTool.initialize().isFailure() ) {
52 ::Error(
APP_NAME,
"Couldn't initialise the trigger configuration tool" );
53 return 1;
54 }
55
56
57 ToolHandle< TrigConf::ITrigConfigTool > handle( "xAODConfigTool" );
58 ToolHandleArray< TrigConf::ITrigConfigTool > handleArray{ "xAODConfigTool" };
59
60
61 if( handle.retrieve().isFailure() || handleArray.retrieve().isFailure() ) {
63 "Couldn't retrieve the tested tool through tool handles" );
64 return 1;
65 }
66
67
68 for(
int i = 1;
i <
argc; ++
i ) {
69
70
71 std::unique_ptr< ::TFile >
ifile( ::TFile::Open( argv[ i ],
"READ" ) );
73 ::Error(
APP_NAME,
"Couldn't open file: %s", argv[ i ] );
74 return 1;
75 }
76 ::Info(
APP_NAME,
"Opened file: %s", argv[ i ] );
77
78
80
81
82 const ::Long64_t
entries =
event.getEntries();
84
85
86 event.getEntry( entry );
87
88
89 if( entry < 10 ) {
90 ::Info(
APP_NAME,
"Processing entry %i",
static_cast< int >( entry ) );
91
92
93 ::Info(
APP_NAME,
"SMK: %i, L1PSK: %i, HLTPSK: %i",
94 static_cast< int >( configTool.masterKey() ),
95 static_cast< int >( configTool.lvl1PrescaleKey() ),
96 static_cast< int >( configTool.hltPrescaleKey() ) );
97 ::Info(
APP_NAME,
" Number of L1 items: %i",
98 static_cast< int >( configTool.ctpConfig()->menu().items().size() ) );
99 ::Info(
APP_NAME,
" Number of HLT chains: %i",
100 static_cast< int >( configTool.chains().size() ) );
102 configTool.ctpConfig()->print("", 100);
103 }
104
105
106 if( ! ( entry % 100 ) ) {
107 ::Info(
APP_NAME,
"Processed %i/%i events",
108 static_cast< int >( entry ),
109 static_cast< int >(
entries ) );
110 }
111 }
112 }
113
114
115 return 0;
116}
#define RETURN_CHECK(CONTEXT, EXP)
Helper macro for checking return codes in a compact form in the code.
Tool for accessing xAOD files outside of Athena.
@ kBranchAccess
Access auxiliary data branch-by-branch.
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.