CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/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("particleFlow"),
00010     pfCandidateMap = cms.InputTag("particleFlow:electrons"),
00011 
00012     # collections for mva input variables
00013     reducedBarrelRecHitCollection = cms.InputTag("reducedEcalRecHitsEB"),
00014     reducedEndcapRecHitCollection = cms.InputTag("reducedEcalRecHitsEE"),
00015 
00016     # user data to add
00017     userData = cms.PSet(
00018       # add custom classes here
00019       userClasses = cms.PSet(
00020         src = cms.VInputTag('')
00021       ),
00022       # add doubles here
00023       userFloats = cms.PSet(
00024         src = cms.VInputTag('')
00025       ),
00026       # add ints here
00027       userInts = cms.PSet(
00028         src = cms.VInputTag('')
00029       ),
00030       # add candidate ptrs here
00031       userCands = cms.PSet(
00032         src = cms.VInputTag('')
00033       ),
00034       # add "inline" functions here
00035       userFunctions = cms.vstring(),
00036       userFunctionLabels = cms.vstring()
00037     ),
00038 
00039     # embedding of AOD items
00040     embedGsfElectronCore = cms.bool(True),  ## embed in AOD externally stored gsf electron core
00041     embedGsfTrack        = cms.bool(True),  ## embed in AOD externally stored gsf track
00042     embedSuperCluster    = cms.bool(True),  ## embed in AOD externally stored supercluster
00043     embedPflowSuperCluster         = cms.bool(True),  ## embed in AOD externally stored supercluster
00044     embedSeedCluster               = cms.bool(True),  ## embed in AOD externally stored the electron's seedcluster 
00045     embedBasicClusters             = cms.bool(True),  ## embed in AOD externally stored the electron's basic clusters 
00046     embedPreshowerClusters         = cms.bool(True),  ## embed in AOD externally stored the electron's preshower clusters 
00047     embedPflowBasicClusters        = cms.bool(True),  ## embed in AOD externally stored the electron's pflow basic clusters 
00048     embedPflowPreshowerClusters    = cms.bool(True),  ## embed in AOD externally stored the electron's pflow preshower clusters 
00049     embedPFCandidate     = cms.bool(True),  ## embed in AOD externally stored particle flow candidate
00050     embedTrack           = cms.bool(True), ## embed in AOD externally stored track (note: gsf electrons don't have a track)
00051     embedRecHits         = cms.bool(True),  ## embed in AOD externally stored the RecHits - can be called from the PATElectronProducer 
00052 
00053     # embed IsoDeposits to recompute isolation
00054     isoDeposits = cms.PSet(),
00055 
00056     # user defined isolation variables the variables defined here will be accessible
00057     # via pat::Electron::userIsolation(IsolationKeys key) with the key as defined in
00058     # DataFormats/PatCandidates/interface/Isolation.h
00059     userIsolation = cms.PSet(),
00060 
00061     # electron ID
00062     addElectronID = cms.bool(True),
00063     electronIDSources = cms.PSet(
00064         # configure many IDs as InputTag <someName> = <someTag> you
00065         # can comment out those you don't want to save some disk space
00066         eidRobustLoose      = cms.InputTag("eidRobustLoose"),
00067         eidRobustTight      = cms.InputTag("eidRobustTight"),
00068         eidLoose            = cms.InputTag("eidLoose"),
00069         eidTight            = cms.InputTag("eidTight"),
00070         eidRobustHighEnergy = cms.InputTag("eidRobustHighEnergy"),
00071     ),
00072 
00073     # mc matching
00074     addGenMatch      = cms.bool(True),
00075     embedGenMatch    = cms.bool(True),
00076     genParticleMatch = cms.InputTag("electronMatch"), ## Association between electrons and generator particles
00077 
00078     # efficiencies
00079     addEfficiencies = cms.bool(False),
00080     efficiencies    = cms.PSet(),
00081 
00082     # resolution configurables
00083     addResolutions   = cms.bool(False),
00084     resolutions      = cms.PSet(),
00085 
00086     # high level selections
00087     embedHighLevelSelection = cms.bool(True),
00088     usePV                   = cms.bool(True),
00089     beamLineSrc             = cms.InputTag("offlineBeamSpot"),
00090     pvSrc                   = cms.InputTag("offlinePrimaryVertices")
00091 )