ATLAS Offline Software
Loading...
Searching...
No Matches
TauAODSelector.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5// local include(s)
7
8
9TauAODSelector::TauAODSelector(const std::string& name)
10 : TauRecToolBase(name) {
11}
12
13
15 const EventContext& /*ctx*/) const {
16
17 bool passThinning = true;
18
19 // selection criteria that taus must pass in order to be written to AOD
20 if (tau.nTracks()==0) {
21 if (tau.pt() < m_min0pTauPt) passThinning = false;
22 }
23 else {
24 if (tau.pt() < m_minTauPt) passThinning = false;
25 }
26
27 static const SG::Accessor<char> acc_passThinning("passThinning");
28 acc_passThinning(tau) = passThinning;
29
30 if (m_doEarlyStopping && !passThinning) return StatusCode::FAILURE;
31
32 return StatusCode::SUCCESS;
33}
Helper class to provide type-safe access to aux data.
Gaudi::Property< double > m_minTauPt
Gaudi::Property< bool > m_doEarlyStopping
virtual StatusCode executeTool(xAOD::TauJet &tau, const EventContext &ctx) const override
Execute - called for each tau candidate.
TauAODSelector(const std::string &name="TauAODSelector")
Gaudi::Property< double > m_min0pTauPt
TauRecToolBase(const std::string &name)
TauJet_v3 TauJet
Definition of the current "tau version".
Definition TauJet.h:17