ATLAS Offline Software
Loading...
Searching...
No Matches
JetTrackParticleThinning.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// JetTrackParticleThinning.h, (c) ATLAS Detector software
8
9#ifndef DERIVATIONFRAMEWORK_JETTRACKPARTICLETHINNING_H
10#define DERIVATIONFRAMEWORK_JETTRACKPARTICLETHINNING_H
11
12#include <string>
13#include <atomic>
14
17#include "GaudiKernel/ToolHandle.h"
22
24
25namespace DerivationFramework {
26
28 class JetTrackParticleThinning : public extends<ExpressionParserUser<AthAlgTool, kNumJetTPThinningParser>, IThinningTool> {
29 public:
30 JetTrackParticleThinning(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", "", "" };
49 { this, "TrackSelectionString", "", "" };
50 };
51}
52
53#endif // DERIVATIONFRAMEWORK_JETTRACKPARTICLETHINNING_H
Property holding a SG store/key/clid from which a ReadHandle is made.
HandleKey object for adding thinning to an object.
JetTrackParticleThinning(const std::string &t, const std::string &n, const IInterface *p)
SG::ReadHandleKey< xAOD::JetContainer > m_jetKey
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_inDetSGKey
Property holding a SG store/key/clid from which a ReadHandle is made.
HandleKey object for adding thinning to an object.
THE reconstruction tool.