Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:48

0001 from UserCode.GPetrucc.muons.skimWithDecays import cms,process
0002 
0003 ##    ___                   _     ____        _        
0004 ##   |_ _|_ __  _ __  _   _| |_  |  _ \  __ _| |_ __ _ 
0005 ##    | || '_ \| '_ \| | | | __| | | | |/ _` | __/ _` |
0006 ##    | || | | | |_) | |_| | |_  | |_| | (_| | || (_| |
0007 ##   |___|_| |_| .__/ \__,_|\__| |____/ \__,_|\__\__,_|
0008 ##             |_|                                     
0009 ##
0010 process.source.fileNames = cms.untracked.vstring(
0011        #'/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-RECO/IDEAL_V9_v1/0003/94D3C1FC-F8C4-DD11-8A0D-0019DB29C5FC.root',
0012        '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-RECO/IDEAL_V9_v1/0004/585A91F3-41C5-DD11-AF3F-001617C3B5D8.root',
0013        '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-RECO/IDEAL_V9_v1/0004/88E0A226-42C5-DD11-BF2B-000423D98800.root',
0014        '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-RECO/IDEAL_V9_v1/0004/BAEC2746-E6C5-DD11-9602-000423D944FC.root',
0015        '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-RECO/IDEAL_V9_v1/0004/CA75BC21-42C5-DD11-AB16-000423D98634.root',
0016        '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-RECO/IDEAL_V9_v1/0004/DC13E4EF-41C5-DD11-9C4C-001617E30D0A.root',
0017        '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-RECO/IDEAL_V9_v1/0004/F20B67F5-41C5-DD11-B733-001617E30D06.root' 
0018 )
0019 ## process.source.secondaryFileNames = cms.untracked.vstring(
0020 ##         #'/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0003/6E1DA183-F6C4-DD11-BC9D-001617DBD5AC.root',
0021 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/0E154CEA-42C5-DD11-827D-001617E30CE8.root',
0022 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/12EE35A1-42C5-DD11-87DD-001617E30D12.root',
0023 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/288D5185-42C5-DD11-B53F-000423D6CA42.root',
0024 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/380462E8-42C5-DD11-BCE2-001617E30CA4.root',
0025 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/5C3701B6-42C5-DD11-8AE3-000423D992A4.root',
0026 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/5C3BA77F-42C5-DD11-BFFA-001617DBD288.root',
0027 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/7268217C-42C5-DD11-924D-001617E30F4C.root',
0028 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/86DD8C82-42C5-DD11-90A9-000423D985E4.root',
0029 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/8AF5B07E-42C5-DD11-A794-001617E30D40.root',
0030 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/A0E2C07F-42C5-DD11-A2C0-000423D6C8EE.root',
0031 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/A4C6E590-42C5-DD11-B514-000423D9853C.root',
0032 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/A81400E3-42C5-DD11-ADA4-001617C3B778.root',
0033 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/A8A2D07A-42C5-DD11-8185-00161757BF42.root',
0034 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/AE33E87B-42C5-DD11-93B3-001617C3B5F4.root',
0035 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/B289DFA2-42C5-DD11-9AC7-001617C3B6DC.root',
0036 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/B6D56BB7-42C5-DD11-947E-000423D6CAF2.root',
0037 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/B6E1EEB4-42C5-DD11-8018-001617C3B70E.root',
0038 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/BA2309A5-42C5-DD11-A63A-001617DBD224.root',
0039 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/CA4035EC-42C5-DD11-BC6A-001617C3B65A.root',
0040 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/CCA60DB1-42C5-DD11-8EB5-001617C3B6CE.root',
0041 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/D2E39685-42C5-DD11-83AE-001617C3B6CC.root',
0042 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/DAEFE955-42C5-DD11-9B11-001617E30F50.root',
0043 ##         '/store/relval/CMSSW_2_2_1/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v1/0004/F8B4DE55-42C5-DD11-82E6-001617E30F58.root'
0044 ## )
0045 process.maxEvents.input = -1
0046 process.maxEvents.output = cms.untracked.int32(20)
0047 
0048 ##    ____            _   _____     _                          __              __  __                       
0049 ##   |  _ \ ___  __ _| | |_   _| __(_) __ _  __ _  ___ _ __   / _| ___  _ __  |  \/  |_   _  ___  _ __  ___ 
0050 ##   | |_) / _ \/ _` | |   | || '__| |/ _` |/ _` |/ _ \ '__| | |_ / _ \| '__| | |\/| | | | |/ _ \| '_ \/ __|
0051 ##   |  _ <  __/ (_| | |   | || |  | | (_| | (_| |  __/ |    |  _| (_) | |    | |  | | |_| | (_) | | | \__ \
0052 ##   |_| \_\___|\__,_|_|   |_||_|  |_|\__, |\__, |\___|_|    |_|  \___/|_|    |_|  |_|\__,_|\___/|_| |_|___/
0053 ##                                    |___/ |___/                                                           
0054 ##
0055 process.muonTrigMatchHLTMu3.maxDeltaR = 0.7
0056 process.muonTrigMatchHLTMu3.maxDPtRel = 10.0
0057 process.muonTrigMatchHLTMu3.resolveAmbiguities = True
0058 process.muonTrigMatchHLTMu3.resolveByMatchQuality = True
0059 
0060 process.muonL1MatchSt = process.muonL1Match.clone(
0061     useTrack = cms.string('muon'),
0062     useState = cms.string('innermost'),
0063     setL1Label = cms.string('l1st'),
0064     setPropLabel = cms.string('propst')
0065 )
0066 process.patDefaultSequence.replace(process.muonL1Match, process.muonL1Match + process.muonL1MatchSt)
0067 process.allLayer1Muons.trigPrimMatch  += [ cms.InputTag("muonL1MatchSt"),  cms.InputTag("muonL1MatchSt","propagatedReco") ]
0068 
0069 process.allLayer1Muons.userData.userInts.src = cms.VInputTag(
0070     cms.InputTag("muonL1Match", "bx"),
0071     cms.InputTag("muonL1Match", "quality"),
0072     cms.InputTag("muonL1Match", "isolated"),
0073     cms.InputTag("muonL1MatchSt", "bx"),
0074     cms.InputTag("muonL1MatchSt", "quality"),
0075     cms.InputTag("muonL1MatchSt", "isolated"),
0076 )
0077 process.allLayer1Muons.userData.userFloats.src = cms.VInputTag(
0078     cms.InputTag("muonL1Match", "deltaR"),
0079     cms.InputTag("muonL1MatchSt", "deltaR"),
0080 )
0081 
0082 
0083 process.fishyMuons = cms.EDFilter("PATMuonSelector",
0084     src = cms.InputTag("selectedLayer1Muons"),
0085     cut = cms.string("standAloneMuon.isNonnull && !triggerMatchesByFilter('hltSingleMuPrescale3L3PreFiltered').empty() && triggerMatchesByFilter('l1st').empty()"),
0086     filter = cms.bool(True),
0087 )
0088 
0089 process.p *= process.fishyMuons
0090 
0091 ##     ___        _               _   
0092 ##    / _ \ _   _| |_ _ __  _   _| |_ 
0093 ##   | | | | | | | __| '_ \| | | | __|
0094 ##   | |_| | |_| | |_| |_) | |_| | |_ 
0095 ##    \___/ \__,_|\__| .__/ \__,_|\__|
0096 ##                   |_|              
0097 ##
0098 process.allLayer1Muons.embedTrack          = True
0099 process.allLayer1Muons.embedCombinedMuon   = True
0100 process.allLayer1Muons.embedStandAloneMuon = True
0101 process.out.outputCommands = cms.untracked.vstring(
0102     "drop *",
0103     'keep *_standAloneMuons_*_*', 'keep *_globalMuons_*_*',
0104     "keep *_selectedLayer1Muons_*_*",
0105     'keep l1extraL1MuonParticles_hltL1extraParticles_*_*',
0106     'keep *_patHLTMu3_*_*'
0107 )
0108 process.out.fileName = cms.untracked.string("/tmp/gpetrucc/testL1Sta.root")
0109