ATLAS Offline Software
TauTrackParticleThinning.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // TauTrackParticleThinning.h, (c) ATLAS Detector software
8 
9 #ifndef DERIVATIONFRAMEWORK_TAUTRACKPARTICLETHINNING_H
10 #define DERIVATIONFRAMEWORK_TAUTRACKPARTICLETHINNING_H
11 
12 #include <string>
13 #include <atomic>
14 
17 #include "GaudiKernel/ToolHandle.h"
21 
24 
26 
27 namespace DerivationFramework {
28 
29  class TauTrackParticleThinning : public extends<ExpressionParserUser<AthAlgTool>, IThinningTool> {
30  public:
31  TauTrackParticleThinning(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, "InDetTrackParticlesKey", "InDetTrackParticles", "" };
45  { this, "TauKey", "", ""};
46  Gaudi::Property<bool> m_doTauTracksThinning
47  { this, "DoTauTracksThinning", false, "Apply thinning to tau tracks in addition to ID tracks"};
49  { this, "TauTracksKey", "TauTracks", "StoreGate key of the tau track container" };
50  Gaudi::Property<std::string> m_selectionString
51  { this, "SelectionString", "",""};
52  Gaudi::Property<float> m_coneSize
53  { this, "ConeSize", -1.0, ""};
54  };
55 }
56 
57 #endif // DERIVATIONFRAMEWORK_TAUTRACKPARTICLETHINNING_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DerivationFramework::TauTrackParticleThinning::m_inDetSGKey
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_inDetSGKey
Definition: TauTrackParticleThinning.h:43
DerivationFramework::TauTrackParticleThinning::m_streamName
StringProperty m_streamName
Definition: TauTrackParticleThinning.h:41
DerivationFramework::TauTrackParticleThinning::~TauTrackParticleThinning
virtual ~TauTrackParticleThinning()
SG::ThinningHandleKey
HandleKey object for adding thinning to an object.
Definition: ThinningHandleKey.h:38
ExpressionParserUser.h
DerivationFramework::TauTrackParticleThinning::m_ntot
std::atomic< unsigned int > m_ntot
Definition: TauTrackParticleThinning.h:38
IThinningTool.h
DerivationFramework::TauTrackParticleThinning::doThinning
virtual StatusCode doThinning() const override
Definition: TauTrackParticleThinning.cxx:69
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::TauTrackParticleThinning::initialize
virtual StatusCode initialize() override
Definition: TauTrackParticleThinning.cxx:32
DerivationFramework::TauTrackParticleThinning
Definition: TauTrackParticleThinning.h:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
DerivationFramework::TauTrackParticleThinning::m_coneSize
Gaudi::Property< float > m_coneSize
Definition: TauTrackParticleThinning.h:53
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::TauTrackParticleThinning::m_tauKey
SG::ReadHandleKey< xAOD::TauJetContainer > m_tauKey
Definition: TauTrackParticleThinning.h:45
DerivationFramework::TauTrackParticleThinning::m_selectionString
Gaudi::Property< std::string > m_selectionString
Definition: TauTrackParticleThinning.h:51
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::TauTrackParticleThinning::m_doTauTracksThinning
Gaudi::Property< bool > m_doTauTracksThinning
Definition: TauTrackParticleThinning.h:47
TauJetContainer.h
DerivationFramework::TauTrackParticleThinning::finalize
virtual StatusCode finalize() override
Definition: TauTrackParticleThinning.cxx:60
DerivationFramework::TauTrackParticleThinning::m_tauTracksSGKey
SG::ThinningHandleKey< xAOD::TauTrackContainer > m_tauTracksSGKey
Definition: TauTrackParticleThinning.h:49
TracksInCone.h
DerivationFramework::TauTrackParticleThinning::TauTrackParticleThinning
TauTrackParticleThinning(const std::string &t, const std::string &n, const IInterface *p)
Definition: TauTrackParticleThinning.cxx:21
ThinningHandleKey.h
HandleKey object for adding thinning to an object.
DerivationFramework::TauTrackParticleThinning::m_npass
std::atomic< unsigned int > m_npass
Definition: TauTrackParticleThinning.h:39
TrackParticleContainer.h