ATLAS Offline Software
ParticleLevelIsolationAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 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 
20 namespace CP {
22  public:
24  virtual StatusCode initialize() final;
25  virtual StatusCode execute() 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::AuxElement::Decorator<char>> m_dec_isolated{};
46  std::unique_ptr<const SG::AuxElement::Decorator<char>> m_dec_notTauOrigin{};
47  std::unique_ptr<const SG::AuxElement::ConstAccessor<float>> m_acc_isoVar{};
48 };
49 
50 } // namespace CP
51 
52 #endif
PropertyWrapper.h
CP::ParticleLevelIsolationAlg::m_acc_isoVar
std::unique_ptr< const SG::AuxElement::ConstAccessor< float > > m_acc_isoVar
Definition: ParticleLevelIsolationAlg.h:47
CP::ParticleLevelIsolationAlg::m_dec_notTauOrigin
std::unique_ptr< const SG::AuxElement::Decorator< char > > m_dec_notTauOrigin
Definition: ParticleLevelIsolationAlg.h:46
CP::ParticleLevelIsolationAlg::m_dec_isolated
std::unique_ptr< const SG::AuxElement::Decorator< char > > m_dec_isolated
Definition: ParticleLevelIsolationAlg.h:45
TruthParticleContainer.h
CP::ParticleLevelIsolationAlg::m_isolated
Gaudi::Property< std::string > m_isolated
Definition: ParticleLevelIsolationAlg.h:30
CP::ParticleLevelIsolationAlg
Definition: ParticleLevelIsolationAlg.h:21
CP::ParticleLevelIsolationAlg::execute
virtual StatusCode execute() final
Definition: ParticleLevelIsolationAlg.cxx:46
SG::ReadHandleKey< xAOD::TruthParticleContainer >
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaAlgorithm.cxx:40
CP::ParticleLevelIsolationAlg::m_notTauOrigin
Gaudi::Property< std::string > m_notTauOrigin
Definition: ParticleLevelIsolationAlg.h:32
AnaAlgorithm.h
IMCTruthClassifier.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CP::ParticleLevelIsolationAlg::m_isolationCut
Gaudi::Property< float > m_isolationCut
Definition: ParticleLevelIsolationAlg.h:41
CP::ParticleLevelIsolationAlg::m_particlesKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_particlesKey
Definition: ParticleLevelIsolationAlg.h:28
CP::ParticleLevelIsolationAlg::initialize
virtual StatusCode initialize() final
Definition: ParticleLevelIsolationAlg.cxx:11
CP::ParticleLevelIsolationAlg::m_isolationVariable
Gaudi::Property< std::string > m_isolationVariable
Definition: ParticleLevelIsolationAlg.h:38
ReadHandle.h
Handle class for reading from StoreGate.
CP::ParticleLevelIsolationAlg::m_checkTypeName
Gaudi::Property< std::string > m_checkTypeName
Definition: ParticleLevelIsolationAlg.h:35
CP::ParticleLevelIsolationAlg::m_checkType
MCTruthPartClassifier::ParticleType m_checkType
Definition: ParticleLevelIsolationAlg.h:44
ParticleType
ParticleType
Definition: TruthClasses.h:8