Skip to content
Snippets Groups Projects

Draft: [trigEGam] Integration beteween mongroups and TrigEgammaMonitoring

Closed Edmar Egidio Purcino De Souza requested to merge eegidiop/athena:tegmonGroups into 22.0
Compare changes
  • Side-by-side
  • Inline
Files
16
  • Update packages needed to make ConfigFlag dual use in Athena and AnalysisBase
    
    This MR includes 3 new packages in AnalysisBase:
    
    Control/AthenaCommon
    Control/AthenaConfiguration
    Tools/PyUtils
    
    While AthenaCommon isn't strictly necessary, it pulls in Logging, Constants and SystemOfUnits which reduces the number of try ... except statements in AthenaConfiguration. The compilation is updated to only pull in these three files when in AnalysisBase, otherwise try statements in AnaAlgorithm think it's running in Athena (since this package is available) and set things up incorrectly in AnalysisBase.
    
    Otherwise, two new modes are added to MetaReader (analite and anapeeker) that are used when running in AnalysisBase. The main difference is these modes rely on FileMetaData instead of EventStreamInfo.
    
    AllConfigFlags is re-ordered so that the shared flags are setup first. If AnalysisBase, the reduced list of configs is returned. If Athena, it continues on and adds everything. One caveat here is that a few configurations (such as EDMVersion) that were in later function calls to Athena-only packages have been hackily moved into an if-statement near the top of the file, protected by an if-statement checking for AnalysisBase.
    
    Finally, six is removed (dual compatability for python 2 and 3) since it is no longer needed in 22.*, and this keeps us from adding it as a dependency to AnalysisBase.
Loading