ATLAS Offline Software
Loading...
Searching...
No Matches
ParticleLevelIsolationAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#ifndef TRUTH__PARTICLELEVEL_ISOLATION__ALG_H
8#define TRUTH__PARTICLELEVEL_ISOLATION__ALG_H
9
10// Algorithm includes
15
16// Framework includes
19
20namespace CP {
22 public:
24 virtual StatusCode initialize() final;
25 virtual StatusCode execute(const EventContext &ctx) const final;
26
27 private:
29 this, "particles", "", "the name of the input truth particles container"};
30 Gaudi::Property<std::string> m_isolated{
31 this, "isolation", "", "decoration for isolated truth particles"};
32 Gaudi::Property<std::string> m_notTauOrigin{
33 this, "notTauOrigin", "",
34 "decoration for truth particles not coming from a tau-decay"};
35 Gaudi::Property<std::string> m_checkTypeName{
36 this, "checkType", "",
37 "the MCTruthPartClassifier::ParticleType string to check against"};
38 Gaudi::Property<std::string> m_isolationVariable{
39 this, "isoVar", "",
40 "variable to use in isolation cuts of the form 'var/pT < cut'"};
41 Gaudi::Property<float> m_isolationCut{
42 this, "isoCut", -1,
43 "threshold to use in isolation cuts of the form 'var/pT < cut'"};
45 std::unique_ptr<const SG::Decorator<char>> m_dec_isolated{};
46 std::unique_ptr<const SG::Decorator<char>> m_dec_notTauOrigin{};
47 std::unique_ptr<const SG::ConstAccessor<float>> m_acc_isoVar{};
48};
49
50} // namespace CP
51
52#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
Handle class for reading from StoreGate.
std::unique_ptr< const SG::ConstAccessor< float > > m_acc_isoVar
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
MCTruthPartClassifier::ParticleType m_checkType
std::unique_ptr< const SG::Decorator< char > > m_dec_notTauOrigin
Gaudi::Property< float > m_isolationCut
Gaudi::Property< std::string > m_notTauOrigin
std::unique_ptr< const SG::Decorator< char > > m_dec_isolated
virtual StatusCode execute(const EventContext &ctx) const final
Gaudi::Property< std::string > m_isolated
Gaudi::Property< std::string > m_checkTypeName
Gaudi::Property< std::string > m_isolationVariable
the base class for EventLoop reentrant algorithms
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Property holding a SG store/key/clid from which a ReadHandle is made.
Select isolated Photons, Electrons and Muons.