 |
ATLAS Offline Software
|
|
| bool | is_mc_from (ConfigAccumulator config, Union[Campaign, Iterable[Campaign]] campaign_list) |
| |
| bool | is_data_from (config, Union[int, Iterable[int]] data_year_list) |
| |
| list | get_year_data (dict dictionary, int|str year) |
| |
| list[int] | get_input_years (ConfigAccumulator config) |
| |
| def | trigger_set (config, triggerChainsPerYear, includeAllYearsPerRun) |
| |
◆ get_input_years()
| list[int] python.TriggerAnalysisSFConfig.get_input_years |
( |
ConfigAccumulator |
config | ) |
|
Utility function to get the list of years that the input corresponds to
Definition at line 35 of file TriggerAnalysisSFConfig.py.
37 Utility function to get the list of years that the input corresponds to
40 if config.campaign()
is Campaign.MC20a:
46 elif config.campaign()
is Campaign.MC20d
or is_data_from(config, 2017):
48 elif config.campaign()
is Campaign.MC20e
or is_data_from(config, 2018):
50 elif config.campaign()
is Campaign.MC23a
or is_data_from(config, 2022):
52 elif config.campaign()
is Campaign.MC23d
or is_data_from(config, 2023):
54 elif config.campaign()
is Campaign.MC23e
or is_data_from(config, 2024):
56 elif config.campaign()
is Campaign.MC23g
or is_data_from(config, 2025):
59 raise ValueError(
'TriggerAnalysisConfig: unable to deduce data taking year for input file')
◆ get_year_data()
| list python.TriggerAnalysisSFConfig.get_year_data |
( |
dict |
dictionary, |
|
|
int | str |
year |
|
) |
| |
Utility function to get the data for a specific year from a dictionary
Definition at line 28 of file TriggerAnalysisSFConfig.py.
30 Utility function to get the data for a specific year from a dictionary
32 return dictionary.get(
int(year), dictionary.get(
str(year), []))
◆ is_data_from()
| bool python.TriggerAnalysisSFConfig.is_data_from |
( |
|
config, |
|
|
Union[int, Iterable[int]] |
data_year_list |
|
) |
| |
Utility function to check whether the data type is data and whether the year is in desired list of years
Definition at line 20 of file TriggerAnalysisSFConfig.py.
20 def is_data_from(config, data_year_list: Union[int, Iterable[int]]) -> bool:
22 Utility function to check whether the data type is data and whether the year is in desired list of years
24 data_year_list = [data_year_list]
if isinstance(data_year_list, int)
else data_year_list
25 return config.dataType()
is DataType.Data
and config.dataYear()
in data_year_list
◆ is_mc_from()
| bool python.TriggerAnalysisSFConfig.is_mc_from |
( |
ConfigAccumulator |
config, |
|
|
Union[Campaign, Iterable[Campaign]] |
campaign_list |
|
) |
| |
Utility function to check whether the data type is mc and whether the campaign is in desired list of campaigns
without causing an invalid FlugEnum comparison
Definition at line 11 of file TriggerAnalysisSFConfig.py.
11 def is_mc_from(config: ConfigAccumulator, campaign_list: Union[Campaign, Iterable[Campaign]]) -> bool:
13 Utility function to check whether the data type is mc and whether the campaign is in desired list of campaigns
14 without causing an invalid FlugEnum comparison
16 campaign_list = [campaign_list]
if isinstance(campaign_list, Campaign)
else campaign_list
17 return config.dataType()
is not DataType.Data
and config.campaign()
in campaign_list
◆ trigger_set()
| def python.TriggerAnalysisSFConfig.trigger_set |
( |
|
config, |
|
|
|
triggerChainsPerYear, |
|
|
|
includeAllYearsPerRun |
|
) |
| |
Definition at line 64 of file TriggerAnalysisSFConfig.py.
64 def trigger_set(config, triggerChainsPerYear, includeAllYearsPerRun):
66 if includeAllYearsPerRun:
67 for year
in triggerChainsPerYear:
bool is_mc_from(ConfigAccumulator config, Union[Campaign, Iterable[Campaign]] campaign_list)
bool is_year_in_current_period(ConfigAccumulator config, int|str year)
def trigger_set(config, triggerChainsPerYear, includeAllYearsPerRun)
list get_year_data(dict dictionary, int|str year)
bool is_data_from(config, Union[int, Iterable[int]] data_year_list)
list[int] get_input_years(ConfigAccumulator config)
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.