Warning, /FWCore/Skeletons/scripts/mkedanlzr 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 : mkedanlzr
0006 Author : Valentin Kuznetsov <vkuznet@gmail.com>
0007 Description: mkedanlzr 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 "mkedanlzr help function"
0021 msg = '\nmkedanlzr script generates CMS EDAnalyzer code'
0022 msg += '\nUsage : mkedanlzr MyAnalyzer -author "FirstName LastName"'
0023 msg += ' <example_histo>'
0024 msg += '\nOutput : '
0025 msg += """
0026 MyAnalyzer/
0027 | plugins/
0028 | |-- BuildFile.xml
0029 | |-- MyAnalyzer.cc
0030 | python/
0031 | |-- CfiFile_cfi.py
0032 | |-- ConfFile_cfg.py
0033 | test/
0034 | doc/
0035 """
0036 msg += '\nExample:'
0037 msg += '\n # create new EDAnalyzer code'
0038 msg += '\n mkedanlzr MyAnalyzer'
0039 msg += '\n # create new EDAnalyzer code with given author'
0040 msg += '\n mkedanlzr MyAnalyzer -author "First Last"'
0041 msg += '\n # create new EDAnalyzer code with histo example'
0042 msg += '\n mkedanlzr MyAnalyzer example_histo'
0043 msg += '\n'
0044 return msg
0045
0046 if __name__ == '__main__':
0047 generate(config('EDAnalyzer', pkg_help()))