00001 #!/usr/bin/env python 00002 # 00003 # Example filter for reconstructed data. 00004 # 00005 # Usage: 00006 # nuwa.py -o reconData.root DybAlg.ReconFilter fullData.root 00007 # 00008 00009 # Load GaudiPython 00010 from DybAlg.FilterAlgs import FilterAlg 00011 import GaudiKernel.SystemOfUnits as units 00012 00013 def configure(): 00014 return 00015 00016 def run(app): 00017 ''' 00018 Add filtering algorithm to the job 00019 ''' 00020 # Store all Recon data 00021 reconFilter = FilterAlg("ReconFilter") 00022 reconFilter.ClearStore = True # First filter should clear storage 00023 reconFilter.StorePath = "/Event/Rec/RecHeader" 00024 app.addAlgorithm(reconFilter)