Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:44

0001 from __future__ import print_function
0002 #
0003 # cfg file to run on L1 GT output file, with GCT and GMT EDM products included
0004 #
0005 
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 # process
0009 process = cms.Process('TestHLTLevel1GTSeed')
0010 
0011 ###################### user choices ######################
0012 # choose (pre)release
0013 useRelease = 'CMSSW_3_3_2'
0014 #useRelease = 'CMSSW_2_2_12'
0015 
0016 # choose the type of sample used (True for RelVal, False for data)
0017 useRelValSample = True 
0018 #useRelValSample=False 
0019 
0020 if useRelValSample == True :
0021     
0022     # 2_2_X
0023     #useGlobalTag = 'IDEAL_V12'
0024     #useGlobalTag='STARTUP_V11'
0025     
0026     # >= 3_3_2
0027     #useGlobalTag = 'MC_31X_V9'
0028     useGlobalTag = 'STARTUP31X_V8'
0029 
0030     # RelVals 
0031     useSample = 'RelValQCD_Pt_80_120'
0032     
0033 else :
0034     # < 2_2_X
0035     useGlobalTag = 'CRAFT_ALL_V11'
0036 
0037     # >= 3_1_0
0038     #useGlobalTag = 'CRAFT0831X_V1'
0039     #useGlobalTag = 'GR09_31X_V1P'
0040     #useGlobalTag = 'GR09_31X_V1H'
0041 
0042 # explicit choice of the L1 menu. 
0043 # Use:
0044 
0045 #    default menu from Global Tag: put l1Menu = ''
0046 l1Menu = ''
0047 
0048 #    other available choices (must be compatible with the Global Tag)
0049 #l1Menu = 'L1Menu_Commissioning2009_v0'
0050 #l1Menu = 'L1Menu_MC2009_v0'
0051 #l1Menu = 'L1Menu_startup2_v4'
0052 #l1Menu = 'L1Menu_2008MC_2E30'
0053 #l1Menu = 'myMenu'
0054 
0055 #    private menu (must edit the corresponding part in the menu list)  
0056 #    must be compatible with the Global Tag
0057   
0058 #l1Menu = 'myMenu'
0059 
0060 # change to True to use local files
0061 #     the type of file should match the choice of useRelValSample and useGlobalTag
0062 useLocalFiles = False 
0063 
0064 ###################### end user choices ###################
0065 
0066 
0067 # number of events to be processed and source file
0068 process.maxEvents = cms.untracked.PSet(
0069     input=cms.untracked.int32(50)
0070 )
0071 
0072 readFiles = cms.untracked.vstring()
0073 secFiles = cms.untracked.vstring() 
0074 process.source = cms.Source ('PoolSource', fileNames=readFiles, secondaryFileNames=secFiles)
0075 
0076 # type of sample used (True for RelVal, False for data)
0077 
0078 if useRelValSample == True :
0079     if useGlobalTag.count('IDEAL') or useGlobalTag.count('MC') :
0080         
0081         if (useRelease == 'CMSSW_3_3_2') and (useSample == 'RelValQCD_Pt_80_120') :
0082         
0083             dataset = cms.untracked.vstring('/RelValQCD_Pt_80_120/CMSSW_3_3_1-MC_31X_V9-v3/GEN-SIM-DIGI-RAW-HLTDEBUG')
0084             readFiles.extend( [
0085                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0003/56AFD3DD-9CC1-DE11-8FFD-0030487A18A4.root',
0086                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/E88CFADA-91C0-DE11-96DF-001617C3B77C.root',
0087                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/D8E1ADED-8BC0-DE11-82D5-003048D2BE12.root',
0088                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/CA13F138-8EC0-DE11-9F23-000423D9863C.root',
0089                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/B6C534D3-8FC0-DE11-9F50-0030487D1BCC.root',
0090                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/A462E332-8DC0-DE11-BB9B-003048D37514.root',
0091                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/9020564B-94C0-DE11-969E-003048D2C108.root',
0092                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/86997D62-8CC0-DE11-A87A-003048D375AA.root',
0093                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/563FAA76-8AC0-DE11-A5ED-000423D99614.root',
0094                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/4C14A1F9-90C0-DE11-899A-000423D94A20.root',
0095                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/3A0B5458-90C0-DE11-BF4A-000423DD2F34.root',
0096                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/38DDDF74-8BC0-DE11-BB04-000423D98DD4.root',
0097                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/22829BDB-8EC0-DE11-8096-001617C3B70E.root',
0098                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/1A002063-8FC0-DE11-B210-0030487D1BCC.root',
0099                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/1675A79E-92C0-DE11-A828-003048D2C0F0.root',
0100                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/0A6FE359-8AC0-DE11-971E-000423D98BC4.root',
0101                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_31X_V9-v3/0002/067C1188-89C0-DE11-8FDF-001617E30CC8.root' 
0102                 ] );
0103 
0104         elif (useRelease == 'CMSSW_2_2_12') and (useSample == 'RelValQCD_Pt_80_120') :
0105             
0106             dataset = cms.untracked.vstring('/RelValQCD_Pt_80_120/CMSSW_2_2_10_IDEAL_V12_v1/GEN-SIM-DIGI-RAW-HLTDEBUG')
0107             readFiles.extend( [
0108                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/FC798D81-CB3D-DE11-9FBF-001D09F290BF.root',
0109                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/F80D1F07-CA3D-DE11-B1ED-001617DBCF6A.root',
0110                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/F63FDCEB-CA3D-DE11-A3AD-0019B9F72BFF.root',
0111                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/E6B3876B-CD3D-DE11-9E0D-000423D99F1E.root',
0112                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/CE04F0D4-CC3D-DE11-8465-001D09F244DE.root',
0113                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/C43129D0-CA3D-DE11-BA1C-001D09F2A49C.root',
0114                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/B2F78729-CD3D-DE11-9019-001D09F24448.root',
0115                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/9CDE8A75-CB3D-DE11-98B0-001D09F2A690.root',
0116                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/96F539A1-CB3D-DE11-9B6B-001D09F25217.root',
0117                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/94EB24CC-CB3D-DE11-A4D8-0019DB29C614.root',
0118                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/94919798-C83D-DE11-B793-001D09F24F65.root',
0119                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/90979075-CD3D-DE11-9D71-001D09F28F0C.root',
0120                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/6A2DE1D5-CA3D-DE11-B058-001D09F23A84.root',
0121                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/5EE96B31-CB3D-DE11-819A-001D09F25442.root',
0122                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/2AC7ADD9-C83D-DE11-B4FF-001D09F2447F.root',
0123                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/149A729C-CA3D-DE11-AA49-001617C3B5D8.root',
0124                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/142EB962-CA3D-DE11-AAFA-001617C3B6C6.root',
0125                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/10C82EA9-043E-DE11-B745-001D09F29524.root',
0126                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/08A81316-CC3D-DE11-8500-001D09F2546F.root',
0127                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V12_v1/0003/06C016EB-C93D-DE11-9A07-001D09F23C73.root' 
0128             ] );
0129 
0130         else :
0131             print('Error: no files for sample ', useSample, ', (pre)release ', useRelease, ' and global tag ', useGlobalTag, ' defined.')    
0132             sys.exit()
0133 
0134         secFiles.extend([
0135             ])
0136 
0137     elif useGlobalTag.count('STARTUP') :
0138 
0139         if (useRelease == 'CMSSW_3_3_2') and (useSample == 'RelValQCD_Pt_80_120') :
0140         
0141             dataset = cms.untracked.vstring('/RelValQCD_Pt_80_120/CMSSW_3_3_1-STARTUP31X_V8-v3/GEN-SIM-DIGI-RAW-HLTDEBUG')
0142             readFiles.extend( [
0143                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0003/9014D885-9CC1-DE11-91C7-0030487A3232.root',
0144                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/F2E3DBC2-67C0-DE11-BCF6-000423D33970.root',
0145                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/E6FC5D14-6EC0-DE11-9263-000423D99394.root',
0146                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/E6871FE8-66C0-DE11-8C41-000423D6BA18.root',
0147                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/D8D07B2B-64C0-DE11-BBE9-003048D37580.root',
0148                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/A6BDBA47-67C0-DE11-9647-001617DBD230.root',
0149                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/A4A7B978-63C0-DE11-A83C-001617E30F48.root',
0150                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/A0155A61-66C0-DE11-885D-0030486733D8.root',
0151                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/90204993-68C0-DE11-992A-000423D98800.root',
0152                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/8AEF6F45-62C0-DE11-82A8-000423D99A8E.root',
0153                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/86EEBC99-61C0-DE11-A997-0030486780B8.root',
0154                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/842D2780-60C0-DE11-A1A0-000423D985B0.root',
0155                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/747C8377-64C0-DE11-AED5-003048D374F2.root',
0156                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/702C5A3A-65C0-DE11-AAC8-000423D98950.root',
0157                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/30E041B9-62C0-DE11-80A6-000423D6CA42.root',
0158                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/2EB6FA51-6AC0-DE11-B374-003048D373AE.root',
0159                 '/store/relval/CMSSW_3_3_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V8-v3/0002/00757FB9-65C0-DE11-B46A-001617DBCF6A.root'
0160                 ] );
0161 
0162                     
0163 
0164         elif (useRelease == 'CMSSW_2_2_12') and (useSample == 'RelValQCD_Pt_80_120') :
0165 
0166             dataset = cms.untracked.vstring('/RelValQCD_Pt_80_120/CMSSW_2_2_10_STARTUP_V11_v1/GEN-SIM-DIGI-RAW-HLTDEBUG')
0167             readFiles.extend( [
0168                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0003/1825DE62-043E-DE11-9AB7-001617C3B654.root',
0169                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/F2520292-863D-DE11-ACDF-001D09F2538E.root',
0170                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/F05F275A-893D-DE11-94B8-001D09F25217.root',
0171                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/D2855C5D-8A3D-DE11-8084-001D09F24D8A.root',
0172                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/AEAE2C43-893D-DE11-B3C0-001D09F24637.root',
0173                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/AE91E67A-873D-DE11-8BD6-001D09F297EF.root',
0174                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/AC1958A0-883D-DE11-96AE-001D09F29524.root',
0175                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/92706ABC-8B3D-DE11-A1E2-001D09F297EF.root',
0176                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/8EAE234C-8B3D-DE11-A87A-0019B9F72CC2.root',
0177                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/884EBAF1-873D-DE11-B5B7-001D09F291D2.root',
0178                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/68D12010-8C3D-DE11-BA50-001617C3B70E.root',
0179                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/68615FA2-8A3D-DE11-85AD-001D09F291D7.root',
0180                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/5C7DF99A-883D-DE11-BF37-001D09F2A465.root',
0181                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/52ED45CE-893D-DE11-A52E-001D09F24D4E.root',
0182                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/3AE45D80-863D-DE11-ADAA-00304879FA4A.root',
0183                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/164B8DC2-8B3D-DE11-A1BA-001617C3B654.root',
0184                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/14396117-8B3D-DE11-9A10-001D09F291D7.root',
0185                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/0EB74EF7-863D-DE11-AD5E-001D09F29597.root',
0186                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/026314A2-8A3D-DE11-8CB6-001D09F2447F.root',
0187                 '/store/relval/CMSSW_2_2_10/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP_V11_v1/0002/00081940-863D-DE11-8158-0019B9F6C674.root' 
0188             ] );
0189 
0190         else :
0191             print('Error: no files for sample ', useSample, ', (pre)release ', useRelease, ' and global tag ', useGlobalTag, ' defined.')    
0192             sys.exit()
0193 
0194                 
0195         secFiles.extend([
0196             ])
0197         
0198     else :
0199         print('Error: Global Tag ', useGlobalTag, ' not defined.')    
0200         sys.exit()
0201 
0202 else : 
0203 
0204     # CRAFT data FIXME
0205     dataset = ''
0206     
0207     readFiles.extend([
0208         ]);
0209 
0210     secFiles.extend([
0211         ])
0212 
0213 
0214 if useLocalFiles :
0215     readFiles = 'file:/afs/cern.ch/user/g/ghete/scratch0/CmsswTestFiles/test_HLTLevel1GTSeed_source.root'
0216 
0217 
0218 # load and configure modules via Global Tag
0219 # https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
0220 
0221 process.load('Configuration.StandardSequences.Geometry_cff')
0222 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0223 
0224 process.GlobalTag.globaltag = useGlobalTag+'::All'
0225 
0226 
0227 # explicit choice of the L1 menu, overwriting the Global Tag menu
0228 
0229 if l1Menu != '' :
0230     process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMenuConfig_cff')
0231     process.es_prefer_l1GtParameters = cms.ESPrefer('L1GtTriggerMenuXmlProducer','l1GtTriggerMenuXml')
0232     
0233     if useGlobalTag.count('IDEAL') or useGlobalTag.count('MC') :
0234         if l1Menu == 'L1Menu_MC2009_v2' :
0235             process.load('L1TriggerConfig.L1GtConfigProducers.Luminosity.lumi1031.L1Menu_MC2009_v2_L1T_Scales_20080922_Imp0_Unprescaled_cff')
0236 
0237         elif l1Menu == 'L1Menu_2008MC_2E30' :
0238             process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.lumi1030.L1Menu_2008MC_2E30_Unprescaled_cff")
0239         else :
0240             print('No such L1 menu: ', l1Menu, ' compatible with Global Tag ', useGlobalTag) 
0241         
0242     elif useGlobalTag.count('STARTUP') :
0243         if l1Menu == 'L1Menu_Commissioning2009_v0' :       
0244             process.load('L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_Commissioning2009_v0_L1T_Scales_20080926_startup_Imp0_Unprescaled_cff')
0245         elif l1Menu == 'myMenu' :
0246             #process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.lumi1030.L1Menu_2008MC_2E30_Unprescaled_cff")
0247             #process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup_v3_Unprescaled_cff")
0248             #process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup_v4_Unprescaled_cff")
0249             #process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup_v5_Unprescaled_cff")
0250             #process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup2_v1_Unprescaled_cff")
0251             #process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup2_v2_Unprescaled_cff")
0252             #process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup2_v3_Unprescaled_cff")
0253             process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup2_v4_Unprescaled_cff")
0254         else :
0255             print('No such L1 menu: ', l1Menu, ' compatible with Global Tag ', useGlobalTag) 
0256             
0257     elif useGlobalTag.count('CRAFT') :
0258         if l1Menu == 'L1Menu_Commissioning2009_v0' :       
0259             process.load('L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_Commissioning2009_v0_L1T_Scales_20080926_startup_Imp0_Unprescaled_cff')
0260         elif l1Menu == 'myMenu' :
0261             #process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup_v3_Unprescaled_cff")
0262             #process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup_v4_Unprescaled_cff")
0263             #process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup_v5_Unprescaled_cff")
0264             #process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup2_v1_Unprescaled_cff")
0265             #process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup2_v2_Unprescaled_cff")
0266             process.load("L1TriggerConfig.L1GtConfigProducers.Luminosity.startup.L1Menu_startup2_v3_Unprescaled_cff")
0267         else :
0268             print('No such L1 menu: ', l1Menu, ' compatible with Global Tag ', useGlobalTag) 
0269     else :
0270         print('Error: Global Tag ', useGlobalTag, ' not defined.')    
0271         sys.exit()
0272 
0273 else :
0274     print('   Using default L1 trigger menu from Global Tag ', useGlobalTag)    
0275       
0276 
0277 # Global Trigger emulator to produce the trigger object maps
0278 
0279 import L1Trigger.GlobalTrigger.gtDigis_cfi
0280 process.hltL1GtObjectMap = L1Trigger.GlobalTrigger.gtDigis_cfi.gtDigis.clone()
0281 
0282 
0283 # input tag for GMT readout collection: 
0284 #     gmtDigis = GMT emulator (default)
0285 #     l1GtUnpack     = GT unpacker (common GT/GMT unpacker)
0286 process.hltL1GtObjectMap.GmtInputTag = 'gtDigis'
0287 
0288 # input tag for GCT readout collections: 
0289 #     gctDigis = GCT emulator (default) 
0290 process.hltL1GtObjectMap.GctInputTag = 'gctDigis'
0291 
0292 # input tag for CASTOR record 
0293 #     castorL1Digis =  CASTOR
0294 #process.hltL1GtObjectMap.CastorInputTag = cms.InputTag("castorL1Digis")
0295     
0296 # technical triggers: a vector of input tags, one tag per each technical 
0297 # trigger producer 
0298 # 
0299 # by default: empty vector
0300     
0301 # Example:
0302 # TechnicalTriggersInputTags = cms.VInputTag(cms.InputTag('aTechTrigDigis'), 
0303 #                                            cms.InputTag('anotherTechTriggerDigis')),
0304 process.hltL1GtObjectMap.TechnicalTriggersInputTags = cms.VInputTag(cms.InputTag('bscTrigger'))
0305 
0306 # logical flag to produce the L1 GT DAQ readout record
0307 #     if true, produce the record (default)
0308 process.hltL1GtObjectMap.ProduceL1GtDaqRecord = False
0309     
0310 # logical flag to produce the L1 GT EVM readout record
0311 #     if true, produce the record (default)
0312 process.hltL1GtObjectMap.ProduceL1GtEvmRecord = False
0313 
0314 # logical flag to produce the L1 GT object map record
0315 #     if true, produce the record (default)
0316 #process.hltL1GtObjectMap.ProduceL1GtObjectMapRecord = False
0317 
0318 # logical flag to write the PSB content in the  L1 GT DAQ record
0319 #     if true, write the PSB content in the record (default)
0320 process.hltL1GtObjectMap.WritePsbL1GtDaqRecord = False
0321 
0322 # logical flag to read the technical trigger records
0323 #     if true, it will read via getMany the available records (default)
0324 process.hltL1GtObjectMap.ReadTechnicalTriggerRecords = True
0325 
0326 # number of "bunch crossing in the event" (BxInEvent) to be emulated
0327 # symmetric around L1Accept (BxInEvent = 0):
0328 #    1 (BxInEvent = 0); 3 (F 0 1) (standard record); 5 (E F 0 1 2) (debug record)
0329 # even numbers (except 0) "rounded" to the nearest lower odd number
0330 # negative value: emulate TotalBxInEvent as given in EventSetup  
0331 process.hltL1GtObjectMap.EmulateBxInEvent = 1
0332 
0333 # length of BST record (in bytes) from parameter set
0334 # negative value: take the value from EventSetup      
0335 process.hltL1GtObjectMap.BstLengthBytes = -1
0336 
0337 # L1 Extra
0338 process.load('L1Trigger.Configuration.L1Extra_cff')
0339 
0340 # replacing arguments for L1Extra
0341 process.l1extraParticles.muonSource = cms.InputTag('gtDigis')
0342 process.l1extraParticles.isolatedEmSource = cms.InputTag('gctDigis', 'isoEm')
0343 process.l1extraParticles.nonIsolatedEmSource = cms.InputTag('gctDigis', 'nonIsoEm')
0344 process.l1extraParticles.centralJetSource = cms.InputTag('gctDigis', 'cenJets')
0345 process.l1extraParticles.forwardJetSource = cms.InputTag('gctDigis', 'forJets')
0346 process.l1extraParticles.tauJetSource = cms.InputTag('gctDigis', 'tauJets')
0347 process.l1extraParticles.etTotalSource = cms.InputTag('gctDigis')
0348 process.l1extraParticles.etHadSource = cms.InputTag('gctDigis')
0349 process.l1extraParticles.etMissSource = cms.InputTag('gctDigis')
0350 process.l1extraParticles.htMissSource = cms.InputTag("gctDigis")
0351 process.l1extraParticles.hfRingEtSumsSource = cms.InputTag("gctDigis")
0352 process.l1extraParticles.hfRingBitCountsSource = cms.InputTag("gctDigis")
0353 process.l1extraParticles.ignoreHtMiss = cms.bool(False)
0354 process.l1extraParticles.centralBxOnly = cms.bool(False)
0355 
0356 # this module
0357 process.load('HLTrigger.HLTfilters.hltLevel1GTSeed_cfi')
0358  
0359 # replacing arguments for hltLevel1GTSeed
0360 
0361 # default: true
0362 #    seeding done via L1 trigger object maps, with objects that fired 
0363 #    only objects from the central BxInEvent (L1A) are used
0364 # if false:
0365 #    seeding is done ignoring if a L1 object fired or not, 
0366 #    adding all L1EXtra objects corresponding to the object types 
0367 #    used in all conditions from the algorithms in logical expression 
0368 #    for a given number of BxInEvent
0369 process.hltLevel1GTSeed.L1UseL1TriggerObjectMaps = cms.bool(False)
0370 #
0371 # option used forL1UseL1TriggerObjectMaps = False only
0372 # number of BxInEvent: 1: L1A=0; 3: -1, L1A=0, 1; 5: -2, -1, L1A=0, 1, 2
0373 process.hltLevel1GTSeed.L1NrBxInEvent = cms.int32(3)
0374 
0375 # seeding done via technical trigger bits, if value is 'True';
0376 # default: false (seeding via physics algorithms)
0377 #process.hltLevel1GTSeed.L1TechTriggerSeeding = True
0378 
0379 # seeding done with aliases for physics algorithms
0380 #process.hltLevel1GTSeed.L1UseAliasesForSeeding = cms.bool(False)
0381 
0382 # logical expression for the required L1 algorithms;
0383 # the algorithms are specified by name
0384 # allowed operators: 'AND', 'OR', 'NOT', '(', ')'
0385 #
0386 # by convention, 'L1GlobalDecision' logical expression means global decision
0387 # 
0388 
0389 logExpressionNumber = 7
0390 
0391 if logExpressionNumber == 0 :
0392     process.hltLevel1GTSeed.L1SeedsLogicalExpression = \
0393         'L1_SingleJet50'                                     # 0
0394 elif logExpressionNumber == 1 :        
0395     process.hltLevel1GTSeed.L1SeedsLogicalExpression = \
0396         'L1_SingleJet50U'                                    # 1
0397 elif logExpressionNumber == 2 :        
0398     process.hltLevel1GTSeed.L1SeedsLogicalExpression = \
0399         'L1_HTT200 OR L1_ETM20 OR L1_ETT60 OR L1_SingleEG15' # 2
0400 elif logExpressionNumber == 3 :        
0401     process.hltLevel1GTSeed.L1SeedsLogicalExpression = \
0402         'L1_HTT250 OR L1_HTT300 OR L1_SingleEG15'            # 3
0403 elif logExpressionNumber == 4 :        
0404     process.hltLevel1GTSeed.L1SeedsLogicalExpression = \
0405         'NOT L1_SingleEG15'                                  # 4
0406 elif logExpressionNumber == 5 :        
0407     process.hltLevel1GTSeed.L1SeedsLogicalExpression = \
0408         'L1_ZeroBias'                                        # 5
0409 elif logExpressionNumber == 6 :        
0410     process.hltLevel1GTSeed.L1SeedsLogicalExpression = \
0411         'L1_SingleEG15 AND L1_HTT300'                        # 6
0412 elif logExpressionNumber == 7 :        
0413     process.hltLevel1GTSeed.L1SeedsLogicalExpression = \
0414         'L1_SingleEG15 AND (L1_HTT100 OR L1_SingleMu0) OR L1_SingleJet6U' # 7
0415 elif logExpressionNumber == 8 :        
0416     process.hltLevel1GTSeed.L1SeedsLogicalExpression = \
0417         '(L1_SingleEG15 OR L1_QuadJet40) AND (L1_HTT300 AND NOT L1_SingleMu7)'  # 8
0418 elif logExpressionNumber == 9 :        
0419     process.hltLevel1GTSeed.L1SeedsLogicalExpression = \
0420         '(L1_SingleEG15 OR L1_QuadJet40) AND ((L1_HTT300 AND NOT L1_SingleMu7) OR NOT L1_SingleMu20)' # 9
0421 elif logExpressionNumber == 10 :        
0422     process.hltLevel1GTSeed.L1SeedsLogicalExpression = \
0423         'L1_SingleJet6U'                                     # 10
0424 elif logExpressionNumber == 11 :        
0425     process.hltLevel1GTSeed.L1SeedsLogicalExpression = \
0426         'L1_SingleJet6U'                                     # 11
0427 elif logExpressionNumber == 12 :        
0428     process.hltLevel1GTSeed.L1SeedsLogicalExpression = \
0429         'L1_IsoEG10_Jet6U_ForJet6U'                          # 12
0430 elif logExpressionNumber == 13 :        
0431     # for technical triggers, one specifies by bit number        
0432     process.hltLevel1GTSeed.L1SeedsLogicalExpression = \
0433         '1 AND 15 AND NOT (29 OR 55)'                        # 13
0434 elif logExpressionNumber == 14 :
0435     process.hltLevel1GTSeed.L1SeedsLogicalExpression = \
0436         '(L1_SingleEG15 OR L1_QuadJet6U) AND ((L1_HTT200 AND NOT L1_SingleMu7) OR NOT L1_SingleMu20)' # 14
0437 else :
0438     print('Error: no logical expression defined')    
0439 
0440     
0441 # InputTag for the L1 Global Trigger DAQ readout record
0442 #   GT Emulator = gtDigis
0443 #   GT Unpacker = l1GtUnpack
0444 #
0445 #   cloned GT unpacker in HLT = gtDigis
0446 #
0447 process.hltLevel1GTSeed.L1GtReadoutRecordTag = cms.InputTag('gtDigis')
0448     
0449 # InputTag for L1 Global Trigger object maps
0450 #   only the emulator produces the object maps
0451 #   GT Emulator = gtDigis
0452 #
0453 #   cloned GT emulator in HLT = l1GtObjectMap
0454 #
0455 process.hltLevel1GTSeed.L1GtObjectMapTag = cms.InputTag('hltL1GtObjectMap')
0456     
0457 # InputTag for L1 particle collections (except muon)
0458 #   L1 Extra = l1extraParticles
0459 #
0460 #process.hltLevel1GTSeed.L1CollectionsTag = cms.InputTag('l1extraParticles')
0461     
0462 # InputTag for L1 muon collection
0463 #process.hltLevel1GTSeed.L1MuonCollectionTag = cms.InputTag('l1extraParticles')
0464     
0465 # saveTagsfor AOD book-keeping
0466 #process.hltLevel1GTSeed.saveTags = cms.bool( True )
0467 
0468 
0469 # path to be run
0470 process.p = cms.Path(process.hltL1GtObjectMap * process.L1Extra * process.hltLevel1GTSeed)
0471 
0472 # services
0473 
0474 # Message Logger
0475 process.load('FWCore.MessageService.MessageLogger_cfi')
0476 process.MessageLogger.debugModules = ['hltLevel1GTSeed']
0477 process.MessageLogger.HLTLevel1GTSeed=dict()
0478 
0479 process.MessageLogger.cerr.threshold = 'DEBUG'
0480 #process.MessageLogger.cerr.threshold = 'INFO'
0481 #process.MessageLogger.cerr.threshold = 'WARNING'
0482 #process.MessageLogger.cerr.threshold = 'ERROR'
0483 
0484 process.MessageLogger.cerr.DEBUG = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0485 process.MessageLogger.cerr.INFO = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0486 process.MessageLogger.cerr.WARNING = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0487 process.MessageLogger.cerr.ERROR = cms.untracked.PSet( limit = cms.untracked.int32(0) )
0488 
0489 process.MessageLogger.cerr.HLTLevel1GTSeed = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0490 
0491