Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:47

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 process = cms.Process("makeSD")
0005 
0006 process.configurationMetadata = cms.untracked.PSet(
0007     version = cms.untracked.string('$Revision: 1.2 $'),
0008     annotation = cms.untracked.string('Tau central skim'),
0009     name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/Configuration/Skimming/test/CSmaker_Tau_PDTau_35e29_cfg.py,v $')
0010 )
0011 
0012 
0013 process.maxEvents = cms.untracked.PSet(
0014     input = cms.untracked.int32(10000)
0015 )
0016 
0017 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0018 process.load("Configuration.StandardSequences.GeometryExtended_cff")
0019 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0020 process.load('Configuration.EventContent.EventContent_cff')
0021 process.GlobalTag.globaltag = "GR10_P_V7::All"  
0022 
0023 
0024 process.source = cms.Source("PoolSource",
0025     fileNames = cms.untracked.vstring(
0026         '/store/data/Commissioning10/MinimumBias/RAW-RECO/v8/000/132/601/F85204EE-EB40-DF11-8F71-001A64789D1C.root'
0027         ),
0028                             secondaryFileNames = cms.untracked.vstring(
0029         '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/F6887FD0-9371-DE11-B69E-00304879FBB2.root'
0030         )
0031 )
0032 
0033 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
0034 
0035 import HLTrigger.HLTfilters.hltHighLevelDev_cfi
0036 
0037 
0038 ### Tau skim CS
0039 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0040 process.load("TrackingTools/TransientTrack/TransientTrackBuilder_cfi")
0041 
0042 process.load("L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff")
0043 process.load("HLTrigger/HLTfilters/hltLevel1GTSeed_cfi")
0044 process.hltLevel1GTSeed.L1TechTriggerSeeding = cms.bool(True)
0045 process.hltLevel1GTSeed.L1SeedsLogicalExpression = cms.string('(0 AND (40 OR 41) AND NOT (36 OR 37 OR 38 OR 39))')
0046 
0047 process.scrapping = cms.EDFilter("FilterOutScraping",
0048         applyfilter = cms.untracked.bool(True),
0049         debugOn = cms.untracked.bool(False),
0050         numtrack = cms.untracked.uint32(10),
0051         thresh = cms.untracked.double(0.25)
0052 )
0053 
0054 process.PFTausSelected = cms.EDFilter("PFTauSelector",
0055     src = cms.InputTag("shrinkingConePFTauProducer"),
0056     discriminators = cms.VPSet(
0057     cms.PSet( discriminator=cms.InputTag("shrinkingConePFTauDiscriminationByIsolation"),
0058            selectionCut=cms.double(0.5)
0059     ),
0060     ),
0061     cut = cms.string('et > 15. && abs(eta) < 2.5') 
0062 )
0063 
0064 process.PFTauSkimmed = cms.EDFilter("CandViewCountFilter",
0065   src = cms.InputTag('PFTausSelected'),
0066   minNumber = cms.uint32(1)
0067 )
0068 
0069 
0070 process.tauFilter = cms.Path(
0071     process.hltLevel1GTSeed *
0072     process.scrapping *
0073     process.PFTausSelected *
0074     process.PFTauSkimmed
0075 )
0076 
0077 
0078 
0079 
0080 process.outputCsTau = cms.OutputModule("PoolOutputModule",
0081                                         dataset = cms.untracked.PSet(
0082         dataTier = cms.untracked.string('RAW-RECO'),
0083         filterName = cms.untracked.string('CS_Tau')),
0084                                         SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('tauFilter')),                                        
0085                                         outputCommands = process.FEVTEventContent.outputCommands,
0086                                         fileName = cms.untracked.string('CS_Tau_1e28.root')
0087                                         )
0088 
0089 
0090 process.this_is_the_end = cms.EndPath(
0091 process.outputCsTau
0092 )