Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:23:55

0001 import FWCore.ParameterSet.Config as cms
0002 import PhysicsTools.PatAlgos.PATElectronProducer_cfi as _mod
0003 
0004 patElectrons = _mod.PATElectronProducer.clone(
0005     # input collection
0006     electronSource = "gedGsfElectrons",
0007 
0008     # use particle flow instead of std reco
0009     pfElectronSource = "particleFlow",
0010     pfCandidateMap   = "particleFlow:electrons",
0011 
0012     # collections for mva input variables
0013     addMVAVariables = True,
0014     reducedBarrelRecHitCollection = "reducedEcalRecHitsEB",
0015     reducedEndcapRecHitCollection = "reducedEcalRecHitsEE",
0016 
0017     # user data to add
0018     userData = dict(
0019       # add custom classes here
0020       userClasses = cms.PSet(
0021         src = cms.VInputTag('')
0022       ),
0023       # add doubles here
0024       userFloats = cms.PSet(
0025         src = cms.VInputTag('')
0026       ),
0027       # add ints here
0028       userInts = cms.PSet(
0029         src = cms.VInputTag('')
0030       ),
0031       # add candidate ptrs here
0032       userCands = cms.PSet(
0033         src = cms.VInputTag('')
0034       ),
0035       # add "inline" functions here
0036       userFunctions = [],
0037       userFunctionLabels = []
0038     ),
0039 
0040     # embedding of AOD items
0041     embedGsfElectronCore    = True,  ## embed in AOD externally stored gsf electron core
0042     embedGsfTrack           = False, ## embed in AOD externally stored gsf track
0043     embedSuperCluster       = True,  ## embed in AOD externally stored supercluster
0044     embedPflowSuperCluster  = True,  ## embed in AOD externally stored supercluster
0045     embedSeedCluster        = True,  ## embed in AOD externally stored the electron's seedcluster 
0046     embedBasicClusters      = True,  ## embed in AOD externally stored the electron's basic clusters 
0047     embedPreshowerClusters  = True,  ## embed in AOD externally stored the electron's preshower clusters 
0048     embedPflowBasicClusters = True,  ## embed in AOD externally stored the electron's pflow basic clusters 
0049     embedPflowPreshowerClusters = True,  ## embed in AOD externally stored the electron's pflow preshower clusters 
0050     embedPFCandidate        = True, ## embed in AOD externally stored particle flow candidate
0051     embedTrack              = True, ## embed in AOD externally stored track (note: gsf electrons don't have a track)
0052     embedRecHits            = True, ## embed in AOD externally stored the RecHits - can be called from the PATElectronProducer 
0053 
0054     # embed IsoDeposits to recompute isolation
0055     isoDeposits = cms.PSet(),
0056 
0057     # user defined isolation variables the variables defined here will be accessible
0058     # via pat::Electron::userIsolation(IsolationKeys key) with the key as defined in
0059     # DataFormats/PatCandidates/interface/Isolation.h
0060     userIsolation = dict(),
0061 
0062     # electron ID
0063     addElectronID = False,
0064     electronIDSources = cms.PSet(),
0065 
0066     # mc matching
0067     addGenMatch      = True,
0068     embedGenMatch    = True,
0069     genParticleMatch = "electronMatch", ## Association between electrons and generator particles
0070 
0071     # efficiencies
0072     addEfficiencies = False,
0073     efficiencies    = dict(),
0074 
0075     # resolution configurables
0076     addResolutions   = False,
0077     resolutions      = dict(),
0078 
0079     # high level selections
0080     embedHighLevelSelection = True,
0081     beamLineSrc             = "offlineBeamSpot",
0082     pvSrc                   = "offlinePrimaryVertices",
0083 
0084     # PFClusterIso
0085     addPFClusterIso     = False,
0086     ecalPFClusterIsoMap = "",
0087     hcalPFClusterIsoMap = "",
0088     addPuppiIsolation   = False,
0089 
0090     # Compute and store Mini-Isolation.
0091     # Implemention and a description of parameters can be found in:
0092     # PhysicsTools/PatUtils/src/PFIsolation.cc
0093     # only works in miniaod, so set to True in miniAOD_tools.py
0094     computeMiniIso    = False,
0095     pfCandsForMiniIso = "packedPFCandidates",
0096      # veto on candidates in deadcone only in endcap
0097     miniIsoParamsE = [0.05, 0.2, 10.0, 0.0, 0.015, 0.015, 0.08, 0.0, 0.0],
0098     miniIsoParamsB = [0.05, 0.2, 10.0, 0.0, 0.000, 0.000, 0.00, 0.0, 0.0],
0099 
0100 )
0101 del patElectrons.electronIDSource