ATLAS Offline Software
Loading...
Searching...
No Matches
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"
22
24
25namespace 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", "" };
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
HandleKey object for adding thinning to an object.
SG::ReadHandleKey< xAOD::MuonContainer > m_muonKey
MuonTrackParticleThinning(const std::string &t, const std::string &n, const IInterface *p)
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.