ATLAS Offline Software
Functions | Variables
testPMGTruthWeightsAlg 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 testPMGTruthWeightsAlg.get_parser ( )

Definition at line 18 of file testPMGTruthWeightsAlg.py.

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

◆ run()

def testPMGTruthWeightsAlg.run ( )

Definition at line 25 of file testPMGTruthWeightsAlg.py.

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

Variable Documentation

◆ _input_help

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

Definition at line 7 of file testPMGTruthWeightsAlg.py.

python.PMGTruthWeightAlgConfig.PMGTruthWeightAlgCfg
def PMGTruthWeightAlgCfg(flags, systematicsRegex='.*')
Definition: PMGTruthWeightAlgConfig.py:25
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
testPMGTruthWeightsAlg.get_parser
def get_parser()
Definition: testPMGTruthWeightsAlg.py:18
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
python.PoolReadConfig.PoolReadCfg
def PoolReadCfg(flags)
Definition: PoolReadConfig.py:69