CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Attributes
runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties Class Reference
Inheritance diagram for runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties:

Public Member Functions

def __call__
 
def __init__
 
def toolCode
 

Static Public Attributes

tuple addResidualJES = cms.bool(True)
 
 calibratedJetsResShift = None
 
 correctedJetsEnShift = None
 
string correctedJetsEnShift = "correctedJetsEn%sForPFNoPUchsMEt%s"
 
tuple correctedJetsResShift = correctedJetCollection.replace("Jets", "JetsRes"+var)
 
string correctedJetsShift = "correctedJets%s%s%sForPFNoPU%sMEt%s"
 
tuple jetCorrInputFileName = cms.FileInPath(jecUncertaintyFile)
 
tuple jetCorrLabelUpToL3 = cms.InputTag(jetCorrLabelUpToL3.value())
 
tuple jetCorrLabelUpToL3Res = cms.InputTag(jetCorrLabelUpToL3Residual.value())
 
tuple jetCorrUncertaintyTag = cms.string(jecUncertaintyTag)
 
tuple jets = cms.InputTag(correctedJetsShift)
 
tuple minJetPt = cms.double(10.0)
 
tuple moduleMEtDataLeptonShift = getattr(process, calibratedPFCandPFNoPUMEtData)
 
string moduleMEtDataLeptonShiftName = "%s%s%s%s%s"
 
tuple moduleMEtLeptonShift = getattr(process, pfNoPUMEt + postfix)
 
string moduleMEtLeptonShiftName = "%s%s%s%s%s"
 
tuple modulePFCandidateToVertexAssociationShift
 
string modulePFCandidateToVertexAssociationShiftName = "pfCandidateToVertexAssociation%s%s%sForPileUpPF%sMEt%s"
 
 pfCandCollectionLeptonShift = \
 
tuple PFCandidateCollection = cms.InputTag(smearedPFCandidatesJetResShift)
 
 pfCandidateToVertexAssociationUnclusteredEnShift = None
 
string pfCandidateToVertexAssociationUnclusteredEnShift = "pfCandidateToVertexAssociationUnclusteredEn%sForPFNoPUchsMEt%s"
 
 pfCandsUnclusteredEnShift = None
 
string pfCandsUnclusteredEnShift = "pfCandsUnclusteredEn%sForPFNoPUchsMEt%s"
 
 pfMETcorrType0UnclusteredEnShift = None
 
string pfMETcorrType0UnclusteredEnShift = "pfMETcorrType0UnclusteredEn%sForPFNoPUchsMEt%s"
 
string pfNoPUMEtDataJetEnShift = "%sJetEn%s%s"
 
string pfNoPUMEtDataJetResShift = "%sJetRes%s%s"
 
string pfNoPUMEtDataUnclusteredEnShift = "%sUnclusteredEn%s%s"
 
string pfNoPUMEtJetEnShift = "%sJetEn%s%s"
 
string pfNoPUMEtJetResShift = "%sJetRes%s%s"
 
string pfNoPUMEtUnclusteredEnShift = "%sUnclusteredEn%s%s"
 
string puJetIdJetEnShift = "%sJetEn%s%s"
 
string puJetIdJetResShift = "%sJetRes%s%s"
 
string puJetIdShift = "puJetId%s%s%sForPFNoPU%sMEt%s"
 
tuple shiftBy = cms.double( varDir[var] *varyByNsigmas)
 
 smearedPFCandidatesJetResShift = None
 
string smearedPFCandidatesJetResShift = "smearedPFCandidatesJetRes%sForPFNoPUchsMEt%s"
 
 smearedPFCandToVertexAssociationJetResShift = None
 
string smearedPFCandToVertexAssociationJetResShift = "smearedPFCandidateToVertexAssociationJetRes%sForPFNoPUchsMEt%s"
 
 smearedUncorrectedJetsResShift = None
 
string smearedUncorrectedJetsResShift = "smearedUncorrectedJetsRes%sForPFNoPUchsMEt%s"
 
tuple src = cms.InputTag(uncorrectedJetsShiftName)
 verbosity = cms.int32(1) More...
 
tuple srcJetIds = cms.InputTag(puJetIdShift, puJetIdTag)
 
tuple srcJets = cms.InputTag(correctedJetsShift)
 
tuple srcLeptons
 
tuple srcMVAMEtData = cms.InputTag(pfNoPUMEtDataJetEnShift)
 
tuple srcMVAMEtDataLeptonMatch = cms.InputTag(moduleMEtDataLeptonShiftName)
 
tuple srcPFCandidates = cms.InputTag(pfCandCollectionLeptonShift[var])
 
tuple srcPFCandidateToVertexAssociations = cms.InputTag(pfCandidateToVertexAssociationUnclusteredEnShift)
 
tuple srcPFCandToVertexAssociations = cms.InputTag(modulePFCandidateToVertexAssociationShiftName)
 
tuple srcType0Correction = cms.InputTag(pfMETcorrType0UnclusteredEnShift)
 
tuple unclEnUncertainty = cms.double(0.10)
 
 uncorrectedJetsEnShift = None
 
string uncorrectedJetsEnShift = "uncorrectedJetsEn%sForPFNoPUchsMEt%s"
 
tuple uncorrectedJetsShift
 
string uncorrectedJetsShiftName = "pfJets%s%s%sForPFNoPU%sMEt%s"
 
dictionary varDir = { 'Up':1., 'Down':-1. }
 
list variations = ['Up','Down']
 

Private Member Functions

def _addPFNoPUMEt
 

Static Private Attributes

tuple _defaultParameters = dicttypes.SortedKeysDict()
 
string _label = 'runNoPileUpMEtUncertainties'
 

Detailed Description

Shift energy of electrons, photons, muons, tau-jets and other jets
reconstructed in the event up/down,
in order to estimate effect of energy scale uncertainties on No-PU MET

Definition at line 14 of file runNoPileUpMEtUncertainties.py.

Constructor & Destructor Documentation

def runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.__init__ (   self)

Definition at line 22 of file runNoPileUpMEtUncertainties.py.

References runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties._addPFNoPUMEt(), editorTools.UserCodeTool._comment, heavyIonTools.ConfigureHeavyIons._comment, HiCoreTools.RestrictInputToAOD._comment, coreTools.RunOnData._comment, trackTools.MakeAODTrackCandidates._comment, metTools.AddMETCollection._comment, heavyIonTools.ProductionDefaults._comment, ConfigToolBase.ConfigToolBase._comment, editorTools.ChangeSource._comment, HiCoreTools.RemoveMCMatching._comment, coreTools.RemoveMCMatching._comment, cmsswVersionTools.PickRelValInputFiles._comment, jetTools.AddJetCollection._comment, trackTools.MakePATTrackCandidates._comment, trigTools.SwitchOnTrigger._comment, heavyIonTools.SelectionDefaults._comment, HiCoreTools.RemoveAllPATObjectsBut._comment, heavyIonTools.DisbaleMonteCarloDeps._comment, HiCoreTools.RemoveSpecificPATObjects._comment, trigTools.SwitchOnTriggerStandAlone._comment, trackTools.MakeTrackCandidates._comment, tauTools.AddTauCollection._comment, trigTools.SwitchOnTriggerMatching._comment, HiCoreTools.RemoveCleaning._comment, HiCoreTools.AddCleaning._comment, trigTools.SwitchOnTriggerMatchingStandAlone._comment, trigTools.SwitchOnTriggerMatchEmbedding._comment, jetTools.SwitchJetCollection._comment, jetTools.AddJetID._comment, jetTools.SetTagInfos._comment, metTools.AddMETCollection._defaultParameters, editorTools.UserCodeTool._defaultParameters, trackTools.MakeAODTrackCandidates._defaultParameters, heavyIonTools.ConfigureHeavyIons._defaultParameters, coreTools.RunOnData._defaultParameters, runJetUncertainties.RunJetUncertainties._defaultParameters, jmeUncertaintyTools.JetMEtUncertaintyTools._defaultParameters, runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties._defaultParameters, runMVAMEtUncertainties.RunMVAMEtUncertainties._defaultParameters, Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._defaultParameters, jetTools.AddJetCollection._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, editorTools.ChangeSource._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, trackTools.MakePATTrackCandidates._defaultParameters, trigTools.SwitchOnTrigger._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, trigTools.SwitchOnTriggerStandAlone._defaultParameters, trackTools.MakeTrackCandidates._defaultParameters, tauTools.AddTauCollection._defaultParameters, trigTools.SwitchOnTriggerMatching._defaultParameters, trigTools.SwitchOnTriggerMatchingStandAlone._defaultParameters, trigTools.SwitchOnTriggerMatchEmbedding._defaultParameters, jetTools.SwitchJetCollection._defaultParameters, jetTools.AddJetID._defaultParameters, jetTools.SetTagInfos._defaultParameters, editorTools.UserCodeTool._parameters, heavyIonTools.ConfigureHeavyIons._parameters, HiCoreTools.RestrictInputToAOD._parameters, coreTools.RunOnData._parameters, trackTools.MakeAODTrackCandidates._parameters, metTools.AddMETCollection._parameters, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigFolder._parameters, Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._parameters, heavyIonTools.ProductionDefaults._parameters, ConfigToolBase.ConfigToolBase._parameters, editorTools.ChangeSource._parameters, TAbsFitConstraint._parameters, HiCoreTools.RemoveMCMatching._parameters, TAbsFitParticle._parameters, coreTools.RemoveMCMatching._parameters, cmsswVersionTools.PickRelValInputFiles._parameters, jetTools.AddJetCollection._parameters, trackTools.MakePATTrackCandidates._parameters, trigTools.SwitchOnTrigger._parameters, heavyIonTools.SelectionDefaults._parameters, HiCoreTools.RemoveAllPATObjectsBut._parameters, heavyIonTools.DisbaleMonteCarloDeps._parameters, HiCoreTools.RemoveSpecificPATObjects._parameters, trigTools.SwitchOnTriggerStandAlone._parameters, trackTools.MakeTrackCandidates._parameters, tauTools.AddTauCollection._parameters, trigTools.SwitchOnTriggerMatching._parameters, HiCoreTools.RemoveCleaning._parameters, HiCoreTools.AddCleaning._parameters, trigTools.SwitchOnTriggerMatchingStandAlone._parameters, trigTools.SwitchOnTriggerMatchEmbedding._parameters, jetTools.SwitchJetCollection._parameters, jetTools.AddJetID._parameters, jetTools.SetTagInfos._parameters, root::helper::RootFunctionAdapter< F, args >.addParameter(), root::helper::RootFunctionHelper< F, args, Tag >.addParameter(), ParameterMgr.addParameter(), fit::RootMinuit< Function >.addParameter(), DropBoxMetadata::Parameters.addParameter(), PythonParameterSet.addParameter(), LutXml.addParameter(), ConfigToolBase.ConfigToolBase.addParameter(), and edm::ParameterSet.addParameter().

22 
23  def __init__(self):
24  JetMEtUncertaintyTools.__init__(self)
25  self.addParameter(self._defaultParameters, 'doApplyChargedHadronSubtraction', False,
"Flag to enable/disable usage of charged hadron subtraction when reconstructing jets", Type=bool)

Member Function Documentation

def runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.__call__ (   self,
  process,
  electronCollection = None,
  photonCollection = None,
  muonCollection = None,
  tauCollection = None,
  jetCollection = None,
  dRjetCleaning = None,
  jetCorrLabel = None,
  doApplyChargedHadronSubtraction = None,
  doSmearJets = None,
  jetSmearFileName = None,
  jetSmearHistogram = None,
  pfCandCollection = None,
  doApplyUnclEnergyCalibration = None,
  sfNoPUjetOffsetEnCorr = None,
  jetCorrPayloadName = None,
  jetCorrLabelUpToL3 = None,
  jetCorrLabelUpToL3Res = None,
  jecUncertaintyFile = None,
  jecUncertaintyTag = None,
  varyByNsigmas = None,
  addToPatDefaultSequence = None,
  outputModule = None,
  postfix = None 
)

Definition at line 446 of file runNoPileUpMEtUncertainties.py.

References metTools.AddMETCollection._defaultParameters, trackTools.MakeAODTrackCandidates._defaultParameters, editorTools.UserCodeTool._defaultParameters, heavyIonTools.ConfigureHeavyIons._defaultParameters, coreTools.RunOnData._defaultParameters, runJetUncertainties.RunJetUncertainties._defaultParameters, jmeUncertaintyTools.JetMEtUncertaintyTools._defaultParameters, runMVAMEtUncertainties.RunMVAMEtUncertainties._defaultParameters, runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties._defaultParameters, Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._defaultParameters, jetTools.AddJetCollection._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, editorTools.ChangeSource._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, trackTools.MakePATTrackCandidates._defaultParameters, trigTools.SwitchOnTrigger._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, trigTools.SwitchOnTriggerStandAlone._defaultParameters, trackTools.MakeTrackCandidates._defaultParameters, tauTools.AddTauCollection._defaultParameters, trigTools.SwitchOnTriggerMatching._defaultParameters, trigTools.SwitchOnTriggerMatchingStandAlone._defaultParameters, trigTools.SwitchOnTriggerMatchEmbedding._defaultParameters, jetTools.SwitchJetCollection._defaultParameters, jetTools.AddJetID._defaultParameters, jetTools.SetTagInfos._defaultParameters, jmeUncertaintyTools.JetMEtUncertaintyTools._initializeInputTag(), SignedImpactParameter3D.apply(), gen::PhotosInterfaceBase.apply(), SignedTransverseImpactParameter.apply(), SignedDecayLength3D.apply(), MatrixReader.MatrixReader.apply, DummyOOTPileupCorrection.apply(), gen::PhotosppInterface.apply(), SurveyParameters.apply(), FWPSetCellEditor.apply(), gen::PhotosInterface.apply(), FWGUIEventFilter.apply(), DeviationsFromFileSensor2D.apply(), BeamSpotAlignmentParameters.apply(), RigidBodyAlignmentParameters.apply(), MatRepSparse< T, D1, D2, S, F >.apply(), ConfigToolBase.ConfigToolBase.apply(), AlignmentParameters.apply(), BowedSurfaceAlignmentParameters.apply(), OOTPileupCorrData.apply(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool.apply(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ApplyTool.apply(), AbsOOTPileupCorrection.apply(), TwoBowedSurfacesAlignmentParameters.apply(), Vispa.Gui.BoxContentDialog.BoxContentDialog.apply(), reco::modules::TrackerTrackHitFilter::Rule.apply(), PulseShapeFitOOTPileupCorrection.apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog.apply(), reco::Add< T >.apply(), reco::Sub< T >.apply(), reco::Mul< T >.apply(), reco::Div< T >.apply(), cmsswVersionTools.PickRelValInputFiles.apply(), reco::And< bool >.apply(), reco::Or< bool >.apply(), reco::Less< T >.apply(), reco::LessEqual< T >.apply(), reco::More< T >.apply(), reco::MoreEqual< T >.apply(), reco::Equal< T >.apply(), ArrayND< Numeric, Len2, Dim2 >.apply(), npstat::ArrayND< Numeric >.apply(), ArrayND< Num2, Len2, Dim2 >.apply(), ArrayND< Accumulator >.apply(), ArrayND< Numeric, Len, Dim >.apply(), npstat::ArrayND< Num1, Len1, Dim1 >.apply(), npstat::ArrayND< Numeric, StackLen, StackDim >.apply(), ora::OraMainTable.setParameter(), ora::IMainTable.setParameter(), ora::PoolMainTable.setParameter(), PedeReader.setParameter(), IntegratedCalibrationBase.setParameter(), SiStripLorentzAngleCalibration.setParameter(), SiPixelLorentzAngleCalibration.setParameter(), SiStripBackplaneCalibration.setParameter(), fit::RootMinuit< Function >.setParameter(), and ConfigToolBase.ConfigToolBase.setParameter().

447  postfix = None):
448  JetMEtUncertaintyTools.__call__(
449  self, process,
450  electronCollection = electronCollection,
451  photonCollection = photonCollection,
452  muonCollection = muonCollection,
453  tauCollection = tauCollection,
454  jetCollection = jetCollection,
455  jetCorrLabel = jetCorrLabel,
456  doSmearJets = doSmearJets,
457  jetSmearFileName = jetSmearFileName,
458  jetSmearHistogram = jetSmearHistogram,
459  jetCorrPayloadName = jetCorrPayloadName,
460  jetCorrLabelUpToL3 = jetCorrLabelUpToL3,
461  jetCorrLabelUpToL3Res = jetCorrLabelUpToL3Res,
462  jecUncertaintyFile = jecUncertaintyFile,
463  jecUncertaintyTag = jecUncertaintyTag,
464  varyByNsigmas = varyByNsigmas,
465  addToPatDefaultSequence = addToPatDefaultSequence,
466  outputModule = outputModule,
467  postfix = postfix)
468  if doApplyChargedHadronSubtraction is None:
469  doApplyChargedHadronSubtraction = self._defaultParameters['doApplyChargedHadronSubtraction'].value
470  pfCandCollection = self._initializeInputTag(pfCandCollection, 'pfCandCollection')
471  if doApplyUnclEnergyCalibration is None:
472  doApplyUnclEnergyCalibration = self._defaultParameters['doApplyUnclEnergyCalibration'].value
473  if sfNoPUjetOffsetEnCorr is None:
474  sfNoPUjetOffsetEnCorr = self._defaultParameters['sfNoPUjetOffsetEnCorr'].value
475 
476  self.setParameter('doApplyChargedHadronSubtraction', doApplyChargedHadronSubtraction)
477  self.setParameter('pfCandCollection', pfCandCollection)
478  self.setParameter('doApplyUnclEnergyCalibration', doApplyUnclEnergyCalibration)
479  self.setParameter('sfNoPUjetOffsetEnCorr', sfNoPUjetOffsetEnCorr)
480 
481  self.apply(process)
def runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties._addPFNoPUMEt (   self,
  process,
  metUncertaintySequence,
  shiftedParticleCollections,
  pfCandCollection,
  doApplyUnclEnergyCalibration,
  sfNoPUjetOffsetEnCorr,
  collectionsToKeep,
  doApplyChargedHadronSubtraction,
  doSmearJets,
  jecUncertaintyFile,
  jecUncertaintyTag,
  varyByNsigmas,
  postfix 
)
private

Definition at line 43 of file runNoPileUpMEtUncertainties.py.

References jmeUncertaintyTools.JetMEtUncertaintyTools._addPATMEtProducer(), clone(), and python.rootplot.root2matplotlib.replace().

Referenced by runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.__init__(), and runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.toolCode().

43 
44  postfix):
45 
46  uncorrectedJetCollection = None
47  smearedUncorrectedJetCollection = None
48  correctedJetCollection = None
49  smearedCorrectedJetCollection = None
50  smearedPFCandidateCollection = None
51  smearedPFCandToVertexAssociation = None
52  puJetId = None
53  puJetIdTag = None
54  pfNoPUMEtData = None
55  pfNoPUMEt = None
56  pfNoPUMEtSequence = None
57  patPFMetNoPileUp = None
58  jetCorrLabelUpToL3 = None
59  jetCorrLabelUpToL3Residual = None
60  chsLabel = None
61 
62  if doApplyChargedHadronSubtraction:
63  if not hasattr(process, "pfNoPUchsMEt"):
64  process.load("RecoMET.METPUSubtraction.pfNoPUchsMEt_cff")
65  uncorrectedJetCollection = 'ak4PFchsJets'
66  smearedUncorrectedJetCollection = "smearedUncorrectedJetsForPFNoPUchsMEt"
67  correctedJetCollection = 'calibratedAK4PFchsJetsForPFNoPUchsMEt'
68  smearedCorrectedJetCollection = "smearedCorrectedJetsForPFNoPUchsMEt"
69  smearedPFCandidateCollection = "smearedPFCandidatesForPFNoPUchsMEt"
70  smearedPFCandToVertexAssociation = "smearedPFCandidateToVertexAssociationForPFNoPUchsMEt"
71  puJetId = "puJetIdForPFNoPUchsMEt"
72  puJetIdTag = "fullId"
73  pfNoPUMEtData = "pfNoPUchsMEtData"
74  pfNoPUMEt = "pfNoPUchsMEt"
75  pfNoPUMEtSequence = "pfNoPUchsMEtSequence"
76  patPFMetNoPileUp = "patPFNoPUchsMEt"
77  jetCorrLabelUpToL3 = "ak4PFchsL1FastL2L3Corrector"
78  jetCorrLabelUpToL3Residual = "ak4PFchsL1FastL2L3ResidualCorrector"
79  chsLabel = "chs"
80  else:
81  if not hasattr(process, "pfNoPUMEt"):
82  process.load("RecoMET.METPUSubtraction.pfNoPUMET_cff")
83  uncorrectedJetCollection = 'ak4PFJets'
84  smearedUncorrectedJetCollection = "smearedUncorrectedJetsForPFNoPUMEt"
85  correctedJetCollection = 'calibratedAK4PFJetsForPFNoPUMEt'
86  smearedCorrectedJetCollection = "smearedCorrectedJetsForPFNoPUMEt"
87  smearedPFCandidateCollection = "smearedPFCandidatesForPFNoPUMEt"
88  smearedPFCandToVertexAssociation = "smearedPFCandidateToVertexAssociationForPFNoPUMEt"
89  puJetId = "puJetIdForPFNoPUMEt"
90  puJetIdTag = "full53xId"
91  pfNoPUMEtData = "pfNoPUMEtData"
92  pfNoPUMEt = "pfNoPUMEt"
93  pfNoPUMEtSequence = "pfNoPUMEtSequence"
94  patPFMetNoPileUp = "patPFNoPUMEt"
95  jetCorrLabelUpToL3 = "ak4PFL1FastL2L3Corrector"
96  jetCorrLabelUpToL3Residual = "ak4PFL1FastL2L3ResidualCorrector"
97  chsLabel = ""
98 
99  process.load("RecoMET.METPUSubtraction.pfNoPUMET_cff")
100  if postfix != "":
101  configtools.cloneProcessingSnippet(process, getattr(process, pfNoPUMEtSequence), postfix) #getattr(process, pfNoPUMEtSequence)
102 
103  # CV: set 'sfNoPUjetOffsetEnCorr' parameter to value
104  # that depends on whether data or MC is being processed
105  pfNoPUMEtModule = getattr(process, pfNoPUMEt + postfix)
106  pfNoPUMEtModule.sfNoPUjetOffsetEnCorr = cms.double(sfNoPUjetOffsetEnCorr)
107 
108  uncalibratedPFCandCollection = pfCandCollection.moduleLabel
109  if doSmearJets:
110  process.load("RecoJets.Configuration.GenJetParticles_cff")
111  metUncertaintySequence += process.genParticlesForJetsNoNu
112  process.load("RecoJets.Configuration.RecoGenJets_cff")
113  metUncertaintySequence += process.ak4GenJetsNoNu
114  setattr(process, smearedUncorrectedJetCollection + postfix, cms.EDProducer("SmearedPFJetProducer",
115  src = cms.InputTag(uncorrectedJetCollection),
116  jetCorrLabel = cms.InputTag(jetCorrLabelUpToL3.value()),
117  dRmaxGenJetMatch = cms.string('min(0.5, 0.1 + 0.3*exp(-0.05*(genJetPt - 10.)))'),
118  sigmaMaxGenJetMatch = cms.double(3.),
119  inputFileName = cms.FileInPath('PhysicsTools/PatUtils/data/pfJetResolutionMCtoDataCorrLUT.root'),
120  lutName = cms.string('pfJetResolutionMCtoDataCorrLUT'),
121  jetResolutions = jetResolutions.METSignificance_params,
122  skipRawJetPtThreshold = cms.double(10.), # GeV
123  skipCorrJetPtThreshold = cms.double(1.e-2),
124  srcGenJets = cms.InputTag('ak4GenJetsNoNu'),
125  ##verbosity = cms.int32(1)
126  ))
127  metUncertaintySequence += getattr(process, smearedUncorrectedJetCollection + postfix)
128  getattr(process, correctedJetCollection + postfix).src = cms.InputTag(smearedUncorrectedJetCollection + postfix)
129  setattr(process, smearedPFCandidateCollection + postfix, cms.EDProducer("SmearedPFCandidateProducerForPFNoPUMEt",
130  srcPFCandidates = pfCandCollection,
131  srcJets = cms.InputTag(uncorrectedJetCollection),
132  jetCorrLabel = cms.InputTag(jetCorrLabelUpToL3.value()),
133  dRmaxGenJetMatch = cms.string('min(0.5, 0.1 + 0.3*exp(-0.05*(genJetPt - 10.)))'),
134  sigmaMaxGenJetMatch = cms.double(3.),
135  inputFileName = cms.FileInPath('PhysicsTools/PatUtils/data/pfJetResolutionMCtoDataCorrLUT.root'),
136  lutName = cms.string('pfJetResolutionMCtoDataCorrLUT'),
137  jetResolutions = jetResolutions.METSignificance_params,
138  skipRawJetPtThreshold = cms.double(10.), # GeV
139  skipCorrJetPtThreshold = cms.double(1.e-2),
140  srcGenJets = cms.InputTag('ak4GenJetsNoNu'),
141  ##verbosity = cms.int32(1)
142  ))
143  metUncertaintySequence += getattr(process, smearedPFCandidateCollection + postfix)
144  uncalibratedPFCandCollection = smearedPFCandidateCollection + postfix
145  setattr(process, smearedPFCandToVertexAssociation + postfix, getattr(process, "pfCandidateToVertexAssociationForPFNoPUMEt" + postfix).clone(
146  PFCandidateCollection = cms.InputTag(smearedPFCandidateCollection + postfix)
147  ))
148  metUncertaintySequence += getattr(process, smearedPFCandToVertexAssociation + postfix)
149  modulePFNoPUMEtData = getattr(process, pfNoPUMEtData + postfix) ##1
150  setattr(modulePFNoPUMEtData, "srcPFCandidates", cms.InputTag(smearedPFCandidateCollection + postfix))
151  setattr(modulePFNoPUMEtData, "srcPFCandToVertexAssociations", cms.InputTag(smearedPFCandToVertexAssociation + postfix))
152 
153  calibratedPFCandCollection = uncalibratedPFCandCollection
154  calibratedPFCandToVertexAssociation = "pfCandidateToVertexAssociationForPFNoPUMEt" + postfix
155  calibratedPFCandPFNoPUMEtData = pfNoPUMEtData + postfix
156  if doApplyUnclEnergyCalibration:
157  calibratedPFCandCollection = "calibratedPFCandidatesForPFNoPUMEt" + postfix
158  setattr(process, calibratedPFCandCollection, cms.EDProducer("PFCandResidualCorrProducer",
159  src = cms.InputTag(uncalibratedPFCandCollection),
160  residualCorrLabel = cms.string(""),
161  residualCorrEtaMax = cms.double(9.9),
162  extraCorrFactor = cms.double(1.),
163  isMC = cms.bool(True),
164  srcGenPileUpSummary = cms.InputTag('addPileupInfo'),
165  residualCorrVsNumPileUp = cms.PSet(
166  data = cms.PSet(
167  offset = cms.FileInPath('JetMETCorrections/Type1MET/data/unclEnResidualCorr_Data_runs190456to208686_pfCands_offset.txt'),
168  slope = cms.FileInPath('JetMETCorrections/Type1MET/data/unclEnResidualCorr_Data_runs190456to208686_pfCands_slope.txt')
169  ),
170  mc = cms.PSet(
171  offset = cms.FileInPath('JetMETCorrections/Type1MET/data/unclEnResidualCorr_ZplusJets_madgraph_pfCands_offset.txt'),
172  slope = cms.FileInPath('JetMETCorrections/Type1MET/data/unclEnResidualCorr_ZplusJets_madgraph_pfCands_slope.txt')
173  )
174  ),
175  verbosity = cms.int32(0)
176  ))
177  metUncertaintySequence += getattr(process, calibratedPFCandCollection)
178  calibratedPFCandToVertexAssociation = "calibratedPFCandidateToVertexAssociationForPFNoPUMEt" + postfix
179  setattr(process, calibratedPFCandToVertexAssociation, getattr(process, "pfCandidateToVertexAssociationForPFNoPUMEt" + postfix).clone(
180  PFCandidateCollection = cms.InputTag(calibratedPFCandCollection)
181  ))
182  metUncertaintySequence += getattr(process, calibratedPFCandToVertexAssociation)
183  calibratedPFCandPFNoPUMEtData = "calibratedPFCandPFNoPUMEtData" + postfix
184  setattr(process, calibratedPFCandPFNoPUMEtData, getattr(process, "pfNoPUMEtData" + postfix).clone(
185  srcPFCandidates = cms.InputTag(calibratedPFCandCollection),
186  srcPFCandToVertexAssociations = cms.InputTag(calibratedPFCandToVertexAssociation),
187  ))
188  getattr(process, pfNoPUMEtSequence + postfix).replace(
189  getattr(process, "pfNoPUMEtData" + postfix),
190  getattr(process, "pfNoPUMEtData" + postfix) + getattr(process, calibratedPFCandPFNoPUMEtData))
191  getattr(process, "pfNoPUMEt" + postfix).srcMVAMEtData = cms.InputTag(calibratedPFCandPFNoPUMEtData)
192  getattr(process, "pfMETcorrType0ForPFNoPUMEt" + postfix).srcPFCandidateToVertexAssociations = cms.InputTag(calibratedPFCandToVertexAssociation)
193 
194  metUncertaintySequence += getattr(process, pfNoPUMEtSequence + postfix)
195 
# if doApplyChargedHadronSubtraction:
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
def runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.toolCode (   self,
  process 
)

