ATLAS Offline Software
Loading...
Searching...
No Matches
python.JetRecCommon Namespace Reference

Functions

 isMC (flags)

Function Documentation

◆ isMC()

python.JetRecCommon.isMC ( flags)
A simple filter function for  testing if we're running in MC
returns (bool, str) where the str contains an explanation of why the bool is False.
(probably worth re-allocating somehere else)

Definition at line 3 of file JetRecCommon.py.

3def isMC(flags):
4 """A simple filter function for testing if we're running in MC
5 returns (bool, str) where the str contains an explanation of why the bool is False.
6 (probably worth re-allocating somehere else)"""
7 from AthenaConfiguration.Enums import Format # Test & exclude reading MC BS, no truth info
8 return (
9 (flags.Input.isMC or flags.Overlay.DataOverlay)
10 # Allow for case of no input file, i.e. evgen
11 and (flags.Input.FileNentries==-1 or flags.Input.Format!=Format.BS)
12 ), "Input file is not MC"