CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/DPGAnalysis/Skims/python/ZeroBiasPDSkim_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("SKIM")
00004 
00005 process.configurationMetadata = cms.untracked.PSet(
00006     version = cms.untracked.string('$Revision: 1.5 $'),
00007     name = cms.untracked.string('$Source: /local/reps/CMSSW/CMSSW/DPGAnalysis/Skims/python/ZeroBiasPDSkim_cfg.py,v $'),
00008     annotation = cms.untracked.string('Combined ZeroBias skim')
00009 )
00010 # selection eff on 1000 events
00011 # file:/tmp/malgeri/ZB_vertex.root
00012 # /tmp/malgeri/ZB_vertex.root ( 45 events, 15799040 bytes )
00013 
00014 #
00015 #
00016 # This is for testing purposes.
00017 #
00018 #
00019 process.source = cms.Source("PoolSource",
00020                             fileNames = cms.untracked.vstring(
00021 # run 136066 lumi~500
00022 '/store/data/Run2010A/ZeroBias/RECO/v1/000/136/066/DE81B1E0-4866-DF11-A76D-0030487CD906.root'),
00023                            secondaryFileNames = cms.untracked.vstring(
00024 '/store/data/Run2010A/ZeroBias/RAW/v1/000/136/066/FE1DCAEF-3C66-DF11-A903-000423D98E30.root')
00025 )
00026 
00027 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
00028 
00029 process.maxEvents = cms.untracked.PSet(
00030     input = cms.untracked.int32(-1)
00031 )
00032 
00033 
00034 #------------------------------------------
00035 # Load standard sequences.
00036 #------------------------------------------
00037 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
00038 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
00039 
00040 
00041 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
00042 process.GlobalTag.globaltag = 'GR10_P_V6::All' 
00043 
00044 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
00045 process.load("Configuration/StandardSequences/Reconstruction_cff")
00046 process.load('Configuration/EventContent/EventContent_cff')
00047 
00048 process.FEVTEventContent.outputCommands.append('drop *_MEtoEDMConverter_*_*')
00049 
00050 #
00051 #  Load common sequences
00052 #
00053 #process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
00054 #process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
00055 #process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
00056 
00057 ##################################good vertex############################################
00058 
00059 
00060 process.primaryVertexFilter = cms.EDFilter("VertexSelector",
00061    src = cms.InputTag("offlinePrimaryVertices"),
00062    cut = cms.string("!isFake && ndof > 4 && abs(z) <= 15 && position.Rho <= 2"), # tracksSize() > 3 for the older cut
00063    filter = cms.bool(True),   # otherwise it won't filter the events, just produce an empty vertex collection.
00064 )
00065 
00066 
00067 process.noscraping = cms.EDFilter("FilterOutScraping",
00068 applyfilter = cms.untracked.bool(True),
00069 debugOn = cms.untracked.bool(False),
00070 numtrack = cms.untracked.uint32(10),
00071 thresh = cms.untracked.double(0.25)
00072 )
00073 
00074 process.goodvertex=cms.Path(process.primaryVertexFilter+process.noscraping)
00075 
00076 
00077 process.gvout = cms.OutputModule("PoolOutputModule",
00078     fileName = cms.untracked.string('/tmp/azzi/ZB_vertex.root'),
00079     outputCommands = process.FEVTEventContent.outputCommands,
00080     dataset = cms.untracked.PSet(
00081               dataTier = cms.untracked.string('RAW-RECO'),
00082               filterName = cms.untracked.string('GOODVERTEX')),
00083     SelectEvents = cms.untracked.PSet(
00084         SelectEvents = cms.vstring('goodvertex')
00085     )
00086 )
00087 
00088 
00089 #################################logerrorharvester############################################
00090 process.load("FWCore.Modules.logErrorFilter_cfi")
00091 from Configuration.StandardSequences.RawToDigi_Data_cff import gtEvmDigis
00092 
00093 process.gtEvmDigis = gtEvmDigis.clone()
00094 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
00095                                   L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
00096                                   AllowedBeamMode = cms.vuint32(11),
00097                                   saveTags = cms.bool(False)
00098                                   )
00099 
00100 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
00101 
00102 process.outlogerr = cms.OutputModule("PoolOutputModule",
00103                                outputCommands =  process.FEVTEventContent.outputCommands,
00104                                fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
00105                                dataset = cms.untracked.PSet(
00106                                   dataTier = cms.untracked.string('RAW-RECO'),
00107                                   filterName = cms.untracked.string('Skim_logerror')),
00108                                
00109                                SelectEvents = cms.untracked.PSet(
00110     SelectEvents = cms.vstring("logerrorpath")
00111     ))
00112 
00113 #===========================================================
00114 
00115 ###########################################################################
00116 process.options = cms.untracked.PSet(
00117  wantSummary = cms.untracked.bool(True)
00118 )
00119 
00120 #Killed gvskim 
00121 #process.outpath = cms.EndPath(process.gvout+process.outlogerr)
00122 process.outpath = cms.EndPath(process.outlogerr)
00123 
00124 
00125 
00126