Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:18

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Test")
0004 
0005 from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValTTbarGENSIMRECO
0006 process.source = cms.Source("PoolSource",
0007   fileNames = filesRelValTTbarGENSIMRECO
0008 )
0009 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) )
0010 
0011 process.MessageLogger = cms.Service("MessageLogger")
0012 
0013 ## ---
0014 ## This is an example of the use of the EDFilterWrapper to exploit C++ selector classes as defined in the
0015 ## PhysicsTools/SelectorUtils package wrapping them into an EDFilter. You can find the implementation of
0016 ## the EDFilter in PhysicsTools/UtilAlgos/plugins/PrimaryVertexFilter.cc. You can find the EDfilterWrapper
0017 ## class in PhysicsTools/UtilAlgos/interface/EDFilterWrapper.h. The class that has been exploited here is
0018 ## the PVSelector class of the PhysicsTools/SelectorUtils package, which makes implicit use of the
0019 ## PVObjectSelector class in the same package.You cna find the input parameters there.
0020 process.primaryVertexFilter = cms.EDFilter("PrimaryVertexFilter",
0021   pvSrc   = cms.InputTag("offlinePrimaryVertices"),
0022   minNdof = cms.double( 4 ),
0023   maxZ    = cms.double( 24.0 ),
0024   maxRho  = cms.double(2.0),
0025   NPV     = cms.int32(1)
0026 )
0027 
0028 process.p = cms.Path(process.primaryVertexFilter)
0029 
0030 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )