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

Functions

 SetupArguments ()

Variables

 args = SetupArguments().parse_args()
 flags = initConfigFlags()
 NumThreads
 NumConcurrentEvents
 Files
 MaxEvents
 SkipEvents
 cfg = MainServicesCfg(flags)
 msgService = cfg.getService('MessageSvc')
 Format
list listofTTVAWP = [ 'Nonprompt_All_MaxWeight' ]
 iso_tool
 iso_corr_tool
 histSvc = CompFactory.THistSvc(Output=["ISOCORRECTION DATAFILE='%s', OPT='RECREATE'"%(args.outputFile)])
 sc = cfg.run(flags.Exec.MaxEvents)

Function Documentation

◆ SetupArguments()

IsoCloseByCorrectionTest.SetupArguments ( )

Definition at line 5 of file IsoCloseByCorrectionTest.py.

5def SetupArguments():
6 from argparse import ArgumentParser
7 parser = ArgumentParser()
8 parser.add_argument("--threads", "-t", type=int, help="number of threads", default=1)
9 parser.add_argument("--outputFile", default="IsoCloseByTestFile.root", help="File name of the output file", metavar="FILE")
10 parser.add_argument("--inputFile", "-i", default=[], help="Input file to run on ", nargs="+")
11 parser.add_argument("--dir", "-d", default=[], help="List of directories containing the root files", nargs="+")
12 parser.add_argument("--maxEvents", default=-1, type=int, help="How many events shall be run maximally")
13 parser.add_argument("--skipEvents", default=0, type=int, help="How many events shall be skipped at the beginning of the job")
14 return parser
15

Variable Documentation

◆ args

IsoCloseByCorrectionTest.args = SetupArguments().parse_args()

Definition at line 18 of file IsoCloseByCorrectionTest.py.

◆ cfg

IsoCloseByCorrectionTest.cfg = MainServicesCfg(flags)

Definition at line 34 of file IsoCloseByCorrectionTest.py.

◆ Files

IsoCloseByCorrectionTest.Files

Definition at line 22 of file IsoCloseByCorrectionTest.py.

◆ flags

IsoCloseByCorrectionTest.flags = initConfigFlags()

Definition at line 19 of file IsoCloseByCorrectionTest.py.

◆ Format

IsoCloseByCorrectionTest.Format

Definition at line 36 of file IsoCloseByCorrectionTest.py.

◆ histSvc

IsoCloseByCorrectionTest.histSvc = CompFactory.THistSvc(Output=["ISOCORRECTION DATAFILE='%s', OPT='RECREATE'"%(args.outputFile)])

Definition at line 96 of file IsoCloseByCorrectionTest.py.

◆ iso_corr_tool

IsoCloseByCorrectionTest.iso_corr_tool
Initial value:
1= cfg.popToolsAndMerge(IsoCloseByCorrectionToolCfg(flags,
2 BackupPrefix="vanilla",
3 IsolationSelectionTool = iso_tool,
4 SelectionDecorator = "considerInCorrection",
5 IsolationSelectionDecorator = "correctedIsol"))

Definition at line 75 of file IsoCloseByCorrectionTest.py.

◆ iso_tool

IsoCloseByCorrectionTest.iso_tool
Initial value:
1= cfg.popToolsAndMerge(IsolationSelectionToolCfg(flags,
2 ElectronWP="PflowTight_FixedRad",
3 MuonWP="PflowTight_FixedRad",
4 InMuonContainer = "Muons",
5 InElecContainer = "Electrons"))

Definition at line 70 of file IsoCloseByCorrectionTest.py.

◆ listofTTVAWP

list IsoCloseByCorrectionTest.listofTTVAWP = [ 'Nonprompt_All_MaxWeight' ]

Definition at line 47 of file IsoCloseByCorrectionTest.py.

◆ MaxEvents

IsoCloseByCorrectionTest.MaxEvents

Definition at line 28 of file IsoCloseByCorrectionTest.py.

◆ msgService

IsoCloseByCorrectionTest.msgService = cfg.getService('MessageSvc')

Definition at line 35 of file IsoCloseByCorrectionTest.py.

◆ NumConcurrentEvents

IsoCloseByCorrectionTest.NumConcurrentEvents

Definition at line 21 of file IsoCloseByCorrectionTest.py.

◆ NumThreads

IsoCloseByCorrectionTest.NumThreads

Definition at line 20 of file IsoCloseByCorrectionTest.py.

◆ sc

IsoCloseByCorrectionTest.sc = cfg.run(flags.Exec.MaxEvents)

Definition at line 99 of file IsoCloseByCorrectionTest.py.

◆ SkipEvents

IsoCloseByCorrectionTest.SkipEvents

Definition at line 29 of file IsoCloseByCorrectionTest.py.