CMS 3D CMS Logo

globals_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 
4 rhoTable = cms.EDProducer("GlobalVariablesTableProducer",
5  variables = cms.PSet(
6  fixedGridRhoFastjetAll = ExtVar( cms.InputTag("fixedGridRhoFastjetAll"), "double", doc = "rho from all PF Candidates, used e.g. for JECs" ),
7  fixedGridRhoFastjetCentralNeutral = ExtVar( cms.InputTag("fixedGridRhoFastjetCentralNeutral"), "double", doc = "rho from neutral PF Candidates with |eta| < 2.5, used e.g. for rho corrections of some lepton isolations" ),
8  fixedGridRhoFastjetCentralCalo = ExtVar( cms.InputTag("fixedGridRhoFastjetCentralCalo"), "double", doc = "rho from calo towers with |eta| < 2.5, used e.g. egamma PFCluster isolation" ),
9  )
10 )
11 
12 puTable = cms.EDProducer("SimplePileupFlatTableProducer",
13  src = cms.InputTag("slimmedAddPileupInfo"),
14  cut = cms.string("getBunchCrossing()==0"), # save only the pileup of the in-time bunch crossing
15  name= cms.string("Pileup"),
16  doc = cms.string("pileup information for bunch crossing 0"),
17  singleton = cms.bool(False), # slimmedAddPileupInfo collection has all the BXs, but only BX=0 is saved
18  extension = cms.bool(False),
19  variables = cms.PSet(
20  nTrueInt = Var( "getTrueNumInteractions()", int, doc="the true mean number of the poisson distribution for this event from which the number of interactions each bunch crossing has been sampled" ),
21  nPU = Var( "getPU_NumInteractions()", int, doc="the number of pileup interactions that have been added to the event in the current bunch crossing" ),
22  ),
23 )
24 
25 globalTables = cms.Sequence(rhoTable)
26 globalTablesMC = cms.Sequence(puTable)
def ExtVar(tag, valtype, compression=None, doc=None, mcOnly=False, precision=-1)
Definition: common_cff.py:31
def Var(expr, valtype, compression=None, doc=None, mcOnly=False, precision=-1)
Definition: common_cff.py:20