3 process = cms.Process(
"SKIM")
5 process.configurationMetadata = cms.untracked.PSet(
6 version = cms.untracked.string(
'$Revision: 1.4 $'),
7 name = cms.untracked.string(
'$Source: /local/reps/CMSSW/CMSSW/DPGAnalysis/Skims/python/GOODCOLL_filter_cfg.py,v $'),
8 annotation = cms.untracked.string(
'Combined MinBias skim')
16 process.source = cms.Source(
"PoolSource",
17 fileNames = cms.untracked.vstring(
19 '/store/data/Run2010A/MinimumBias/RECO/v1/000/136/066/18F6DB82-5566-DF11-B289-0030487CAF0E.root'),
22 process.source.inputCommands = cms.untracked.vstring(
"keep *",
"drop *_MEtoEDMConverter_*_*",
"drop L1GlobalTriggerObjectMapRecord_hltL1GtObjectMap__HLT")
24 process.maxEvents = cms.untracked.PSet(
25 input = cms.untracked.int32(1000)
32 process.load(
'Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
33 process.load(
'Configuration/StandardSequences/GeometryIdeal_cff')
36 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
37 process.GlobalTag.globaltag =
'GR10_P_V6::All'
39 process.load(
"Configuration/StandardSequences/RawToDigi_Data_cff")
40 process.load(
"Configuration/StandardSequences/Reconstruction_cff")
41 process.load(
'Configuration/EventContent/EventContent_cff')
44 process.RECOEventContent.outputCommands.append(
"drop *_MEtoEDMConverter_*_*")
45 process.RECOEventContent.outputCommands.append(
"drop *_*_*_SKIM")
50 process.load(
'L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
51 process.load(
'L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
52 process.load(
'HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
57 process.L1T1coll=process.hltLevel1GTSeed.clone()
58 process.L1T1coll.L1TechTriggerSeeding = cms.bool(
True)
59 process.L1T1coll.L1SeedsLogicalExpression = cms.string(
'0 AND (40 OR 41) AND NOT (36 OR 37 OR 38 OR 39) AND NOT ((42 AND NOT 43) OR (43 AND NOT 42))')
61 process.l1tcollpath = cms.Path(process.L1T1coll)
63 process.primaryVertexFilter = cms.EDFilter(
"VertexSelector",
64 src = cms.InputTag(
"offlinePrimaryVertices"),
65 cut = cms.string(
"!isFake && ndof > 4 && abs(z) <= 15 && position.Rho <= 2"),
66 filter = cms.bool(
True),
70 process.noscraping = cms.EDFilter(
"FilterOutScraping",
71 applyfilter = cms.untracked.bool(
True),
72 debugOn = cms.untracked.bool(
False),
73 numtrack = cms.untracked.uint32(10),
74 thresh = cms.untracked.double(0.25)
77 process.selectHF = cms.EDFilter(
"SelectHFMinBias",
78 applyfilter = cms.untracked.bool(
True)
81 process.goodvertex=cms.Path(process.primaryVertexFilter+process.noscraping)
82 process.selecthf = cms.Path(process.selectHF)
84 process.collout = cms.OutputModule(
"PoolOutputModule",
85 fileName = cms.untracked.string(
'good_coll_reco.root'),
86 outputCommands = process.RECOEventContent.outputCommands,
87 dataset = cms.untracked.PSet(
88 dataTier = cms.untracked.string(
'RECO'),
89 filterName = cms.untracked.string(
'GOODCOLL')),
90 SelectEvents = cms.untracked.PSet(
91 SelectEvents = cms.vstring(
'goodvertex',
'l1tcollpath',
'selecthf')
97 process.options = cms.untracked.PSet(
98 wantSummary = cms.untracked.bool(
True)
101 process.outpath = cms.EndPath(process.collout)