| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Example Namespace Reference


Functions

def configure
def run

Function Documentation

def Example::configure (   argv = []  ) 

Definition at line 10 of file Example.py.

00010                         :
00011 
00012     from SmartFilter.SmartFilterConf import SmartFilterAlg
00013     # Make a new filter and give it a name
00014     exampleFilter = SmartFilterAlg("exampleFilter")
00015     # The first filter should clean all output data
00016 
00017     #   (Subsequent filters should have this set to 'False')
00018     exampleFilter.ClearAll = True
00019 
00020     # Specify the data you wish to filter
00021     exampleFilter.KeepLocation = "/Event/Rec/AdSimple"
00022 
00023     # Optionally specify a prescale fraction between 0 and 1
00024     # exampleFilter.Prescale = 0.1
00025 
00026     # Specify if you wish to keep 'Parent' headers of this data.
00027     # The inputHeaders will be recursively searched for data to keep.
00028     #
00029     # Keep parent headers at any path
00030     #  exampleFilter.KeepAllParents = True
00031     #
00032     # Keep only parents at specific paths
00033     #  exampleFilter.KeepParents = ["/Event/Readout/ReadoutHeader",
00034     #                               "/Event/CalibReadout/CalibReadoutHeader"]
00035     #
00036     # Apply an additional prescale to parent headers
00037     #  exampleFilter.ParentPrescale = 0.01
00038 
00039     # Specify if you wish to keep 'Child' headers of this data.  The
00040     # filter will attempt to associate and keep children of the
00041     # filtered data.
00042     # 
00043     # Keep all child headers at any path
00044     #  exampleFilter.KeepAllChildren = True
00045     #
00046     # Keep only parents at specific paths
00047     #  exampleFilter.KeepChildren = ["/Event/Tags/MyTag",
00048     #                                "/Event/UserData/MyData"]
00049     #
00050     # Apply an additional prescale to parent headers
00051     #  exampleFilter.ChildrenPrescale = 0.01
00052     #
00053     # Keep a history of recently kept headers.  This is used to help
00054     # associate children.  If the children move far away, you may
00055     # need to increase the search range
00056     #  exampleFilter.MaxKeptHistory = 5
00057 
00058     from Gaudi.Configuration import ApplicationMgr
00059     app = ApplicationMgr()
00060     app.TopAlg.append(exampleFilter)
00061     
def run(app):

def Example::run (   app  ) 

Definition at line 62 of file Example.py.

00062             :
00063     pass
    pass

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:38:49 2011 for SmartFilter by doxygen 1.4.7