Exemple #1
0
    def __init__(self,inDic):
        JobTransform.__init__(self,                              
                              authors = [ Author('David Cote', '*****@*****.**')],
                              skeleton='PATJobTransforms/skeleton.MergeBS.py',
                              help = __doc__ )

        if not isinstance(inDic,dict):
            raise TypeError("inDic has %s but should be a dictionary." %type(inDic))

        #Default configuration?
        if inDic.has_key('defaultFromPositionalValues'):
            inDic=DefaultConfigFromSysArgv(ListOfDefaultPositionalKeys,inDic)

        from PATJobTransforms.ConfigDicUtils import AutoConfigureFromDic
        self.inDic=inDic
        AutoConfigureFromDic(self,inDic)
        return
Exemple #2
0
    def __init__(self, inDic, lastInChain=True):
        JobTransform.__init__(
            self,
            authors=[Author('Simon George', '*****@*****.**')],
            skeleton='PATJobTransforms/skeleton.runHLT.py',
            help=__doc__,
            lastInChain=lastInChain)

        if not isinstance(inDic, dict):
            raise TypeError("inDic has %s but should be a dictionary." %
                            type(inDic))

        from PATJobTransforms.ConfigDicUtils import AutoConfigureFromDic
        self.inDic = inDic
        AutoConfigureFromDic(self, inDic)

        #add other options and features
        self.add(SQLiteSupport())
Exemple #3
0
    def __init__(self, inDic):
        JobTransform.__init__(
            self,
            authors=[Author('Michiru Kaneda', '*****@*****.**')],
            skeleton='NTUPtoNTUPCore/skeleton.NTUPtoNTUP_trf.py',
            help=__doc__)

        if not isinstance(inDic, dict):
            raise TypeError("inDic has type '%s' but should be a dictionary." %
                            type(inDic))
        # Add tree_name to ConfigDic
        from PyJobTransformsCore.full_trfarg import BasicStringArg
        from PATJobTransforms.Configuration import AddToConfigDic

        def AddTreeName(trf, inDic):
            trf.add(BasicStringArg(name='tree_name'))

        AddToConfigDic('tree_name', AddTreeName)

        # Set tree_name if it is in arguments
        self.tree_name = ''
        if inDic.has_key('tree_name'):
            self.tree_name = inDic['tree_name']
        else:
            self.tree_name = ''
            inDic['tree_name'] = ''

        # Add NTUPtoNTUP types to input files of ConfigDic
        self.AddNTUPToInputFilesOfConfigDic()

        # Check tree name from input file
        if self.tree_name == '': self.CheckTreeName(inDic)

        # Add NTUPtoNTUP types to output files of ConfigDic
        self.AddNTUPToOutputFilesOfConfigDic()

        # set tree_name in arguments
        inDic['tree_name'] = self.tree_name

        # Auto Configure From Dictionary
        from PATJobTransforms.ConfigDicUtils import AutoConfigureFromDic
        self.inDic = inDic
        AutoConfigureFromDic(self, inDic)
    def __init__(self,
                 inDic,
                 authors,
                 skeleton,
                 help,
                 name="default",
                 lastInChain=True):
        JobTransform.__init__(self,
                              name=name,
                              authors=authors,
                              skeleton=skeleton,
                              help=help,
                              lastInChain=lastInChain)

        if not isinstance(inDic, dict):
            raise TypeError("inDic has type '%s' but should be a dictionary." %
                            type(inDic))

        from PATJobTransforms.ConfigDicUtils import AutoConfigureFromDic
        self.inDic = inDic
        AutoConfigureFromDic(self, inDic)
Exemple #5
0
    def __init__(self, inDic, lastInChain=True):
        JobTransform.__init__(
            self,
            authors=[Author('David Cote', '*****@*****.**')],
            skeleton='PATJobTransforms/skeleton.MergePool.py',
            help=__doc__,
            lastInChain=lastInChain)

        if not isinstance(inDic, dict):
            raise TypeError("inDic has %s but should be a dictionary." %
                            type(inDic))

        from PATJobTransforms.ConfigDicUtils import AutoConfigureFromDic
        self.inDic = inDic
        # Look to see if we should use the fast hybrid POOL merger (default)
        if self.inDic.get('fastPoolMerge', 'true').lower() == 'true':
            print "Using hybrid merge - will skip all events with athena and merge later."
            # This needs to become a run option, so set it early
            self.inDic['skipEvents'] = 10000000
            # This must be really set to trigger the correct JO fragments for fast merge
            self.inDic['fastPoolMerge'] = 'true'
        AutoConfigureFromDic(self, inDic)

        self._addPostRunAction(self, prepend=True)