#!/usr/bin/env python

__doc__ = """Make DPD's from AOD's"""

from PATJobTransforms.BaseOfBasicTrf import BaseOfBasicTrf
from PyJobTransformsCore.trf import Author

class AODtoDPDJobTransform( BaseOfBasicTrf ):
    def __init__(self,inDic,lastInChain=True):
        BaseOfBasicTrf.__init__(self,inDic,
                                authors=[Author('David Cote','david.cote@cern.ch')],
                                skeleton='PATJobTransforms/skeleton.AODtoDPD_trf.py',
                                help = __doc__ , lastInChain=lastInChain)

    def matchEvents(self):
        self.logger().info("MatchEvents is not executed for DPD outputs.")
        return


#----------------------------------------------------------------------
if __name__ == '__main__':    
    #Special preparation for command-line
    import sys
    from PATJobTransforms.ArgDicTools import BuildDicFromCommandLine
    inDic=BuildDicFromCommandLine(sys.argv)
    #Construct and execute the transform
    trf = AODtoDPDJobTransform(inDic)          
    sys.exit(trf.exeArgDict(inDic).exitCode())

