Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:15

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.2 $'),
0007     name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/MinBiasPDSkim_ONLYHSCP_cfg.py,v $'),
0008     annotation = cms.untracked.string('Combined MinBias skim')
0009 )
0010 # selection eff. on 1000 events
0011 #file:/tmp/azzi/Background.root
0012 #/tmp/azzi/Background.root ( 0 events, 664191 bytes )
0013 #file:/tmp/azzi/MinBiascscskimEvents.root
0014 #/tmp/azzi/MinBiascscskimEvents.root ( 0 events, 664212 bytes )
0015 #file:/tmp/azzi/MuonDPGSkim.root
0016 #/tmp/azzi/MuonDPGSkim.root ( 95 events, 40887080 bytes )
0017 #file:/tmp/azzi/StoppedHSCP_filter.root
0018 #/tmp/azzi/StoppedHSCP_filter.root ( 124 events, 28507733 bytes )
0019 #file:/tmp/azzi/ValSkim.root
0020 #/tmp/azzi/ValSkim.root ( 22 events, 9588726 bytes )
0021 #file:/tmp/azzi/ecalrechitfilter.root
0022 #/tmp/azzi/ecalrechitfilter.root ( 23 events, 14583758 bytes )
0023 #file:/tmp/azzi/logerror_filter.root
0024 #/tmp/azzi/logerror_filter.root ( 14 events, 9389296 bytes )
0025 #file:/tmp/azzi/TPGSkim.root
0026 #/tmp/azzi/TPGSkim.root ( 46 events, 20271643 bytes )
0027 
0028 #
0029 #
0030 # This is for testing purposes.
0031 #
0032 #
0033 process.source = cms.Source("PoolSource",
0034                             fileNames = cms.untracked.vstring(
0035 # run 136066 lumi~500
0036 '/store/data/Run2010A/MinimumBias/RECO/v1/000/136/066/18F6DB82-5566-DF11-B289-0030487CAF0E.root'),
0037                            secondaryFileNames = cms.untracked.vstring(
0038 '/store/data/Run2010A/MinimumBias/RAW/v1/000/136/066/38D48BED-3C66-DF11-88A5-001D09F27003.root')
0039 )
0040 
0041 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
0042 
0043 process.maxEvents = cms.untracked.PSet(
0044     input = cms.untracked.int32(-1)
0045 )
0046 
0047 
0048 #------------------------------------------
0049 # Load standard sequences.
0050 #------------------------------------------
0051 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
0052 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
0053 
0054 
0055 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0056 process.GlobalTag.globaltag = 'GR_R_36X_V12B::All' 
0057 
0058 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
0059 process.load("Configuration/StandardSequences/Reconstruction_cff")
0060 process.load('Configuration/EventContent/EventContent_cff')
0061 
0062 #drop collections created on the fly
0063 process.FEVTEventContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
0064 process.FEVTEventContent.outputCommands.append("drop *_*_*_SKIM")
0065 
0066 #
0067 #  Load common sequences
0068 #
0069 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
0070 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
0071 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
0072 
0073 ##################################stoppedHSCP############################################
0074 
0075 
0076 # this is for filtering on HLT path
0077 process.hltstoppedhscp = cms.EDFilter("HLTHighLevel",
0078      TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
0079      HLTPaths = cms.vstring("HLT_StoppedHSCP*"), # provide list of HLT paths (or patterns) you want
0080      eventSetupPathsKey = cms.string(''), # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
0081      andOr = cms.bool(True),             # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
0082      throw = cms.bool(False),    # throw exception on unknown path names
0083      saveTags = cms.bool(False)
0084 )
0085 
0086 process.HSCP=cms.Path(process.hltstoppedhscp)
0087 
0088 process.outHSCP = cms.OutputModule("PoolOutputModule",
0089                                outputCommands =  process.FEVTEventContent.outputCommands,
0090                                fileName = cms.untracked.string('/tmp/malgeri/StoppedHSCP_filter.root'),
0091                                dataset = cms.untracked.PSet(
0092                                   dataTier = cms.untracked.string('RAW-RECO'),
0093                                   filterName = cms.untracked.string('Skim_StoppedHSCP')),
0094                                
0095                                SelectEvents = cms.untracked.PSet(
0096     SelectEvents = cms.vstring("HSCP")
0097     ))
0098 
0099 
0100 
0101 process.options = cms.untracked.PSet(
0102  wantSummary = cms.untracked.bool(True)
0103 )
0104 
0105 process.outpath = cms.EndPath(process.outHSCP)
0106 
0107 
0108 
0109