Warning, /FWCore/Skeletons/scripts/mktsel 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 : mktsel
0006 Author : Valentin Kuznetsov <vkuznet@gmail.com>
0007 Description: mktsel 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 "mktsel help function"
0021 msg = '\nmktsel script generates CMS TSelector code'
0022 msg += '\nUsage : mktsel ProducerName -author "FirstName LastName"'
0023 msg += ' <example_track>'
0024 msg += '\nOutput : '
0025 msg += """
0026 MyTSel/
0027 |-- BuildFile.xml
0028 | src/
0029 | |-- MyTSel.cc
0030 | interface/
0031 | |-- MyTSel.h
0032 | |-- classes.h
0033 | |-- classes_def.xml
0034 """
0035 msg += '\nExample:'
0036 msg += '\n # create new TSelector code'
0037 msg += '\n mktsel MyTSel'
0038 msg += '\n # create new TSelector code with given author'
0039 msg += '\n mktsel MyTSel -author "First Last"'
0040 msg += '\n # create new TSelector code with myparticle example'
0041 msg += '\n mktsel MyTSel example_track'
0042 msg += '\n'
0043 return msg
0044
0045 if __name__ == '__main__':
0046 generate(config('TSelector', pkg_help()))