 |
ATLAS Offline Software
|
Go to the documentation of this file.
23 static const char*
const APP_NAME =
"xAODFileReadTest";
26 #define R_CHECK( EXP ) \
28 const auto result = EXP; \
29 if( ! result.isSuccess() ) { \
30 Error( APP_NAME, XAOD_MESSAGE( "Failed to execute: %s" ), #EXP ); \
46 return StatusCode::FAILURE;
49 for(
const auto & ef_itr : *
ef ) {
62 ::TClass*
cl = ::TClass::GetClass( efe.
className().c_str(), kTRUE,
65 if(
cl->InheritsFrom(
"SG::IConstAuxStore" ) ) {
69 const std::type_info* ti =
cl->GetTypeInfo();
71 ::Warning(
"REventClass::loadInputObjects",
72 "Couldn't find std::type_info object for type %s "
77 static constexpr
bool METADATA =
false;
82 static constexpr
bool SILENT =
false;
84 Error(
"REventClass::loadInputObjects",
87 return StatusCode::FAILURE;
91 return StatusCode::SUCCESS;
102 ( ! strcmp(
argv[ 1 ],
"-h" ) ) ||
103 ( ! strcmp(
argv[ 1 ],
"--help" ) ) ) {
115 for(
int i = 1;
i <
argc; ++
i ) {
134 const Long64_t
entries =
event.getEntries();
140 XAOD_MESSAGE(
"Failed to load entry %i from file: %s" ),
151 static_cast< int >(
entry ),
static_cast< int >(
entries ) );
Tool for accessing xAOD files outside of Athena, version RNTuple.
StatusCode loadInputObjects()
Function loading all interface objects of the event.
StatusCode readFrom(TFile *file)
const EventFormat * inputEventFormat() const
Get information about the input objects.
POOL::TEvent event(POOL::TEvent::kClassAccess)
REvent()
Default constructor.
::StatusCode StatusCode
StatusCode definition for legacy code.
int main(int argc, char *argv[])
#define R_CHECK(EXP)
Helper macro.
const void * getInputObject(SG::sgkey_t key, const std::type_info &ti, bool silent) override
Function for retrieving an input object in a non-template way.
bool contains(const std::string &key)
Function checking if an object is available from the store.
Error
The different types of error that can be flagged in the L1TopoRDO.
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.