ATLAS Offline Software
Functions | Variables
testPileupReweightingAlgConfig Namespace Reference

Functions

def get_parser ()
 
def run ()
 

Variables

string _input_help = "with no inputs use ASG_TEST_FILE_MC"
 

Function Documentation

◆ get_parser()

def testPileupReweightingAlgConfig.get_parser ( )

Definition at line 20 of file testPileupReweightingAlgConfig.py.

20 def get_parser():
21  parser = ArgumentParser(description=__doc__)
22  parser.add_argument('input_files', nargs='*', help=_input_help)
23  parser.add_argument('-m', '--max-events', type=int, const=10, nargs='?')
24  parser.add_argument('-d', '--debug-logs', action='store_true')
25  return parser.parse_args()
26 

◆ run()

def testPileupReweightingAlgConfig.run ( )

Definition at line 27 of file testPileupReweightingAlgConfig.py.

27 def run():
28  args = get_parser()
29  flags = initConfigFlags()
30  flags.Input.Files = args.input_files or [os.environ['ASG_TEST_FILE_MC']]
31  if args.debug_logs:
32  flags.Exec.OutputLevel = DEBUG
33  if args.max_events:
34  flags.Exec.MaxEvents = args.max_events
35  ca = MainServicesCfg(flags)
36  ca.merge(PoolReadCfg(flags))
37 
38  ca.merge(PileupReweightingAlgCfg(flags))
39 
40  ca.run()
41 

Variable Documentation

◆ _input_help

string testPileupReweightingAlgConfig._input_help = "with no inputs use ASG_TEST_FILE_MC"
private

Definition at line 7 of file testPileupReweightingAlgConfig.py.

run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
python.PileupReweightingAlgConfig.PileupReweightingAlgCfg
def PileupReweightingAlgCfg(flags, name="PileupReweightingAlg", **kwargs)
Definition: PileupReweightingAlgConfig.py:39
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
testPileupReweightingAlgConfig.get_parser
def get_parser()
Definition: testPileupReweightingAlgConfig.py:20
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
python.PoolReadConfig.PoolReadCfg
def PoolReadCfg(flags)
Definition: PoolReadConfig.py:69