Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /FWCore/Skeletons/scripts/mkedfltr is written in an unsupported language. File is not indexed.

0001 #!/usr/bin/env python3
0002 #-*- coding: utf-8 -*-
0003 #pylint: disable-msg=
0004 """
0005 File       : mkEDFilter
0006 Author     : Valentin Kuznetsov <vkuznet@gmail.com>
0007 Description: mkEDFilter code
0008 """
0009 
0010 # system modules
0011 import sys
0012 
0013 if  sys.version_info < (2, 6):
0014     raise Exception("This script requires python 2.6 or greater")
0015 
0016 # package modules
0017 from FWCore.Skeletons.cms import generate, config
0018 
0019 def pkg_help():
0020     "mkEDFilter help function"
0021     msg  = '\nmkedfltr script generates CMS EDFilter code'
0022     msg += '\nUsage  : mkFilter MyFilter -author "FirstName LastName"'
0023     msg += '\nOutput : '
0024     msg += """
0025         MyFilter/
0026         |  plugins/
0027         |  |-- BuildFile.xml
0028         |  |-- MyFilter.cc
0029         |  python/
0030         |  test/
0031         |  doc/
0032         """
0033     msg += '\nExample:'
0034     msg += '\n        # create new EDFilter code'
0035     msg += '\n        mkFilter MyFilter'
0036     msg += '\n        # create new EDFilter code with given author'
0037     msg += '\n        mkFilter MyFilter -author "First Last"'
0038     msg += '\n'
0039     return msg
0040 
0041 if __name__ == '__main__':
0042     generate(config('EDFilter', pkg_help()))