Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-15 22:20:45

0001 ### Set up PAT
0002 
0003 # Import skeleton process
0004 from PhysicsTools.PatAlgos.patTemplate_cfg import *
0005 
0006 #process.Tracer = cms.Service( "Tracer" )
0007 
0008 # Load default PAT
0009 process.load( "PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff" )
0010 patAlgosToolsTask.add(process.patCandidatesTask)
0011 #Temporary customize to the unit tests that fail due to old input samples
0012 process.patTaus.skipMissingTauID = True
0013 
0014 process.load( "PhysicsTools.PatAlgos.selectionLayer1.selectedPatCandidates_cff" )
0015 patAlgosToolsTask.add(process.selectedPatCandidatesTask)
0016 
0017 process.p = cms.Path(
0018     process.selectedPatCandidates
0019     )
0020 
0021 process.patLowPtElectrons.addElectronID = False
0022 process.patLowPtElectrons.electronSource = "gedGsfElectrons"
0023 process.patLowPtElectrons.genParticleMatch = "electronMatch"
0024 process.selectedPatLowPtElectrons.cut = "pt>99999."
0025 
0026 process.filteredDisplacedMuons.srcMuons = "muons"
0027 process.selectedPatDisplacedMuons.cut = "pt>99999."
0028 
0029 ### Get PAT trigger tools
0030 from PhysicsTools.PatAlgos.tools.trigTools import *
0031 
0032 # ------------------------------------------------------------------------------
0033 # Depending on the purpose, comment/uncomment the following sections
0034 # ------------------------------------------------------------------------------
0035 
0036 # Add full trigger information
0037 switchOnTrigger( process )
0038 
0039 # # Add full example trigger matching information
0040 # switchOnTriggerMatching( process )
0041 
0042 # # Add stand-alone trigger information
0043 # switchOnTriggerStandAlone( process )
0044 
0045 # Add stand-alone example trigger matching information
0046 # switchOnTriggerMatchingStandAlone( process )
0047 
0048 # # Add embedded example trigger matching information
0049 switchOnTriggerMatchEmbedding( process )
0050 
0051 
0052 # ------------------------------------------------------------------------------
0053 #  In addition you possibly want to change the following parameters:
0054 # ------------------------------------------------------------------------------
0055 #
0056 #   process.GlobalTag.globaltag =  ...                # according to https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
0057 #                                                     #
0058 from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValProdTTbarAODSIM
0059 process.source.fileNames = filesRelValProdTTbarAODSIM
0060 #                                                     #
0061 process.maxEvents.input = 10                          # number of events to process
0062 #                                                     #
0063 process.out.fileName = 'patTuple_addTriggerInfo.root' # name of the input EDM file
0064 #                                                     #
0065 #   process.options.wantSummary = False               # suppresses the long output at the end of the job