7 {
10
12 store.setReader(&reader);
13
15 writer.registerForWrite("info");
16 writer.registerForWrite("mcparticles");
17 writer.registerForWrite("hits");
18 writer.registerForWrite("clusters");
19
21 for (unsigned i = 0; i < nEvents; ++i) {
22 if (i % 1000 == 0) {
23 std::cout << "reading event " << i << std::endl;
24 }
26
27 writer.writeEvent();
28
29 store.clear();
31 }
33 return 0;
34}
unsigned getEntries() const override
get the number of events available from this reader
podio::version::Version currentFileVersion() const override
Get the podio version with which the current file has been written.
void closeFile() override
void openFile(const std::string &filename) override
void endOfEvent() override
Prepare the reader to read the next event.
void processEvent(StoreT &store, int eventNum, podio::version::Version fileVersion)