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

Classes

class  TriggerAnalysisBlock

Functions

str sanitizeTriggerChainName (str chain)
bool is_year_in_current_period (ConfigAccumulator config, int|str year)
 Trigger (seq)

Function Documentation

◆ is_year_in_current_period()

bool is_year_in_current_period ( ConfigAccumulator config,
int | str year )
Utility function to check whether the year is valid for the current configuration

Definition at line 14 of file TriggerAnalysisConfig.py.

14def is_year_in_current_period(config: ConfigAccumulator, year: int | str) -> bool:
15 """
16 Utility function to check whether the year is valid for the current configuration
17 """
18 year = int(year)
19 if config.geometry() is LHCPeriod.Run2 and year >= 2022:
20 return False
21 if config.geometry() is LHCPeriod.Run3 and year < 2022:
22 return False
23
24 return True
25
26

◆ sanitizeTriggerChainName()

str sanitizeTriggerChainName ( str chain)
Convert a trigger chain name for use in decoration/branch names; keep in sync with TriggerAnalysisAlgorithms/TrigChainNameHelpers.h

Definition at line 9 of file TriggerAnalysisConfig.py.

9def sanitizeTriggerChainName(chain: str) -> str:
10 """Convert a trigger chain name for use in decoration/branch names; keep in sync with TriggerAnalysisAlgorithms/TrigChainNameHelpers.h"""
11 return chain.replace(".", "p").replace("-", "_")
12
13
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition hcg.cxx:312

◆ Trigger()

Trigger ( seq)

Definition at line 263 of file TriggerAnalysisConfig.py.

263def Trigger(seq):
264 seq.append(TriggerAnalysisBlock())
265 from TriggerAnalysisAlgorithms.TriggerAnalysisSFConfig import TriggerAnalysisSFBlock
266 seq.append(TriggerAnalysisSFBlock())