CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/PhysicsTools/PatAlgos/python/producersLayer1/electronProducer_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 patElectrons = cms.EDProducer("PATElectronProducer",
00004     # input collection
00005     electronSource = cms.InputTag("gsfElectrons"),
00006 
00007     # use particle flow instead of std reco    
00008     useParticleFlow  =  cms.bool( False ),
00009     pfElectronSource = cms.InputTag("pfIsolatedElectrons"),
00010     pfCandidateMap = cms.InputTag("particleFlow:electrons"),
00011                             
00012     # user data to add
00013     userData = cms.PSet(
00014       # add custom classes here
00015       userClasses = cms.PSet(
00016         src = cms.VInputTag('')
00017       ),
00018       # add doubles here
00019       userFloats = cms.PSet(
00020         src = cms.VInputTag('')
00021       ),
00022       # add ints here
00023       userInts = cms.PSet(
00024         src = cms.VInputTag('')
00025       ),
00026       # add candidate ptrs here
00027       userCands = cms.PSet(
00028         src = cms.VInputTag('')
00029       ),
00030       # add "inline" functions here
00031       userFunctions = cms.vstring(),
00032       userFunctionLabels = cms.vstring()
00033     ),
00034 
00035     # embedding of AOD items
00036     embedGsfElectronCore = cms.bool(True),  ## embed in AOD externally stored gsf electron core
00037     embedGsfTrack        = cms.bool(True),  ## embed in AOD externally stored gsf track
00038     embedSuperCluster    = cms.bool(True),  ## embed in AOD externally stored supercluster
00039     embedPFCandidate     = cms.bool(True),  ## embed in AOD externally stored particle flow candidate
00040     embedTrack           = cms.bool(False), ## embed in AOD externally stored track (note: gsf electrons don't have a track)
00041                                     
00042     # embed IsoDeposits to recompute isolation
00043     isoDeposits = cms.PSet(),
00044 
00045     # user defined isolation variables the variables defined here will be accessible
00046     # via pat::Electron::userIsolation(IsolationKeys key) with the key as defined in
00047     # DataFormats/PatCandidates/interface/Isolation.h
00048     userIsolation = cms.PSet(),
00049 
00050     # electron ID
00051     addElectronID = cms.bool(True),
00052     electronIDSources = cms.PSet(
00053         # configure many IDs as InputTag <someName> = <someTag> you
00054         # can comment out those you don't want to save some disk space
00055         eidRobustLoose      = cms.InputTag("eidRobustLoose"),
00056         eidRobustTight      = cms.InputTag("eidRobustTight"),
00057         eidLoose            = cms.InputTag("eidLoose"),
00058         eidTight            = cms.InputTag("eidTight"),
00059         eidRobustHighEnergy = cms.InputTag("eidRobustHighEnergy"),
00060     ),
00061 
00062     # mc matching
00063     addGenMatch      = cms.bool(True),
00064     embedGenMatch    = cms.bool(True),
00065     genParticleMatch = cms.InputTag("electronMatch"), ## Association between electrons and generator particles
00066     
00067     # efficiencies
00068     addEfficiencies = cms.bool(False),
00069     efficiencies    = cms.PSet(),
00070 
00071     # resolution configurables
00072     addResolutions   = cms.bool(False),
00073     resolutions      = cms.PSet(),
00074 
00075     # high level selections
00076     embedHighLevelSelection = cms.bool(True),
00077     usePV                   = cms.bool(True),                          
00078     beamLineSrc             = cms.InputTag("offlineBeamSpot"),
00079     pvSrc                   = cms.InputTag("offlinePrimaryVertices")
00080 )