CMS 3D CMS Logo

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