ATLAS Offline Software
MuonTrackParticleThinning.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 // MuonTrackParticleThinning.h, (c) ATLAS Detector software
8 
9 #ifndef DERIVATIONFRAMEWORK_MUONTRACKPARTICLETHINNING_H
10 #define DERIVATIONFRAMEWORK_MUONTRACKPARTICLETHINNING_H
11 
12 #include <string>
13 #include <atomic>
14 
17 #include "GaudiKernel/ToolHandle.h"
20 #include "xAODMuon/MuonContainer.h"
22 
24 
25 namespace DerivationFramework {
26 
27  class MuonTrackParticleThinning : public extends<ExpressionParserUser<AthAlgTool>, IThinningTool> {
28  public:
29  MuonTrackParticleThinning(const std::string& t, const std::string& n, const IInterface* p);
31  virtual StatusCode initialize() override;
32  virtual StatusCode finalize() override;
33  virtual StatusCode doThinning() const override;
34 
35  private:
36  mutable std::atomic<unsigned int> m_ntot {};
37  mutable std::atomic<unsigned int> m_npass {};
38  StringProperty m_streamName
39  { this, "StreamName", "", "Name of the stream being thinned" };
41  { this, "InDetTrackParticlesKey", "InDetTrackParticles", "" };
43  { this, "MuonKey", "",""};
44  Gaudi::Property<std::string> m_selectionString
45  { this, "SelectionString","",""};
46  Gaudi::Property<float> m_coneSize
47  { this, "ConeSize", -1.0, ""};
48  };
49 }
50 
51 #endif // DERIVATIONFRAMEWORK_MUONTRACKPARTICLETHINNING_H
SG::ThinningHandleKey
HandleKey object for adding thinning to an object.
Definition: ThinningHandleKey.h:38
ExpressionParserUser.h
IThinningTool.h
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::MuonTrackParticleThinning::m_ntot
std::atomic< unsigned int > m_ntot
Definition: MuonTrackParticleThinning.h:36
DerivationFramework::MuonTrackParticleThinning::doThinning
virtual StatusCode doThinning() const override
Definition: MuonTrackParticleThinning.cxx:60
DerivationFramework::MuonTrackParticleThinning::MuonTrackParticleThinning
MuonTrackParticleThinning(const std::string &t, const std::string &n, const IInterface *p)
Definition: MuonTrackParticleThinning.cxx:22
DerivationFramework::MuonTrackParticleThinning::m_muonKey
SG::ReadHandleKey< xAOD::MuonContainer > m_muonKey
Definition: MuonTrackParticleThinning.h:43
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
DerivationFramework::MuonTrackParticleThinning::~MuonTrackParticleThinning
virtual ~MuonTrackParticleThinning()
beamspotman.n
n
Definition: beamspotman.py:731
DerivationFramework::MuonTrackParticleThinning::finalize
virtual StatusCode finalize() override
Definition: MuonTrackParticleThinning.cxx:51
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DerivationFramework::MuonTrackParticleThinning::m_inDetSGKey
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_inDetSGKey
Definition: MuonTrackParticleThinning.h:41
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
MuonContainer.h
DerivationFramework::MuonTrackParticleThinning::m_npass
std::atomic< unsigned int > m_npass
Definition: MuonTrackParticleThinning.h:37
TracksInCone.h
DerivationFramework::MuonTrackParticleThinning
Definition: MuonTrackParticleThinning.h:27
ThinningHandleKey.h
HandleKey object for adding thinning to an object.
DerivationFramework::MuonTrackParticleThinning::m_coneSize
Gaudi::Property< float > m_coneSize
Definition: MuonTrackParticleThinning.h:47
DerivationFramework::MuonTrackParticleThinning::m_streamName
StringProperty m_streamName
Definition: MuonTrackParticleThinning.h:39
DerivationFramework::MuonTrackParticleThinning::m_selectionString
Gaudi::Property< std::string > m_selectionString
Definition: MuonTrackParticleThinning.h:45
TrackParticleContainer.h
DerivationFramework::MuonTrackParticleThinning::initialize
virtual StatusCode initialize() override
Definition: MuonTrackParticleThinning.cxx:33