Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 30 of file xAODTrigConfReadTest.cxx.
50 configTool.setProperty(
"OutputLevel",
MSG::VERBOSE ).ignore();
51 if( configTool.initialize().isFailure() ) {
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" ) );
82 const ::Long64_t
entries =
event.getEntries();
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() ),
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);
106 if( ! (
entry % 100 ) ) {
107 ::Info(
APP_NAME,
"Processed %i/%i events",
108 static_cast< int >(
entry ),
109 static_cast< int >(
entries ) );