#include <cstring>
#include <memory>
#include <vector>
#include <string>
#include <TFile.h>
#include <TError.h>
#include <TClass.h>
#include "xAODRootAccess/Init.h"
#include "xAODRootAccess/REvent.h"
#include "xAODRootAccess/tools/Message.h"
Go to the source code of this file.
|
| int | main (int argc, char *argv[]) |
|
| static const char *const | APP_NAME = "xAODFileReadTest" |
| | The name of the application.
|
◆ R_CHECK
Value: do { \
if( !
result.isSuccess() ) { \
return 1; \
} \
} while( 0 )
Helper macro.
Definition at line 26 of file xAODRNFileReadTest.cxx.
26#define R_CHECK( EXP ) \
27 do { \
28 const auto result = EXP; \
29 if( ! result.isSuccess() ) { \
30 Error( APP_NAME, XAOD_MESSAGE( "Failed to execute: %s" ), #EXP ); \
31 return 1; \
32 } \
33 } while( 0 )
◆ main()
| int main |
( |
int | argc, |
|
|
char * | argv[] ) |
Definition at line 95 of file xAODRNFileReadTest.cxx.
95 {
96
97
99
100
101 if( ( argc < 2 ) ||
102 ( ! strcmp( argv[ 1 ], "-h" ) ) ||
103 ( ! strcmp( argv[ 1 ], "--help" ) ) ) {
110 return 1;
111 }
112
113
115 for(
int i = 1;
i <
argc; ++
i ) {
117 }
118
119
121
122
123 for( const std::string& fileName : fileNames ) {
124
125
127
128
129
130
132
133
134 const Long64_t
entries =
event.getEntries();
136
137
138 if(
event.getEntry( entry ) < 0 ) {
140 XAOD_MESSAGE(
"Failed to load entry %i from file: %s" ),
141 static_cast< int >( entry ),
fileName.c_str() );
142 return 1;
143 }
144
145
147
148
149 if( ( entry % 1000 == 0 ) || ( entry +1 ==
entries ) ) {
151 static_cast< int >( entry ),
static_cast< int >(
entries ) );
152 }
153 }
154 }
155
156
157 return 0;
158}
Error
The different types of error that can be flagged in the L1TopoRDO.
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.
#define R_CHECK(EXP)
Helper macro.
◆ APP_NAME
| const char* const APP_NAME = "xAODFileReadTest" |
|
static |