ATLAS Offline Software
Loading...
Searching...
No Matches
HIJetTrackParticleThinningTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6// HIJetTrackParticleThinningTool.h, (c) ATLAS Detector software
8
9#ifndef DERIVATIONFRAMEWORK_HIJETTRACKPARTICLETHINNINGTOOL_H
10#define DERIVATIONFRAMEWORK_HIJETTRACKPARTICLETHINNINGTOOL_H
11
12// Gaudi & Athena basics
14#include "GaudiKernel/ServiceHandle.h"
19
20// DerivationFramework includes
22#include "AsgTools/ToolHandle.h"
24
25#include <string>
26#include <atomic>
27
28namespace DerivationFramework {
29
30 class HIJetTrackParticleThinningTool : public extends<AthAlgTool, IThinningTool> {
31
32 public:
33 // Constructor with parameters
34 HIJetTrackParticleThinningTool( const std::string& t, const std::string& n, const IInterface* p);
35
36 // Destructor
38
39 // Athena algtool's Hooks
40 virtual StatusCode initialize() override;
41 virtual StatusCode finalize() override;
42
43 // Check current event passes filter
44 virtual StatusCode doThinning() const override;
45
46 private:
47 StringProperty m_streamName
48 { this, "StreamName", "", "Name of the stream being thinned" };
49
51 { this, "PrimaryVertexKey", "PrimaryVertices", "Primary vertex container"};
53 { this, "JetKey", "", "Jet collection container"};
55 { this, "SumPt2Key", "PrimaryVertices.sumPt2", "SumPt2 decoration"};
57 { this, "InDetTrackParticlesKey", "InDetTrackParticles", "" };
58
59 ToolHandle<InDet::IInDetTrackSelectionTool> m_trkSelTool
60 { this, "TrackSelectionTool", "", "Track selection tool"};
61 Gaudi::Property<std::string> m_vertexScheme
62 { this, "PrimaryVertexSelection", "sumPt2", "Vertex selection scheme"};
63
64 mutable std::atomic<unsigned int> m_ntot = 0;
65 mutable std::atomic<unsigned int> m_npass = 0;
66 };
67}
68
69#endif
HandleKey object for adding thinning to an object.
HIJetTrackParticleThinningTool(const std::string &t, const std::string &n, const IInterface *p)
SG::ReadDecorHandleKey< xAOD::VertexContainer > m_sumPt2Key
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_inDetSGKey
ToolHandle< InDet::IInDetTrackSelectionTool > m_trkSelTool
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
HandleKey object for adding thinning to an object.
THE reconstruction tool.