ATLAS Offline Software
JetLargeD0TrackParticleThinning.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 // JetLargeD0TrackParticleThinning.h, (c) ATLAS Detector software
8 
9 #ifndef DERIVATIONFRAMEWORK_JETLARGED0TRACKPARTICLETHINNING_H
10 #define DERIVATIONFRAMEWORK_JETLARGED0TRACKPARTICLETHINNING_H
11 
12 #include <string>
13 #include <atomic>
14 
17 #include "GaudiKernel/ToolHandle.h"
19 #include "xAODJet/JetContainer.h"
22 
24 
25 namespace DerivationFramework {
26 
28  class JetLargeD0TrackParticleThinning : public extends<ExpressionParserUser<AthAlgTool, kNumJetTPThinningParser>, IThinningTool> {
29  public:
30  JetLargeD0TrackParticleThinning(const std::string& t, const std::string& n, const IInterface* p);
32  virtual StatusCode initialize() override;
33  virtual StatusCode finalize() override;
34  virtual StatusCode doThinning() const override;
35 
36  private:
37  mutable std::atomic<unsigned int> m_ntot {};
38  mutable std::atomic<unsigned int> m_npass {};
40  { this, "JetKey", "", ""};
41 
42  StringProperty m_streamName
43  { this, "StreamName", "", "Name of the stream being thinned" };
45  { this, "InDetTrackParticlesKey", "InDetTrackParticles", "" };
46  StringProperty m_selectionString
47  { this, "SelectionString", "", "" };
48  StringProperty m_trackSelectionString
49  { this, "TrackSelectionString", "", "" };
50  };
51 }
52 
53 #endif // DERIVATIONFRAMEWORK_JETLARGED0TRACKPARTICLETHINNING_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DerivationFramework::JetLargeD0TrackParticleThinning::m_npass
std::atomic< unsigned int > m_npass
Definition: JetLargeD0TrackParticleThinning.h:38
SG::ThinningHandleKey
HandleKey object for adding thinning to an object.
Definition: ThinningHandleKey.h:38
ExpressionParserUser.h
DerivationFramework::JetLargeD0TrackParticleThinning
Definition: JetLargeD0TrackParticleThinning.h:28
DerivationFramework::JetLargeD0TrackParticleThinning::~JetLargeD0TrackParticleThinning
virtual ~JetLargeD0TrackParticleThinning()
Definition: JetLargeD0TrackParticleThinning.cxx:35
IThinningTool.h
DerivationFramework::JetLargeD0TrackParticleThinning::initialize
virtual StatusCode initialize() override
Definition: JetLargeD0TrackParticleThinning.cxx:39
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::JetLargeD0TrackParticleThinning::finalize
virtual StatusCode finalize() override
Definition: JetLargeD0TrackParticleThinning.cxx:60
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DerivationFramework::JetLargeD0TrackParticleThinning::doThinning
virtual StatusCode doThinning() const override
Definition: JetLargeD0TrackParticleThinning.cxx:68
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::JetLargeD0TrackParticleThinning::m_jetKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetKey
Definition: JetLargeD0TrackParticleThinning.h:40
DerivationFramework::kTrackThinning
@ kTrackThinning
Definition: JetTrackParticleThinning.h:27
DerivationFramework::JetLargeD0TrackParticleThinning::m_inDetSGKey
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_inDetSGKey
Definition: JetLargeD0TrackParticleThinning.h:45
DerivationFramework::kJetSelection
@ kJetSelection
Definition: JetTrackParticleThinning.h:27
DerivationFramework::JetLargeD0TrackParticleThinning::JetLargeD0TrackParticleThinning
JetLargeD0TrackParticleThinning(const std::string &t, const std::string &n, const IInterface *p)
Definition: JetLargeD0TrackParticleThinning.cxx:27
DerivationFramework::kNumJetTPThinningParser
@ kNumJetTPThinningParser
Definition: JetTrackParticleThinning.h:27
DerivationFramework::JetLargeD0TrackParticleThinning::m_streamName
StringProperty m_streamName
Definition: JetLargeD0TrackParticleThinning.h:43
DerivationFramework::JetLargeD0TrackParticleThinning::m_trackSelectionString
StringProperty m_trackSelectionString
Definition: JetLargeD0TrackParticleThinning.h:49
DerivationFramework::JetLargeD0TrackParticleThinning::m_ntot
std::atomic< unsigned int > m_ntot
Definition: JetLargeD0TrackParticleThinning.h:37
DerivationFramework::EJetTrPThinningParser
EJetTrPThinningParser
Definition: JetTrackParticleThinning.h:27
JetContainer.h
ThinningHandleKey.h
HandleKey object for adding thinning to an object.
TrackParticleContainer.h
DerivationFramework::JetLargeD0TrackParticleThinning::m_selectionString
StringProperty m_selectionString
Definition: JetLargeD0TrackParticleThinning.h:47