Commit efa2f2da authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'cp/read-master' into 'master'

CP algs: move more algorithms to use SysReadHandle

See merge request atlas/athena!47268
parents a5e8835d e2dc034e
......@@ -12,8 +12,8 @@
#include <AnaAlgorithm/AnaAlgorithm.h>
#include <TauAnalysisTools/ITauTruthMatchingTool.h>
#include <SelectionHelpers/SelectionReadHandle.h>
#include <SystematicsHandles/SysCopyHandle.h>
#include <SystematicsHandles/SysListHandle.h>
#include <SystematicsHandles/SysReadHandle.h>
#include <xAODTau/TauJetContainer.h>
namespace CP
......@@ -46,7 +46,7 @@ namespace CP
/// \brief the tau collection we run on
private:
SysCopyHandle<xAOD::TauJetContainer> m_tauHandle {
SysReadHandle<xAOD::TauJetContainer> m_tauHandle {
this, "taus", "TauJets", "the tau collection to run on"};
/// \brief the preselection we apply to our input
......
......@@ -71,7 +71,7 @@ def makeDiTauAnalysisSequence( dataType, workingPoint,
alg.scaleFactorDecoration = 'tau_effSF' + postfix
# alg.outOfValidity = 2 #silent
# alg.outOfValidityDeco = "bad_eff"
seq.append( alg, inputPropName = 'taus', outputPropName = 'tausOut',
seq.append( alg, inputPropName = 'taus',
stageName = 'efficiency' )
# Set up the tau truth matching algorithm:
......@@ -81,7 +81,7 @@ def makeDiTauAnalysisSequence( dataType, workingPoint,
addPrivateTool( alg, 'matchingTool',
'TauAnalysisTools::DiTauTruthMatchingTool' )
alg.matchingTool.WriteTruthTaus = 1
seq.append( alg, inputPropName = 'taus', outputPropName = 'tausOut',
seq.append( alg, inputPropName = 'taus',
stageName = 'selection' )
pass
......
......@@ -75,7 +75,7 @@ def makeTauAnalysisSequence( dataType, workingPoint, postfix = '',
addPrivateTool( alg, 'matchingTool',
'TauAnalysisTools::TauTruthMatchingTool' )
alg.matchingTool.WriteTruthTaus = 1
seq.append( alg, inputPropName = 'taus', outputPropName = 'tausOut',
seq.append( alg, inputPropName = 'taus',
stageName = 'selection' )
pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment