ATLAS Offline Software
ViewContainerThinning.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // ViewContainerThinning.h
8 // Header file for class ViewContainerThinning
9 // Author: P-A Delsart
11 #ifndef DERIVATIONFRAMEWORKJETETMISS_VIEWCONTAINERTHINNING_H
12 #define DERIVATIONFRAMEWORKJETETMISS_VIEWCONTAINERTHINNING_H 1
13 
14 // STL includes
15 #include <string>
16 
17 // FrameWork includes
19 #include "GaudiKernel/ServiceHandle.h"
20 
21 // DerivationFrameworkInterfaces includes
28 
29 
30 namespace DerivationFramework {
31 
33  : public extends<AthAlgTool, IThinningTool>
34  {
35 
37  // Public methods:
39  public:
41  using base_class::base_class;
42 
43  // Athena algtool's Hooks
44  virtual StatusCode initialize() override;
45  virtual StatusCode finalize() override;
46  virtual StatusCode doThinning() const override;
47 
48  protected:
49 
50  template <class T>
52  const SG::ReadHandleKey<T>& viewKey) const;
53 
54  StringProperty m_streamName
55  { this, "StreamName", "", "Name of the stream being thinned" };
56 
58  { this, "TrackParticleKey", "", "" };
60  { this, "CaloClusterKey", "", "" };
62  { this, "TruthParticleKey", "", "" };
63 
65  { this, "TrackParticleViewKey", "", "" };
67  { this, "CaloClusterViewKey", "", "" };
69  { this, "TruthParticleViewKey", "", "" };
70  };
71 
72 }
73 
74 #endif //> !DERIVATIONFRAMEWORKJETETMISS_VIEWCONTAINERTHINNING_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DerivationFramework::ViewContainerThinning::m_truthParticleKey
SG::ThinningHandleKey< xAOD::TruthParticleContainer > m_truthParticleKey
Definition: ViewContainerThinning.h:62
SG::ThinningHandleKey
HandleKey object for adding thinning to an object.
Definition: ThinningHandleKey.h:38
DerivationFramework::ViewContainerThinning
Definition: ViewContainerThinning.h:34
TruthParticleContainer.h
IThinningTool.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::ViewContainerThinning::m_trackParticleKey
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_trackParticleKey
Definition: ViewContainerThinning.h:58
DerivationFramework::ViewContainerThinning::m_truthParticleViewKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleViewKey
Definition: ViewContainerThinning.h:69
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DerivationFramework::ViewContainerThinning::m_streamName
StringProperty m_streamName
Definition: ViewContainerThinning.h:55
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::ViewContainerThinning::m_caloClusterKey
SG::ThinningHandleKey< xAOD::CaloClusterContainer > m_caloClusterKey
Definition: ViewContainerThinning.h:60
DerivationFramework::ViewContainerThinning::finalize
virtual StatusCode finalize() override
Definition: ViewContainerThinning.cxx:69
DerivationFramework::ViewContainerThinning::doThinningT
StatusCode doThinningT(const SG::ThinningHandleKey< T > &key, const SG::ReadHandleKey< T > &viewKey) const
Definition: ViewContainerThinning.cxx:32
DerivationFramework::ViewContainerThinning::m_trackParticleViewKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackParticleViewKey
Definition: ViewContainerThinning.h:65
DerivationFramework::ViewContainerThinning::initialize
virtual StatusCode initialize() override
Definition: ViewContainerThinning.cxx:54
DerivationFramework::ViewContainerThinning::doThinning
virtual StatusCode doThinning() const override
Definition: ViewContainerThinning.cxx:76
DerivationFramework::ViewContainerThinning::m_caloClusterViewKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_caloClusterViewKey
Definition: ViewContainerThinning.h:67
ThinningHandleKey.h
HandleKey object for adding thinning to an object.
CaloClusterContainer.h
TrackParticleContainer.h
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37