30int main(
int argc,
char* argv[] ) {
50 configTool.setProperty(
"OutputLevel", MSG::VERBOSE ).ignore();
52 ::Error(
APP_NAME,
"Couldn't initialise the trigger configuration tool" );
57 ToolHandle< TrigConf::ITrigConfigTool > handle(
"xAODConfigTool" );
58 ToolHandleArray< TrigConf::ITrigConfigTool > handleArray{
"xAODConfigTool" };
61 if( handle.retrieve().isFailure() || handleArray.retrieve().isFailure() ) {
63 "Couldn't retrieve the tested tool through tool handles" );
68 for(
int i = 1; i < argc; ++i ) {
71 std::unique_ptr< ::TFile > ifile( ::TFile::Open( argv[ i ],
"READ" ) );
73 ::Error(
APP_NAME,
"Couldn't open file: %s", argv[ i ] );
76 ::Info(
APP_NAME,
"Opened file: %s", argv[ i ] );
82 const ::Long64_t
entries =
event.getEntries();
83 for( ::Long64_t entry = 0; entry <
entries; ++entry ) {
86 event.getEntry( entry );
90 ::Info(
APP_NAME,
"Processing entry %i",
static_cast< int >( entry ) );
93 ::Info(
APP_NAME,
"SMK: %i, L1PSK: %i, HLTPSK: %i",
94 static_cast< int >( configTool.
masterKey() ),
97 ::Info(
APP_NAME,
" Number of L1 items: %i",
99 ::Info(
APP_NAME,
" Number of HLT chains: %i",
100 static_cast< int >( configTool.
chains().size() ) );
106 if( ! ( entry % 100 ) ) {
107 ::Info(
APP_NAME,
"Processed %i/%i events",
108 static_cast< int >( entry ),
109 static_cast< int >(
entries ) );
#define RETURN_CHECK(CONTEXT, EXP)
Helper macro for checking return codes in a compact form in the code.
virtual void print(const std::string &indent="", unsigned int detail=1) const override
const Menu & menu() const
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.