Skip to content
Snippets Groups Projects
Commit 90a7de54 authored by John Chapman's avatar John Chapman
Browse files

Merge release/21.0.101 into 21.3

This commit merges nearly all the changes that were made to the 21.0 branch between the release
[release/21.0.101](https://gitlab.cern.ch/atlas/athena/tags/release/21.0.101) and the previous
release [release/21.0.100](https://gitlab.cern.ch/atlas/athena/tags/release/21.0.100).

Below is a full list of merge requests that were accepted between these two tags:
 * !25182 : Backport ATLASG-1450 fix to 21.0
 * !25133 : Migrate the MuonCandidateTool to use the BeamCondSvc
 * !25177 : Sweeping !25143 from master to 21.0.

Link to the full diff between [release/21.0.101](https://gitlab.cern.ch/atlas/athena/tags/release/21.0.101) and
[release/21.0.100](https://gitlab.cern.ch/atlas/athena/tags/release/21.0.100)
is available at
https://gitlab.cern.ch/atlas/athena/compare/release/21.0.100...release/21.0.101
parents 99078f00 bfd2c1ad
27 merge requests!46457Draft: Adding the tools to run over data,!46454Draft: Adding the tools to be able to run over data,!44869Draft: Update to candidate store,!4217921.9-first_steps-InDetTrackingGeometryXML,!39162Draft: Insert BCM' support,!38765Bis78 cabling,!36893Fix size of RPC active region in BIS78 and strip material,!3645821.9: Improving material map description (ATLITKSW-127),!36293WIP pixel updates,!34993KF-input adding jXERHO to the AOD outputs,!34864LH rings in front ot HR rigs,!34763Fix L1_4jJ15.0ETA25 item definition (ATR-21261),!33996WIP: Correct MM zpositions,!3291021.3 salva s0,!3217421.9 - Bug fix for test stream creation in RD53BEncodingTool,!3135321.3,!3134821.9 README Update,!31136added also PUsub for LargeR jets,!31123WIP: Master ttmdev,!3036121.9 fixing bug with layer indices in PixelRDOAnalysis,!28623Overlay as part of FastChain transform in 21.3,!28497ART tests - fixing the bugs,!27668Massimos 21.3 bis78,!27254WIP: Exclusive jets request -- Fix ExclusiveJets algo / ATR-17320,!26790Fixes for Simulation ART jobs (ATLASSIM-4309),!26017Merge 21.3.15 into 21.9,!25299Merge21.0.101 into 21.3
...@@ -13,6 +13,7 @@ atlas_depends_on_subdirs( PUBLIC ...@@ -13,6 +13,7 @@ atlas_depends_on_subdirs( PUBLIC
PhysicsAnalysis/AnalysisCommon/PATCore PhysicsAnalysis/AnalysisCommon/PATCore
PhysicsAnalysis/DerivationFramework/DerivationFrameworkInterfaces PhysicsAnalysis/DerivationFramework/DerivationFrameworkInterfaces
Trigger/TrigAnalysis/TrigDecisionTool Trigger/TrigAnalysis/TrigDecisionTool
Event/xAOD/xAODEventInfo
PRIVATE PRIVATE
Control/AthenaKernel Control/AthenaKernel
PhysicsAnalysis/CommonTools/ExpressionEvaluation ) PhysicsAnalysis/CommonTools/ExpressionEvaluation )
...@@ -25,7 +26,7 @@ atlas_add_library( DerivationFrameworkToolsLib ...@@ -25,7 +26,7 @@ atlas_add_library( DerivationFrameworkToolsLib
src/*.cxx src/*.cxx
PUBLIC_HEADERS DerivationFrameworkTools PUBLIC_HEADERS DerivationFrameworkTools
PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
LINK_LIBRARIES AthenaBaseComps xAODBase GaudiKernel PATCoreLib TrigDecisionToolLib ExpressionEvaluationLib LINK_LIBRARIES AthenaBaseComps xAODBase GaudiKernel PATCoreLib TrigDecisionToolLib ExpressionEvaluationLib xAODEventInfo
PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} AthenaKernel ) PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} AthenaKernel )
atlas_add_component( DerivationFrameworkTools atlas_add_component( DerivationFrameworkTools
......
...@@ -25,7 +25,7 @@ namespace DerivationFramework { ...@@ -25,7 +25,7 @@ namespace DerivationFramework {
virtual bool eventPassesFilter() const; virtual bool eventPassesFilter() const;
private: private:
mutable int m_prescale, m_eventCounter; unsigned int m_prescale;
}; };
} }
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
// Use of ExpressionParsing to analyse a more complex string // Use of ExpressionParsing to analyse a more complex string
#include "DerivationFrameworkTools/PrescaleTool.h" #include "DerivationFrameworkTools/PrescaleTool.h"
#include "xAODEventInfo/EventInfo.h"
namespace DerivationFramework { namespace DerivationFramework {
...@@ -30,7 +31,6 @@ namespace DerivationFramework { ...@@ -30,7 +31,6 @@ namespace DerivationFramework {
ATH_MSG_FATAL("Prescale of less than 1 makes no sense"); ATH_MSG_FATAL("Prescale of less than 1 makes no sense");
return StatusCode::FAILURE; return StatusCode::FAILURE;
} }
m_eventCounter = 0;
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
} }
...@@ -41,9 +41,10 @@ namespace DerivationFramework { ...@@ -41,9 +41,10 @@ namespace DerivationFramework {
bool PrescaleTool::eventPassesFilter() const bool PrescaleTool::eventPassesFilter() const
{ {
const xAOD::EventInfo* ei = 0;
CHECK( evtStore()->retrieve( ei , "EventInfo" ) );
bool accept(false); bool accept(false);
if (m_eventCounter % m_prescale == 0) accept = true; if (ei->eventNumber() % m_prescale == 0) accept = true;
++m_eventCounter;
return accept; return accept;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment