ATLAS Offline Software
DiTauTrackParticleThinning.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // DiTauTrackParticleThinning.h, (c) ATLAS Detector software
8 
9 #ifndef DERIVATIONFRAMEWORK_DITAUTRACKPARTICLETHINNING_H
10 #define DERIVATIONFRAMEWORK_DITAUTRACKPARTICLETHINNING_H
11 
12 #include <string>
13 #include <atomic>
14 
17 #include "GaudiKernel/ToolHandle.h"
24 
26 
27 namespace DerivationFramework {
28 
29  class DiTauTrackParticleThinning : public extends<ExpressionParserUser<AthAlgTool>, IThinningTool> {
30  public:
31  DiTauTrackParticleThinning(const std::string& t, const std::string& n, const IInterface* p);
33  virtual StatusCode initialize() override;
34  virtual StatusCode finalize() override;
35  virtual StatusCode doThinning() const override;
36 
37  private:
38  mutable std::atomic<unsigned int> m_ntot {};
39  mutable std::atomic<unsigned int> m_npass {};
40  StringProperty m_streamName
41  { this, "StreamName", "", "Name of the stream being thinned" };
43  { this, "DiTauKey","",""};
45  { this, "InDetTrackParticlesKey", "InDetTrackParticles", "" };
46  Gaudi::Property<std::string> m_selectionString
47  { this, "SelectionString", "", ""};
48  };
49 }
50 
51 #endif // DERIVATIONFRAMEWORK_DITAUTRACKPARTICLETHINNING_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DerivationFramework::DiTauTrackParticleThinning::m_ditauKey
SG::ReadHandleKey< xAOD::DiTauJetContainer > m_ditauKey
Definition: DiTauTrackParticleThinning.h:43
SG::ThinningHandleKey
HandleKey object for adding thinning to an object.
Definition: ThinningHandleKey.h:38
ExpressionParserUser.h
IThinningTool.h
DiTauJetContainer.h
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DerivationFramework::DiTauTrackParticleThinning::m_inDetSGKey
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_inDetSGKey
Definition: DiTauTrackParticleThinning.h:45
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
EgammaContainer.h
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
DerivationFramework::DiTauTrackParticleThinning::m_selectionString
Gaudi::Property< std::string > m_selectionString
Definition: DiTauTrackParticleThinning.h:47
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DerivationFramework::DiTauTrackParticleThinning::~DiTauTrackParticleThinning
virtual ~DiTauTrackParticleThinning()
AthAlgTool.h
DerivationFramework::DiTauTrackParticleThinning::m_ntot
std::atomic< unsigned int > m_ntot
Definition: DiTauTrackParticleThinning.h:38
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::DiTauTrackParticleThinning
Definition: DiTauTrackParticleThinning.h:29
DerivationFramework::DiTauTrackParticleThinning::finalize
virtual StatusCode finalize() override
Definition: DiTauTrackParticleThinning.cxx:46
TracksInCone.h
DerivationFramework::DiTauTrackParticleThinning::DiTauTrackParticleThinning
DiTauTrackParticleThinning(const std::string &t, const std::string &n, const IInterface *p)
Definition: DiTauTrackParticleThinning.cxx:20
ThinningHandleKey.h
HandleKey object for adding thinning to an object.
DerivationFramework::DiTauTrackParticleThinning::m_npass
std::atomic< unsigned int > m_npass
Definition: DiTauTrackParticleThinning.h:39
DerivationFramework::DiTauTrackParticleThinning::initialize
virtual StatusCode initialize() override
Definition: DiTauTrackParticleThinning.cxx:30
DerivationFramework::DiTauTrackParticleThinning::doThinning
virtual StatusCode doThinning() const override
Definition: DiTauTrackParticleThinning.cxx:55
TrackParticleContainer.h
DerivationFramework::DiTauTrackParticleThinning::m_streamName
StringProperty m_streamName
Definition: DiTauTrackParticleThinning.h:41