Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

By default the entire event will be written out, except for any collections flagged as transient when they are added to the event.

Code Block
titletransient.java
List myCollection = new ArrayList();
// Fill collection
event.put("MyCollection",myCollection);
event.getMetaData(myCollection).setTransient(true);

In addition when creating an LCIO driver it is possible to specify either what collections should be written out, or which collections should not be written out.

Code Block
titlewriteOnly.java
LCIODriver writer = new LCIODriver("mcfast.slcio");
writer.getWriter().addWriteOnly("MCParticle");
writer.getWriter().addWriteOnly("Jets");
Code Block
titleignore.java
LCIODriver writer = new LCIODriver("mcfast2.slcio");
writer.getWriter().addIgnore("MCParticle");
writer.getWriter().addIgnore("Jets");