5#ifndef ISOLATIONSELECTION_TESTISOLATIONCLOSEBYCORRATHENAALG_H
6#define ISOLATIONSELECTION_TESTISOLATIONCLOSEBYCORRATHENAALG_H
11#include "GaudiKernel/SystemOfUnits.h"
52 template <
class TARGET_TYPE,
class CONT_TYPE,
class COPY_TYPE>
54 std::pair<std::unique_ptr<COPY_TYPE>,
55 std::unique_ptr<xAOD::ShallowAuxContainer>>& cont)
const;
57 bool passSelection(
const EventContext& ctx,
const xAOD::Muon*
muon)
const;
58 bool passSelection(
const EventContext& ctx,
const xAOD::Egamma* egamm)
const;
68 "Optional char decorator flag that the leptons have to pass in order to be selected"};
70 Gaudi::Property<std::string>
m_isoDecoration{
this,
"IsolationDecorator",
"",
"Decoration of the first isolation selection pass."};
71 Gaudi::Property<std::string>
m_updatedIsoDeco{
this,
"UpdatedIsoDecorator",
"",
"Decoration of the first isolation selection pass."};
73 this,
"BackupPrefix",
"",
"Prefix in front of the isolation variables, if the original cone values need to be backuped"};
79 ToolHandle<CP::IMuonSelectionTool>
m_muonSelTool{
this,
"MuonSelectionTool",
""};
80 ToolHandle<IAsgElectronLikelihoodTool>
m_elecSelTool{
this,
"ElectronSelectionTool",
""};
81 ToolHandle<IAsgPhotonIsEMSelector>
m_photSelTool{
this,
"PhotonSelectionTool",
""};
86 ToolHandle<CP::IIsolationSelectionTool>
m_isoSelectorTool{
this,
"IsolationSelectionTool",
""};
93 Gaudi::Property<float>
m_mu_min_pt{
this,
"MuonPt", 5 * Gaudi::Units::GeV};
95 Gaudi::Property<float>
m_el_min_pt{
this,
"ElectronPt", 7. * Gaudi::Units::GeV};
97 Gaudi::Property<float>
m_ph_min_pt{
this,
"PhotonPt", 25. * Gaudi::Units::GeV};
100 Gaudi::Property<bool>
m_isMC{
this,
"isMC",
false};
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Define macros for attributes used to control the static checker.
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< bool > m_isMC
SG::ReadHandleKey< xAOD::MuonContainer > m_muonKey
Input containers.
TestIsolationCloseByCorrAlg(const std::string &name, ISvcLocator *svcLoc)
Gaudi::Property< std::string > m_updatedIsoDeco
ToolHandle< CP::IIsolationCloseByCorrectionTool > m_isoCloseByCorrTool
Gaudi::Property< std::string > m_backup_prefix
unsigned int cardinality() const override
Gaudi::Property< std::string > m_selDecoration
Gaudi::Property< float > m_el_min_pt
std::shared_ptr< IsoCorrectionTestHelper > m_ele_helper
Gaudi::Property< std::string > m_isoDecoration
std::shared_ptr< IsoCorrectionTestHelper > m_pho_helper
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_polTrkKey
Optionally the algorithm can test the behaviour of the tracks selected by the IsoCloseByCorrectionTrk...
MuonVal::MuonTesterTree m_tree
StatusCode finalize() override
virtual ~TestIsolationCloseByCorrAlg()=default
SG::ReadHandleKey< xAOD::EgammaContainer > m_photKey
ToolHandle< CP::IMuonSelectionTool > m_muonSelTool
Optionally the user can also parse the elec / muon / photon selection tools.
Gaudi::Property< float > m_ph_min_pt
ToolHandle< CP::IIsolationSelectionTool > m_isoSelectorTool
ToolHandle< IAsgPhotonIsEMSelector > m_photSelTool
SelectionDecorator m_selDecorator
Gaudi::Property< float > m_mu_min_pt
std::shared_ptr< IsoCorrectionTestHelper > m_muo_helper
Gaudi::Property< float > m_el_max_eta
Gaudi::Property< float > m_ph_max_eta
SG::ReadHandleKey< xAOD::EgammaContainer > m_elecKey
Gaudi::Property< float > m_mu_max_eta
SelectionDecorator m_isoDecorator
StatusCode execute() override
ToolHandle< IAsgElectronLikelihoodTool > m_elecSelTool
Property holding a SG store/key/clid from which a ReadHandle is made.
Select isolated Photons, Electrons and Muons.
std::unique_ptr< CharDecorator > SelectionDecorator
void ErrorHandler ATLAS_NOT_THREAD_SAFE(Int_t level, Bool_t abort, const char *location, const char *message)
Function filtering the warnings coming from ROOT.
Egamma_v1 Egamma
Definition of the current "egamma version".
Muon_v1 Muon
Reference the current persistent version: