ATLAS Offline Software
Loading...
Searching...
No Matches
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
27namespace 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", "" };
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
Property holding a SG store/key/clid from which a ReadHandle is made.
HandleKey object for adding thinning to an object.
TauTrackParticleThinning(const std::string &t, const std::string &n, const IInterface *p)
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_inDetSGKey
SG::ReadHandleKey< xAOD::TauJetContainer > m_tauKey
SG::ThinningHandleKey< xAOD::TauTrackContainer > m_tauTracksSGKey
Property holding a SG store/key/clid from which a ReadHandle is made.
HandleKey object for adding thinning to an object.
THE reconstruction tool.