Definition at line 482 of file runNoPileUpMEtUncertainties.py.

References trigTools._addEventContent(), runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties._addPFNoPUMEt(), jmeUncertaintyTools.JetMEtUncertaintyTools._addShiftedParticleCollections(), editorTools.UserCodeTool._parameters, heavyIonTools.ConfigureHeavyIons._parameters, HiCoreTools.RestrictInputToAOD._parameters, coreTools.RunOnData._parameters, trackTools.MakeAODTrackCandidates._parameters, metTools.AddMETCollection._parameters, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigFolder._parameters, Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._parameters, heavyIonTools.ProductionDefaults._parameters, ConfigToolBase.ConfigToolBase._parameters, editorTools.ChangeSource._parameters, TAbsFitConstraint._parameters, TAbsFitParticle._parameters, HiCoreTools.RemoveMCMatching._parameters, coreTools.RemoveMCMatching._parameters, cmsswVersionTools.PickRelValInputFiles._parameters, jetTools.AddJetCollection._parameters, trackTools.MakePATTrackCandidates._parameters, trigTools.SwitchOnTrigger._parameters, heavyIonTools.SelectionDefaults._parameters, HiCoreTools.RemoveAllPATObjectsBut._parameters, heavyIonTools.DisbaleMonteCarloDeps._parameters, HiCoreTools.RemoveSpecificPATObjects._parameters, trigTools.SwitchOnTriggerStandAlone._parameters, trackTools.MakeTrackCandidates._parameters, tauTools.AddTauCollection._parameters, trigTools.SwitchOnTriggerMatching._parameters, HiCoreTools.RemoveCleaning._parameters, HiCoreTools.AddCleaning._parameters, trigTools.SwitchOnTriggerMatchingStandAlone._parameters, trigTools.SwitchOnTriggerMatchEmbedding._parameters, jetTools.SwitchJetCollection._parameters, jetTools.AddJetID._parameters, jetTools.SetTagInfos._parameters, objectsUncertaintyTools.addSmearedJets(), and objectsUncertaintyTools.isValidInputTag().

