PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
Loading...
Searching...
No Matches
write.cpp File Reference
#include "podio/EventStore.h"
#include "podio/ROOTWriter.h"
#include "write_test.h"

Go to the source code of this file.

Functions

int main (int, char **)
 

Function Documentation

◆ main()

int main ( int  ,
char **   
)

Definition at line 5 of file write.cpp.

5 {
6 auto store = podio::EventStore();
7 podio::ROOTWriter writer("example.root", &store);
8 write(store, writer);
9
10 // start from a clean slate for the second file
11 auto store2 = podio::EventStore();
12 auto writer2 = podio::ROOTWriter("example1.root", &store2);
13 write(store2, writer2);
14}
void write(podio::EventStore &store, WriterT &writer)
Definition: write_test.h:28