ATLAS Offline Software
Loading...
Searching...
No Matches
MuonEfficiencyCorrectionsCfg Namespace Reference

Functions

 MuonScaleFactorTestAlgCfg (flags, name="MuonScaleFactorTestAlg", **kwargs)
 MuonEfficiencyCorrectionsCfg (flags, name="MuonEffiCorrections", **kwargs)
 setupHistSvcCfg (flags, out_file="EffTester.root")
 setupArgParser ()

Variables

 args = setupArgParser().parse_args()
 flags = initConfigFlags()
 NumThreads
 NumConcurrentEvents
 Files
 ShowDataDeps
 ShowDataFlow
 evaluate
 cfg = MainServicesCfg(flags)
list sf_tools
 withDetails
 True
 summariseProps
 sc = cfg.run(args.maxEvents)

Function Documentation

◆ MuonEfficiencyCorrectionsCfg()

MuonEfficiencyCorrectionsCfg.MuonEfficiencyCorrectionsCfg ( flags,
name = "MuonEffiCorrections",
** kwargs )

Definition at line 17 of file MuonEfficiencyCorrectionsCfg.py.

17def MuonEfficiencyCorrectionsCfg(flags, name="MuonEffiCorrections", **kwargs):
18 result = ComponentAccumulator()
19 kwargs.setdefault("ApplyKinematicSystematic", False)
20 eff_tool = CompFactory.CP.MuonEfficiencyScaleFactors(name, **kwargs)
21 result.setPrivateTools(eff_tool)
22 return result
23

◆ MuonScaleFactorTestAlgCfg()

MuonEfficiencyCorrectionsCfg.MuonScaleFactorTestAlgCfg ( flags,
name = "MuonScaleFactorTestAlg",
** kwargs )

Definition at line 7 of file MuonEfficiencyCorrectionsCfg.py.

7def MuonScaleFactorTestAlgCfg(flags, name="MuonScaleFactorTestAlg", **kwargs):
8 result = ComponentAccumulator()
9 from MuonSelectorTools.MuonSelectorToolsConfig import MuonSelectionToolCfg
10 kwargs.setdefault("MuonSelectionTool", result.popToolsAndMerge(MuonSelectionToolCfg(flags)))
11 from AsgAnalysisAlgorithms.PileupReweightingAlgConfig import PileupReweightingToolCfg
12 kwargs.setdefault("PileupReweightingTool", result.popToolsAndMerge(PileupReweightingToolCfg(flags)))
13 the_alg = CompFactory.CP.MuonScaleFactorTestAlg(name, **kwargs)
14 result.addEventAlgo(the_alg, primary = True)
15 return result
16

◆ setupArgParser()

MuonEfficiencyCorrectionsCfg.setupArgParser ( )

Definition at line 31 of file MuonEfficiencyCorrectionsCfg.py.

31def setupArgParser():
32 from argparse import ArgumentParser
33
34 parser = ArgumentParser()
35 parser.add_argument("--threads", type=int, help="number of threads", default=1)
36 parser.add_argument("--inputFile", "-i", default=[
37 "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/Tier0ChainTests/mc20_13TeV.361107.PowhegPythia8EvtGen_AZNLOCTEQ6L1_Zmumu.recon.AOD.e3601_s3681_r13167/AOD.27312826._000061.pool.root.1"
38 ],
39 help="Input file to run on ", nargs="+")
40 parser.add_argument("--outRootFile", default="EffiDump.root", help="Output ROOT file to dump the geomerty")
41 parser.add_argument("--maxEvents", type=int, help="Maximum events to run on", default = -1)
42 return parser
43
44
45

◆ setupHistSvcCfg()

MuonEfficiencyCorrectionsCfg.setupHistSvcCfg ( flags,
out_file = "EffTester.root" )

Definition at line 24 of file MuonEfficiencyCorrectionsCfg.py.

24def setupHistSvcCfg(flags, out_file="EffTester.root"):
25 result = ComponentAccumulator()
26 if len(out_file) == 0: return result
27 histSvc = CompFactory.THistSvc(Output=["MUONEFFTESTER DATAFILE='{out_file}', OPT='RECREATE'".format(out_file = out_file)])
28 result.addService(histSvc, primary=True)
29 return result
30

Variable Documentation

◆ args

MuonEfficiencyCorrectionsCfg.args = setupArgParser().parse_args()

Definition at line 49 of file MuonEfficiencyCorrectionsCfg.py.

◆ cfg

MuonEfficiencyCorrectionsCfg.cfg = MainServicesCfg(flags)

Definition at line 62 of file MuonEfficiencyCorrectionsCfg.py.

◆ evaluate

MuonEfficiencyCorrectionsCfg.evaluate

Definition at line 58 of file MuonEfficiencyCorrectionsCfg.py.

◆ Files

MuonEfficiencyCorrectionsCfg.Files

Definition at line 54 of file MuonEfficiencyCorrectionsCfg.py.

◆ flags

MuonEfficiencyCorrectionsCfg.flags = initConfigFlags()

Definition at line 51 of file MuonEfficiencyCorrectionsCfg.py.

◆ NumConcurrentEvents

MuonEfficiencyCorrectionsCfg.NumConcurrentEvents

Definition at line 53 of file MuonEfficiencyCorrectionsCfg.py.

◆ NumThreads

MuonEfficiencyCorrectionsCfg.NumThreads

Definition at line 52 of file MuonEfficiencyCorrectionsCfg.py.

◆ sc

MuonEfficiencyCorrectionsCfg.sc = cfg.run(args.maxEvents)

Definition at line 76 of file MuonEfficiencyCorrectionsCfg.py.

◆ sf_tools

list MuonEfficiencyCorrectionsCfg.sf_tools
Initial value:
1= [cfg.popToolsAndMerge(MuonEfficiencyCorrectionsCfg(flags,
2 WorkingPoint="Loose"))]

Definition at line 70 of file MuonEfficiencyCorrectionsCfg.py.

◆ ShowDataDeps

MuonEfficiencyCorrectionsCfg.ShowDataDeps

Definition at line 55 of file MuonEfficiencyCorrectionsCfg.py.

◆ ShowDataFlow

MuonEfficiencyCorrectionsCfg.ShowDataFlow

Definition at line 56 of file MuonEfficiencyCorrectionsCfg.py.

◆ summariseProps

MuonEfficiencyCorrectionsCfg.summariseProps

Definition at line 74 of file MuonEfficiencyCorrectionsCfg.py.

◆ True

MuonEfficiencyCorrectionsCfg.True

Definition at line 74 of file MuonEfficiencyCorrectionsCfg.py.

◆ withDetails

MuonEfficiencyCorrectionsCfg.withDetails

Definition at line 74 of file MuonEfficiencyCorrectionsCfg.py.