483  def toolCode(self, process):
484  electronCollection = self._parameters['electronCollection'].value
485  photonCollection = self._parameters['photonCollection'].value
486  muonCollection = self._parameters['muonCollection'].value
487  tauCollection = self._parameters['tauCollection'].value
488  jetCollection = self._parameters['jetCollection'].value
489  jetCorrLabel = self._parameters['jetCorrLabel'].value
490  doApplyChargedHadronSubtraction = self._parameters['doApplyChargedHadronSubtraction'].value
491  chsLabel = None
492  if doApplyChargedHadronSubtraction:
493  chsLabel = "chs"
494  else:
495  chsLabel = ""
496  doSmearJets = self._parameters['doSmearJets'].value
497  jetSmearFileName = self._parameters['jetSmearFileName'].value
498  jetSmearHistogram = self._parameters['jetSmearHistogram'].value
499  pfCandCollection = self._parameters['pfCandCollection'].value
500  doApplyUnclEnergyCalibration = self._parameters['doApplyUnclEnergyCalibration'].value
501  sfNoPUjetOffsetEnCorr = self._parameters['sfNoPUjetOffsetEnCorr'].value
502  jetCorrPayloadName = self._parameters['jetCorrPayloadName'].value
503  jetCorrLabelUpToL3 = self._parameters['jetCorrLabelUpToL3'].value
504  jetCorrLabelUpToL3Res = self._parameters['jetCorrLabelUpToL3Res'].value
505  jecUncertaintyFile = self._parameters['jecUncertaintyFile'].value
506  jecUncertaintyTag = self._parameters['jecUncertaintyTag'].value
507  varyByNsigmas = self._parameters['varyByNsigmas'].value
508  addToPatDefaultSequence = self._parameters['addToPatDefaultSequence'].value
509  outputModule = self._parameters['outputModule'].value
510  postfix = self._parameters['postfix'].value
511 
512  if not hasattr(process, "pf%sNoPUMEtUncertaintySequence%s" % (chsLabel, postfix)):
513  metUncertaintySequence = cms.Sequence()
514  setattr(process, "pf%sNoPUMEtUncertaintySequence%s" % (chsLabel, postfix), metUncertaintySequence)
515  metUncertaintySequence = getattr(process, "pf%sNoPUMEtUncertaintySequence%s" % (chsLabel, postfix))
516 
517  collectionsToKeep = []
518 
519  lastJetCollection = jetCollection.value()
520 
521  # smear jet energies to account for difference in jet resolutions between MC and Data
522  # (cf. JME-10-014 PAS)
523  if isValidInputTag(jetCollection):
524  if doSmearJets:
525  lastJetCollection = \
526  addSmearedJets(process, lastJetCollection, [ "smeared", jetCollection.value(), "ForPFNoPU%sMEt" % chsLabel ],
527  jetSmearFileName, jetSmearHistogram, jetResolutions, varyByNsigmas, None,
528  sequence = metUncertaintySequence, postfix = postfix)
529 
530  collectionsToKeep.append(lastJetCollection)
531 
532  #--------------------------------------------------------------------------------------------
533  # produce collection of electrons/photons, muons, tau-jet candidates and jets
534  # shifted up/down in energy by their respective energy uncertainties
535  #--------------------------------------------------------------------------------------------
536 
537  shiftedParticleSequence, shiftedParticleCollections, addCollectionsToKeep = \
538  self._addShiftedParticleCollections(process,
539  electronCollection.value(),
540  photonCollection.value(),
541  muonCollection.value(),
542  tauCollection.value(),
543  jetCollection.value(), lastJetCollection, lastJetCollection,
544  doSmearJets,
545  jetCorrLabelUpToL3, jetCorrLabelUpToL3Res,
546  jecUncertaintyFile, jecUncertaintyTag,
547  jetSmearFileName, jetSmearHistogram,
548  varyByNsigmas,
549  "ForPFNoPU%sMEt%s" % (chsLabel, postfix))
550  setattr(process, "shiftedParticlesForPFNoPU%sMEtUncertainties%s" % (chsLabel, postfix), shiftedParticleSequence)
551  metUncertaintySequence += getattr(process, "shiftedParticlesForPFNoPU%sMEtUncertainties%s" % (chsLabel, postfix))
552  collectionsToKeep.extend(addCollectionsToKeep)
553 
554  #--------------------------------------------------------------------------------------------
555  # propagate shifted particle energies to No-PU MET
556  #--------------------------------------------------------------------------------------------
557 
558  self._addPFNoPUMEt(process, metUncertaintySequence,
559  shiftedParticleCollections, pfCandCollection, doApplyUnclEnergyCalibration,
560  sfNoPUjetOffsetEnCorr,
561  collectionsToKeep,
562  doApplyChargedHadronSubtraction,
563  doSmearJets,
564  jecUncertaintyFile, jecUncertaintyTag,
565  varyByNsigmas,
566  postfix)
567 
568  # insert metUncertaintySequence into patDefaultSequence
569  if addToPatDefaultSequence:
570  if not hasattr(process, "patDefaultSequence"):
571  raise ValueError("PAT default sequence is not defined !!")
572  process.patDefaultSequence += metUncertaintySequence
573 
574  # add shifted + unshifted collections pf pat::Electrons/Photons,
575  # Muons, Taus, Jets and MET to PAT-tuple event content
576  if outputModule is not None and hasattr(process, outputModule):
577  getattr(process, outputModule).outputCommands = _addEventContent(
578  getattr(process, outputModule).outputCommands,
579  [ 'keep *_%s_*_%s' % (collectionToKeep, process.name_()) for collectionToKeep in collectionsToKeep ])
def _addEventContent
Definition: trigTools.py:29

Member Data Documentation

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties._defaultParameters = dicttypes.SortedKeysDict()
staticprivate

Definition at line 21 of file runNoPileUpMEtUncertainties.py.

Referenced by HiCoreTools.RestrictInputToAOD.__call__(), HiCoreTools.RemoveMCMatching.__call__(), HiCoreTools.RemoveAllPATObjectsBut.__call__(), runType1CaloMEtUncertainties.RunType1CaloMEtUncertainties.__call__(), HiCoreTools.RemoveSpecificPATObjects.__call__(), HiCoreTools.RemoveCleaning.__call__(), runType1PFMEtUncertainties.RunType1PFMEtUncertainties.__call__(), HiCoreTools.AddCleaning.__call__(), runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.__call__(), HiCoreTools.RestrictInputToAOD.__init__(), runType1CaloMEtUncertainties.RunType1CaloMEtUncertainties.__init__(), runType1PFMEtUncertainties.RunType1PFMEtUncertainties.__init__(), runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.__init__(), HiCoreTools.RemoveMCMatching.__init__(), HiCoreTools.RemoveAllPATObjectsBut.__init__(), HiCoreTools.RemoveSpecificPATObjects.__init__(), HiCoreTools.RemoveCleaning.__init__(), HiCoreTools.AddCleaning.__init__(), ConfigToolBase.ConfigToolBase.dumpPython(), ConfigToolBase.ConfigToolBase.getAllowedValues(), HiCoreTools.RestrictInputToAOD.getDefaultParameters(), HiCoreTools.RemoveMCMatching.getDefaultParameters(), HiCoreTools.RemoveAllPATObjectsBut.getDefaultParameters(), HiCoreTools.RemoveSpecificPATObjects.getDefaultParameters(), HiCoreTools.RemoveCleaning.getDefaultParameters(), HiCoreTools.AddCleaning.getDefaultParameters(), ConfigToolBase.ConfigToolBase.reset(), and ConfigToolBase.ConfigToolBase.setParameter().

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties._label = 'runNoPileUpMEtUncertainties'
staticprivate

