31 reader.
open(
"c_sim.slcio" ) ;
35 if(
nullptr ==
event ) {
38 auto colnames =
event->getCollectionNames() ;
39 for(
auto colname : *colnames ) {
40 auto collection =
event->getCollection( colname ) ;
41 std::cout <<
"Event no " <<
event->getEventNumber() <<
", collection: type '" << collection->getTypeName() <<
"', name '" << colname <<
"'" <<
std::endl ;
Base exception class for LCIO - all other exceptions extend this.
void open(const std::string &filename)
Opens a file for reading (read-only).
void FAILED(const std::string &msg)
static constexpr int directAccess
Bit for direct access.
virtual const char * what() const noexcept
int main(int argc, char **argv)
Simple program that opens existing LCIO files and appends the records needed for direct access - if t...
Implementation of a LCReader for parallel processing use.
std::unique_ptr< EVENT::LCEvent > readNextEvent(int accessMode=EVENT::LCIO::READ_ONLY)
Reads the next event from the file.
static const std::string testname
static constexpr int lazyUnpack
Bit for lazy unpacking of event records.
void close()
Closes the output file/stream etc.