Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:31:14

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 ## add message logger
0006 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0007 process.MessageLogger.cerr.threshold = 'INFO'
0008 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0009 
0010 ## define input
0011 from TopQuarkAnalysis.TopEventProducers.tqafInputFiles_cff import relValTTbar
0012 process.source = cms.Source("PoolSource",
0013     fileNames = cms.untracked.vstring(relValTTbar)
0014 )
0015 #process.source = cms.Source("PoolSource",
0016     #fileNames = cms.untracked.vstring(
0017     ##'/store/relval/CMSSW_7_1_0_pre1/RelValProdTTbar/GEN-SIM-RECO/START70_V5-v1/00000/14842A6B-2086-E311-B5CB-02163E00E8DA.root'
0018 
0019     ##'/store/user/eschliec/Summer09/7TeV/TTBar/MCatNLO/patTuple_1.root',
0020     ##'/store/user/eschliec/Summer09/7TeV/TTBar/MCatNLO/patTuple_2.root'
0021 
0022     #'/store/user/eschliec/Summer09/7TeV/QCD/pt0015-pythia/patTuple_1.root',
0023     #'/store/user/eschliec/Summer09/7TeV/QCD/pt0015-pythia/patTuple_4.root',
0024     #'/store/user/eschliec/Summer09/7TeV/QCD/pt0015-pythia/patTuple_8.root',
0025     #'/store/user/eschliec/Summer09/7TeV/QCD/pt0015-pythia/patTuple_7.root',
0026     #'/store/user/eschliec/Summer09/7TeV/QCD/pt0015-pythia/patTuple_3.root',
0027     #'/store/user/eschliec/Summer09/7TeV/QCD/pt0015-pythia/patTuple_6.root',
0028     #'/store/user/eschliec/Summer09/7TeV/QCD/pt0015-pythia/patTuple_9.root',
0029     #'/store/user/eschliec/Summer09/7TeV/QCD/pt0015-pythia/patTuple_2.root',
0030     #'/store/user/eschliec/Summer09/7TeV/QCD/pt0015-pythia/patTuple_5.root',
0031     #'/store/user/eschliec/Summer09/7TeV/QCD/pt0015-pythia/patTuple_10.root',
0032     #'/store/user/eschliec/Summer09/7TeV/QCD/pt0015-pythia/patTuple_14.root',
0033     #'/store/user/eschliec/Summer09/7TeV/QCD/pt0015-pythia/patTuple_12.root',
0034     #'/store/user/eschliec/Summer09/7TeV/QCD/pt0015-pythia/patTuple_13.root',
0035     #'/store/user/eschliec/Summer09/7TeV/QCD/pt0015-pythia/patTuple_11.root'
0036 
0037     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_1.root',
0038     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_4.root',
0039     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_8.root',
0040     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_7.root',
0041     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_3.root',
0042     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_6.root',
0043     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_9.root',
0044     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_2.root',
0045     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_5.root',
0046     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_10.root',
0047     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_14.root',
0048     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_12.root',
0049     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_13.root',
0050     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_11.root',
0051     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_15.root',
0052     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_16.root',
0053     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_17.root',
0054     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_18.root',
0055     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_19.root',
0056     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_20.root',
0057     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_24.root',
0058     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_22.root',
0059     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_23.root',
0060     ##'/store/user/eschliec/Summer09/7TeV/QCD/pt1400-pythia/patTuple_21.root'
0061      #),
0062      #skipEvents = cms.untracked.uint32(0)
0063 #)
0064 ## define maximal number of events to loop over
0065 process.maxEvents = cms.untracked.PSet(
0066     input = cms.untracked.int32(10000)
0067 )
0068 ## configure process options
0069 process.options = cms.untracked.PSet(
0070     wantSummary      = cms.untracked.bool(True)
0071 )
0072 
0073 ## configure geometry & conditions
0074 process.load("Configuration.Geometry.GeometryRecoDB_cff")
0075 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0076 from Configuration.AlCa.GlobalTag import GlobalTag
0077 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc')
0078 process.load("Configuration.StandardSequences.MagneticField_cff")
0079 
0080 process.task = cms.Task()
0081 
0082 ## std sequence for PAT
0083 process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff")
0084 process.task.add(process.patCandidatesTask)
0085 #Temporary customize to the unit tests that fail due to old input samples
0086 process.patTaus.skipMissingTauID = True
0087 process.load("PhysicsTools.PatAlgos.selectionLayer1.selectedPatCandidates_cff")
0088 process.task.add(process.selectedPatCandidatesTask)
0089 process.load("TopQuarkAnalysis.TopEventSelection.TtFullHadSignalSelMVAComputer_cff")
0090 process.task.add(process.findTtFullHadSignalSelMVA)
0091 
0092 ## jet count filter
0093 process.load("PhysicsTools.PatAlgos.selectionLayer1.jetCountFilter_cfi")
0094 process.task.add(process.countPatJets)
0095 
0096 ## setup jet selection collection
0097 # This configuration is broken because countLayer1Jets is not defined anywhere
0098 process.leadingJetSelection = process.countLayer1Jets.clone(src = 'selectedLayer1Jets',
0099                                                             minNumber = 6
0100                                                             )
0101 
0102 ## path1
0103 process.p = cms.Path(process.leadingJetSelection *
0104                      process.findTtFullHadSignalSelMVA,
0105                      process.task
0106                      )
0107 
0108 ## output module
0109 process.out = cms.OutputModule(
0110   "PoolOutputModule",
0111   SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring('p')),
0112   outputCommands = cms.untracked.vstring('drop *',
0113                                          'keep double_*_DiscSel_*'
0114                                         ),
0115   fileName = cms.untracked.string('ttFullHadSignalSelMVAComputer.root')
0116 )
0117 ## output path
0118 process.outpath = cms.EndPath(process.out)