Table of Contents

How to write a miniDST

Idea

When analyzing a large sample of events, it may be useful to write a subsample of events (which may have passed) in a new DST file, which then can be used later on and is looped through faster than the original one.

Code

In your Python options-file, add:

from Configurables import InputCopyStream

InputCopyStream().Output = "DATAFILE='PFN:yourdatafile.dst' TYP='POOL_ROOTTREE' OPT='REC'"
YourSequence.Members.append(InputCopyStream())

If placed after a preselection, only the events fulfilling the preselection criteria, will be stored in the miniDST-file.

Notes