Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:47

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("SKIM")
0004 
0005 process.configurationMetadata = cms.untracked.PSet(
0006     version = cms.untracked.string('$Revision: 1.4 $'),
0007     name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/ZeroBiasPDSkim_cfg.py,v $'),
0008     annotation = cms.untracked.string('Combined ZeroBias skim')
0009 )
0010 # selection eff on 1000 events
0011 # file:/tmp/malgeri/ZB_vertex.root
0012 # /tmp/malgeri/ZB_vertex.root ( 45 events, 15799040 bytes )
0013 
0014 #
0015 #
0016 # This is for testing purposes.
0017 #
0018 #
0019 process.source = cms.Source("PoolSource",
0020                             fileNames = cms.untracked.vstring(
0021 # run 136066 lumi~500
0022 '/store/data/Run2010A/ZeroBias/RECO/v1/000/136/066/DE81B1E0-4866-DF11-A76D-0030487CD906.root'),
0023                            secondaryFileNames = cms.untracked.vstring(
0024 '/store/data/Run2010A/ZeroBias/RAW/v1/000/136/066/FE1DCAEF-3C66-DF11-A903-000423D98E30.root')
0025 )
0026 
0027 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(-1)
0031 )
0032 
0033 
0034 #------------------------------------------
0035 # Load standard sequences.
0036 #------------------------------------------
0037 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
0038 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
0039 
0040 
0041 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0042 process.GlobalTag.globaltag = 'GR10_P_V6::All' 
0043 
0044 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
0045 process.load("Configuration/StandardSequences/Reconstruction_cff")
0046 process.load('Configuration/EventContent/EventContent_cff')
0047 
0048 process.FEVTEventContent.outputCommands.append('drop *_MEtoEDMConverter_*_*')
0049 
0050 #
0051 #  Load common sequences
0052 #
0053 #process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
0054 #process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
0055 #process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
0056 
0057 ##################################good vertex############################################
0058 
0059 
0060 process.primaryVertexFilter = cms.EDFilter("VertexSelector",
0061    src = cms.InputTag("offlinePrimaryVertices"),
0062    cut = cms.string("!isFake && ndof > 4 && abs(z) <= 15 && position.Rho <= 2"), # tracksSize() > 3 for the older cut
0063    filter = cms.bool(True),   # otherwise it won't filter the events, just produce an empty vertex collection.
0064 )
0065 
0066 
0067 process.noscraping = cms.EDFilter("FilterOutScraping",
0068 applyfilter = cms.untracked.bool(True),
0069 debugOn = cms.untracked.bool(False),
0070 numtrack = cms.untracked.uint32(10),
0071 thresh = cms.untracked.double(0.25)
0072 )
0073 
0074 process.goodvertex=cms.Path(process.primaryVertexFilter+process.noscraping)
0075 
0076 
0077 process.gvout = cms.OutputModule("PoolOutputModule",
0078     fileName = cms.untracked.string('/tmp/azzi/ZB_vertex.root'),
0079     outputCommands = process.FEVTEventContent.outputCommands,
0080     dataset = cms.untracked.PSet(
0081               dataTier = cms.untracked.string('RAW-RECO'),
0082               filterName = cms.untracked.string('GOODVERTEX')),
0083     SelectEvents = cms.untracked.PSet(
0084         SelectEvents = cms.vstring('goodvertex')
0085     )
0086 )
0087 
0088 
0089 #################################logerrorharvester############################################
0090 process.load("FWCore.Modules.logErrorFilter_cfi")
0091 from Configuration.StandardSequences.RawToDigi_Data_cff import gtEvmDigis
0092 
0093 process.gtEvmDigis = gtEvmDigis.clone()
0094 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
0095                                   L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
0096                                   AllowedBeamMode = cms.vuint32(11),
0097                                   saveTags = cms.bool(False)
0098                                   )
0099 
0100 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
0101 
0102 process.outlogerr = cms.OutputModule("PoolOutputModule",
0103                                outputCommands =  process.FEVTEventContent.outputCommands,
0104                                fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
0105                                dataset = cms.untracked.PSet(
0106                                   dataTier = cms.untracked.string('RAW-RECO'),
0107                                   filterName = cms.untracked.string('Skim_logerror')),
0108                                
0109                                SelectEvents = cms.untracked.PSet(
0110     SelectEvents = cms.vstring("logerrorpath")
0111     ))
0112 
0113 #===========================================================
0114 
0115 ###########################################################################
0116 process.options = cms.untracked.PSet(
0117  wantSummary = cms.untracked.bool(True)
0118 )
0119 
0120 #Killed gvskim 
0121 #process.outpath = cms.EndPath(process.gvout+process.outlogerr)
0122 process.outpath = cms.EndPath(process.outlogerr)
0123 
0124 
0125 
0126