-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathskim_edm_HLT_L1_bits_external.py
49 lines (40 loc) · 1.66 KB
/
skim_edm_HLT_L1_bits_external.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import FWCore.ParameterSet.Config as cms
process = cms.Process("SKIM")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
process.options = cms.untracked.PSet(
wantSummary = cms.untracked.bool( True )
)
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
from Configuration.AlCa.GlobalTag import GlobalTag as customiseGlobalTag
process.GlobalTag = customiseGlobalTag(process.GlobalTag, globaltag = '126X_dataRun3_HLT_v1')
import HLTrigger.HLTfilters.hltHighLevel_cfi as hlt
process.hltFilter = hlt.hltHighLevel.clone(
TriggerResultsTag = cms.InputTag('TriggerResults', '', 'MYHLT'),
HLTPaths = ['Dataset_HLTMonitor']
)
folder = "/eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STEAM/savarghe/PU70/"
import os
files = []
for f in os.listdir("/eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STEAM/savarghe/PU70/"):
files.append("file:"+folder+f)
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring(
'file:/eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/Tracking/DataValidation_HighPU/reHLT_GRunV188_part2/reHLT_GRunV188_112.root'
),
secondaryFileNames = cms.untracked.vstring(
files
),
)
process.load('L1Trigger.Skimmer.l1Filter_cfi')
process.l1Filter.algorithms = cms.vstring('L1_HTT125')
process.SkimFilter = cms.Path(
process.hltFilter
# +process.l1Filter
)
process.output = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string("aaa.root"),
SelectEvents = cms.untracked.PSet(
SelectEvents = cms.vstring('SkimFilter')
)
)