Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:44

0001 #!/bin/tcsh
0002 
0003 set inputpoolheader=templates/Pool_header.fragment
0004 set inputbtagheader=templates/Btag_header.fragment
0005 set inputtestheader=templates/Test_header.fragment
0006 
0007 set inputpoolheader=templates/Pool_footer.fragment
0008 #set inputbtagheader=templates/Btag_footer.fragment
0009 set inputtestheader=templates/Test_footer.fragment
0010 
0011 set outputfragname=Pool_template.py
0012 set outputbtagfragname=Btag_template.py
0013 set outputtestfragname=Test_template.py
0014 
0015 
0016 #Make our directories in order!
0017 mkdir DBs
0018 mkdir ship
0019 mkdir -p testOnline/text
0020 mkdir -p test/text
0021 
0022 #Remove any remaining db making code
0023 rm -f tmp.py
0024 
0025 #For a set of measurements we want a unique name
0026 #set setName=btagTtbarWp
0027 set setName=btagTtbarDiscrim
0028 #set setName=btagMuJetsWp
0029 #set setName=btagMistagABCD
0030 #set setName=btagMistagAB
0031 #set setName=btagMistagC
0032 #set setName=btagMistagD
0033 
0034 
0035 #Unique version number for DB
0036 set version=v9
0037 cat templates/Pool_pre.fragment | sed "s#SETNAME#$setName#g"  > Pool_$setName.py
0038 cat templates/Btag_pre.fragment > Btag_$setName.py
0039 
0040 #set tag=PerformancePayloadFromTable
0041 set tag=PerformancePayloadFromBinnedTFormula
0042 
0043 #"mistag" measurements go here
0044 
0045 
0046 
0047 #Create a single measurement with ./makeSingle.csh <file path> <measurement name> <set name>
0048 # ./makeSingle.csh BTAG/mujets_wp/BTAGCSVL.txt MUJETSWPBTAGCSVL $setName $version $tag
0049 # ./makeSingle.csh BTAG/mujets_wp/BTAGCSVM.txt MUJETSWPBTAGCSVM $setName $version $tag
0050 # ./makeSingle.csh BTAG/mujets_wp/BTAGCSVT.txt MUJETSWPBTAGCSVT $setName $version $tag
0051 # ./makeSingle.csh BTAG/mujets_wp/BTAGJPL.txt MUJETSWPBTAGJPL $setName $version $tag
0052 # ./makeSingle.csh BTAG/mujets_wp/BTAGJPM.txt MUJETSWPBTAGJPM $setName $version $tag
0053 # ./makeSingle.csh BTAG/mujets_wp/BTAGJPT.txt MUJETSWPBTAGJPT $setName $version $tag
0054 # ./makeSingle.csh BTAG/mujets_wp/BTAGTCHPT.txt MUJETSWPBTAGTCHPT $setName $version $tag
0055 
0056  ./makeSingle.csh BTAG/ttbar/BTAGCSV.txt TTBARDISCRIMBTAGCSV $setName $version $tag
0057  ./makeSingle.csh BTAG/ttbar/BTAGJP.txt TTBARDISCRIMBTAGJP $setName $version $tag
0058  ./makeSingle.csh BTAG/ttbar/BTAGTCHP.txt TTBARDISCRIMBTAGTCHP $setName $version $tag
0059 
0060 
0061 ####################
0062 ###
0063 ### make sure to change write_template.py for WP's and not formula
0064 ###
0065 ###################
0066 
0067 # ./makeSingle.csh BTAG/ttbar_wp/BTAGCSVL.txt TTBARWPBTAGCSVL $setName $version $tag
0068 # ./makeSingle.csh BTAG/ttbar_wp/BTAGCSVM.txt TTBARWPBTAGCSVM $setName $version $tag
0069 # ./makeSingle.csh BTAG/ttbar_wp/BTAGCSVT.txt TTBARWPBTAGCSVT $setName $version $tag
0070 # ./makeSingle.csh BTAG/ttbar_wp/BTAGJPL.txt TTBARWPBTAGJPL $setName $version $tag
0071 # ./makeSingle.csh BTAG/ttbar_wp/BTAGJPM.txt TTBARWPBTAGJPM $setName $version $tag
0072 # ./makeSingle.csh BTAG/ttbar_wp/BTAGJPT.txt TTBARWPBTAGJPT $setName $version $tag
0073 # ./makeSingle.csh BTAG/ttbar_wp/BTAGTCHPT.txt TTBARWPBTAGTCHPT $setName $version $tag
0074 
0075 
0076 # cat templates/Pool_post.fragment | sed "s#SETNAME#$setName#g" >> Pool_$setName.py
0077 
0078 # set setName=mistag
0079 
0080 # cat templates/Pool_pre.fragment | sed "s#SETNAME#$setName#g"  > Pool_$setName.py
0081 # cat templates/Btag_pre.fragment > Btag_$setName.py
0082 
0083 # ./makeSingle.csh BTAG/SFlight/DataPeriod_ABCD/MISTAGCSVL.txt MISTAGCSVLABCD $setName $version $tag
0084 # ./makeSingle.csh BTAG/SFlight/DataPeriod_ABCD/MISTAGCSVM.txt MISTAGCSVMABCD $setName $version $tag
0085 # ./makeSingle.csh BTAG/SFlight/DataPeriod_ABCD/MISTAGCSVT.txt MISTAGCSVTABCD $setName $version $tag
0086 # ./makeSingle.csh BTAG/SFlight/DataPeriod_ABCD/MISTAGJPL.txt  MISTAGJPLABCD $setName $version $tag
0087 # ./makeSingle.csh BTAG/SFlight/DataPeriod_ABCD/MISTAGJPM.txt  MISTAGJPMABCD $setName $version $tag
0088 # ./makeSingle.csh BTAG/SFlight/DataPeriod_ABCD/MISTAGJPT.txt  MISTAGJPTABCD $setName $version $tag
0089 # ./makeSingle.csh BTAG/SFlight/DataPeriod_ABCD/MISTAGTCHPT.txt MISTAGTCHPTABCD $setName $version $tag
0090 
0091 # ./makeSingle.csh BTAG/SFlight/DataPeriod_AB/MISTAGCSVL.txt MISTAGCSVLAB $setName $version $tag
0092 # ./makeSingle.csh BTAG/SFlight/DataPeriod_AB/MISTAGCSVM.txt MISTAGCSVMAB $setName $version $tag
0093 # ./makeSingle.csh BTAG/SFlight/DataPeriod_AB/MISTAGCSVT.txt MISTAGCSVTAB $setName $version $tag
0094 # ./makeSingle.csh BTAG/SFlight/DataPeriod_AB/MISTAGJPL.txt  MISTAGJPLAB $setName $version $tag
0095 # ./makeSingle.csh BTAG/SFlight/DataPeriod_AB/MISTAGJPM.txt  MISTAGJPMAB $setName $version $tag
0096 # ./makeSingle.csh BTAG/SFlight/DataPeriod_AB/MISTAGJPT.txt  MISTAGJPTAB $setName $version $tag
0097 # ./makeSingle.csh BTAG/SFlight/DataPeriod_AB/MISTAGTCHPT.txt MISTAGTCHPTAB $setName $version $tag
0098 
0099 # ./makeSingle.csh BTAG/SFlight/DataPeriod_C/MISTAGCSVL.txt MISTAGCSVLC $setName $version $tag
0100 # ./makeSingle.csh BTAG/SFlight/DataPeriod_C/MISTAGCSVM.txt MISTAGCSVMC $setName $version $tag
0101 # ./makeSingle.csh BTAG/SFlight/DataPeriod_C/MISTAGCSVT.txt MISTAGCSVTC $setName $version $tag
0102 # ./makeSingle.csh BTAG/SFlight/DataPeriod_C/MISTAGJPL.txt  MISTAGJPLC $setName $version $tag
0103 # ./makeSingle.csh BTAG/SFlight/DataPeriod_C/MISTAGJPM.txt  MISTAGJPMC $setName $version $tag
0104 # ./makeSingle.csh BTAG/SFlight/DataPeriod_C/MISTAGJPT.txt  MISTAGJPTC $setName $version $tag
0105 # ./makeSingle.csh BTAG/SFlight/DataPeriod_C/MISTAGTCHPT.txt MISTAGTCHPTC $setName $version $tag
0106 
0107 # ./makeSingle.csh BTAG/SFlight/DataPeriod_D/MISTAGCSVL.txt MISTAGCSVLD $setName $version $tag
0108 # ./makeSingle.csh BTAG/SFlight/DataPeriod_D/MISTAGCSVM.txt MISTAGCSVMD $setName $version $tag
0109 # ./makeSingle.csh BTAG/SFlight/DataPeriod_D/MISTAGCSVT.txt MISTAGCSVTD $setName $version $tag
0110 # ./makeSingle.csh BTAG/SFlight/DataPeriod_D/MISTAGJPL.txt  MISTAGJPLD $setName $version $tag
0111 # ./makeSingle.csh BTAG/SFlight/DataPeriod_D/MISTAGJPM.txt  MISTAGJPMD $setName $version $tag
0112 # ./makeSingle.csh BTAG/SFlight/DataPeriod_D/MISTAGJPT.txt  MISTAGJPTD $setName $version $tag
0113 # ./makeSingle.csh BTAG/SFlight/DataPeriod_D/MISTAGTCHPT.txt MISTAGTCHPTD $setName $version $tag
0114 
0115 
0116 
0117 
0118 
0119 cat templates/Pool_post.fragment | sed "s#SETNAME#$setName#g" >> Pool_$setName.py
0120 
0121 
0122