Definition at line 20 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.addResidualJES = cms.bool(True)
static

Definition at line 288 of file runNoPileUpMEtUncertainties.py.

runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.calibratedJetsResShift = None
static

Definition at line 326 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.correctedJetsEnShift = None
static

Definition at line 276 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.correctedJetsEnShift = "correctedJetsEn%sForPFNoPUchsMEt%s"
static

Definition at line 279 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.correctedJetsResShift = correctedJetCollection.replace("Jets", "JetsRes"+var)
static

Definition at line 341 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.correctedJetsShift = "correctedJets%s%s%sForPFNoPU%sMEt%s"
static

Definition at line 239 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.jetCorrInputFileName = cms.FileInPath(jecUncertaintyFile)
static

Definition at line 286 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.jetCorrLabelUpToL3 = cms.InputTag(jetCorrLabelUpToL3.value())
static

Definition at line 289 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.jetCorrLabelUpToL3Res = cms.InputTag(jetCorrLabelUpToL3Residual.value())
static

Definition at line 290 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.jetCorrUncertaintyTag = cms.string(jecUncertaintyTag)
static

Definition at line 287 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.jets = cms.InputTag(correctedJetsShift)
static

Definition at line 247 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.minJetPt = cms.double(10.0)
static

Definition at line 394 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.moduleMEtDataLeptonShift = getattr(process, calibratedPFCandPFNoPUMEtData)
static

Definition at line 250 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.moduleMEtDataLeptonShiftName = "%s%s%s%s%s"
static

Definition at line 256 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.moduleMEtLeptonShift = getattr(process, pfNoPUMEt + postfix)
static

Definition at line 259 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.moduleMEtLeptonShiftName = "%s%s%s%s%s"
static

