ATLAS Offline Software
Functions
python.PileupReweightingAlgConfig Namespace Reference

Functions

def PileupReweightingToolCfg (flags, name="PileupReweightingTool", commonPRW=True, **kwargs)
 
def PileupReweightingAlgCfg (flags, name="PileupReweightingAlg", **kwargs)
 

Function Documentation

◆ PileupReweightingAlgCfg()

def python.PileupReweightingAlgConfig.PileupReweightingAlgCfg (   flags,
  name = "PileupReweightingAlg",
**  kwargs 
)

Definition at line 39 of file PileupReweightingAlgConfig.py.

39 def PileupReweightingAlgCfg(flags, name="PileupReweightingAlg", **kwargs):
40  acc = ComponentAccumulator()
41  acc.addService(CompFactory.CP.SystematicsSvc("SystematicsSvc"))
42  kwargs.setdefault("pileupReweightingTool", acc.popToolsAndMerge(PileupReweightingToolCfg(flags)))
43  acc.addEventAlgo(CompFactory.CP.PileupReweightingAlg(name, **kwargs))
44  return acc
45 

◆ PileupReweightingToolCfg()

def python.PileupReweightingAlgConfig.PileupReweightingToolCfg (   flags,
  name = "PileupReweightingTool",
  commonPRW = True,
**  kwargs 
)

Definition at line 23 of file PileupReweightingAlgConfig.py.

23 def PileupReweightingToolCfg(flags, name="PileupReweightingTool", commonPRW=True, **kwargs):
24  acc = ComponentAccumulator()
25  from Campaigns.Utils import getMCCampaign
26  campaign = getMCCampaign(flags.Input.Files)
27 
28  from PileupReweighting.AutoconfigurePRW import defaultConfigFiles,getConfigurationFiles,getLumicalcFiles
29  kwargs.setdefault("LumiCalcFiles", getLumicalcFiles(campaign))
30  if commonPRW:
31  kwargs.setdefault("ConfigFiles", defaultConfigFiles(campaign))
32  else:
33  kwargs.setdefault("ConfigFiles", getConfigurationFiles(files=flags.Input.Files))
34 
35  acc.setPrivateTools(CompFactory.CP.PileupReweightingTool(**kwargs))
36  return acc
37 
38 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.PileupReweightingAlgConfig.PileupReweightingAlgCfg
def PileupReweightingAlgCfg(flags, name="PileupReweightingAlg", **kwargs)
Definition: PileupReweightingAlgConfig.py:39
python.AutoconfigurePRW.getConfigurationFiles
def getConfigurationFiles(campaign=None, dsid=None, data_type=None, files=None, useDefaultConfig=False)
Definition: AutoconfigurePRW.py:127
python.AutoconfigurePRW.defaultConfigFiles
def defaultConfigFiles(campaign)
Definition: AutoconfigurePRW.py:84
python.PileupReweightingAlgConfig.PileupReweightingToolCfg
def PileupReweightingToolCfg(flags, name="PileupReweightingTool", commonPRW=True, **kwargs)
Definition: PileupReweightingAlgConfig.py:23
python.AutoconfigurePRW.getLumicalcFiles
def getLumicalcFiles(campaign)
Definition: AutoconfigurePRW.py:6
python.Utils.getMCCampaign
def getMCCampaign(files)
Definition: Tools/Campaigns/python/Utils.py:27