ATLAS Offline Software
Loading...
Searching...
No Matches
JetRecCommon.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
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"