Definition at line 264 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.modulePFCandidateToVertexAssociationShift
static
Initial value:
1 = process.pfCandidateToVertexAssociation.clone(
2  PFCandidateCollection = cms.InputTag(pfCandCollectionLeptonShift[var])
3  )

Definition at line 224 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.modulePFCandidateToVertexAssociationShiftName = "pfCandidateToVertexAssociation%s%s%sForPileUpPF%sMEt%s"
static

Definition at line 227 of file runNoPileUpMEtUncertainties.py.

runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.pfCandCollectionLeptonShift = \
static

Definition at line 213 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.PFCandidateCollection = cms.InputTag(smearedPFCandidatesJetResShift)
static

Definition at line 356 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.pfCandidateToVertexAssociationUnclusteredEnShift = None
static

Definition at line 379 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.pfCandidateToVertexAssociationUnclusteredEnShift = "pfCandidateToVertexAssociationUnclusteredEn%sForPFNoPUchsMEt%s"
static

Definition at line 383 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.pfCandsUnclusteredEnShift = None
static

Definition at line 378 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.pfCandsUnclusteredEnShift = "pfCandsUnclusteredEn%sForPFNoPUchsMEt%s"
static

Definition at line 382 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.pfMETcorrType0UnclusteredEnShift = None
static

Definition at line 380 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.pfMETcorrType0UnclusteredEnShift = "pfMETcorrType0UnclusteredEn%sForPFNoPUchsMEt%s"
static

Definition at line 384 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.pfNoPUMEtDataJetEnShift = "%sJetEn%s%s"
static

Definition at line 305 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.pfNoPUMEtDataJetResShift = "%sJetRes%s%s"
static

Definition at line 359 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.pfNoPUMEtDataUnclusteredEnShift = "%sUnclusteredEn%s%s"
static

Definition at line 407 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.pfNoPUMEtJetEnShift = "%sJetEn%s%s"
static

Definition at line 311 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.pfNoPUMEtJetResShift = "%sJetRes%s%s"
static

Definition at line 367 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.pfNoPUMEtUnclusteredEnShift = "%sUnclusteredEn%s%s"
static

Definition at line 413 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.puJetIdJetEnShift = "%sJetEn%s%s"
static

Definition at line 300 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.puJetIdJetResShift = "%sJetRes%s%s"
static

Definition at line 346 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.puJetIdShift = "puJetId%s%s%sForPFNoPU%sMEt%s"
static

Definition at line 245 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.shiftBy = cms.double( varDir[var] *varyByNsigmas)
static

Definition at line 291 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.smearedPFCandidatesJetResShift = None
static

Definition at line 327 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.smearedPFCandidatesJetResShift = "smearedPFCandidatesJetRes%sForPFNoPUchsMEt%s"
static

Definition at line 331 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.smearedPFCandToVertexAssociationJetResShift = None
static

Definition at line 328 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.smearedPFCandToVertexAssociationJetResShift = "smearedPFCandidateToVertexAssociationJetRes%sForPFNoPUchsMEt%s"
static

Definition at line 332 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.smearedUncorrectedJetsResShift = None
static

Definition at line 325 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.smearedUncorrectedJetsResShift = "smearedUncorrectedJetsRes%sForPFNoPUchsMEt%s"
static

Definition at line 330 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.src = cms.InputTag(uncorrectedJetsShiftName)
static

verbosity = cms.int32(1)

Definition at line 241 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.srcJetIds = cms.InputTag(puJetIdShift, puJetIdTag)
static

Definition at line 254 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.srcJets = cms.InputTag(correctedJetsShift)
static

Definition at line 253 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.srcLeptons
static
Initial value:
1 = cms.VInputTag(self._getLeptonsForPFMEtInput(
2  shiftedParticleCollections, leptonCollection[2], '%s%s%s' % (leptonCollection[2], leptonCollection[1], var), postfix = postfix))

Definition at line 261 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.srcMVAMEtData = cms.InputTag(pfNoPUMEtDataJetEnShift)
static

Definition at line 313 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.srcMVAMEtDataLeptonMatch = cms.InputTag(moduleMEtDataLeptonShiftName)
static

Definition at line 260 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.srcPFCandidates = cms.InputTag(pfCandCollectionLeptonShift[var])
static

Definition at line 251 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.srcPFCandidateToVertexAssociations = cms.InputTag(pfCandidateToVertexAssociationUnclusteredEnShift)
static

Definition at line 404 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.srcPFCandToVertexAssociations = cms.InputTag(modulePFCandidateToVertexAssociationShiftName)
static

Definition at line 252 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.srcType0Correction = cms.InputTag(pfMETcorrType0UnclusteredEnShift)
static

Definition at line 417 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.unclEnUncertainty = cms.double(0.10)
static

Definition at line 396 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.uncorrectedJetsEnShift = None
static

Definition at line 275 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.uncorrectedJetsEnShift = "uncorrectedJetsEn%sForPFNoPUchsMEt%s"
static

Definition at line 278 of file runNoPileUpMEtUncertainties.py.

tuple runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.uncorrectedJetsShift
static
Initial value:
1 = cms.EDProducer("ShiftedPFJetProducerByMatchedObject",
2  srcJets = cms.InputTag(uncorrectedJetCollection),
3  srcUnshiftedObjects = cms.InputTag(shiftedParticleCollections[ leptonCollection[2] ]),
4  srcShiftedObjects = cms.InputTag(shiftedParticleCollections['%s%sUp' % (leptonCollection[2], leptonCollection[1])]),
5  dRmatch_Jet = cms.double(leptonCollection[3])
6  )

Definition at line 231 of file runNoPileUpMEtUncertainties.py.

string runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.uncorrectedJetsShiftName = "pfJets%s%s%sForPFNoPU%sMEt%s"
static

Definition at line 230 of file runNoPileUpMEtUncertainties.py.

dictionary runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.varDir = { 'Up':1., 'Down':-1. }
static

Definition at line 203 of file runNoPileUpMEtUncertainties.py.

list runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.variations = ['Up','Down']
static

Definition at line 202 of file runNoPileUpMEtUncertainties.py.