ATLAS Offline Software
Loading...
Searching...
No Matches
TauJets_LepRMParticleThinning.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// TauJets_LepRMParticleThinning.h, (c) ATLAS Detector software
8
9#ifndef DERIVATIONFRAMEWORK_TAUJETS_LEPRMPARTICLETHINNING_H
10#define DERIVATIONFRAMEWORK_TAUJETS_LEPRMPARTICLETHINNING_H
11
12#include <string>
13#include <atomic>
14
17#include "GaudiKernel/ToolHandle.h"
20
23
25
26namespace DerivationFramework {
27
28 class TauJets_LepRMParticleThinning : public extends<ExpressionParserUser<AthAlgTool>, IThinningTool> {
29 public:
30 TauJets_LepRMParticleThinning(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_taus {0};
37 mutable std::atomic<unsigned int> m_ntot_trks {0};
38 mutable std::atomic<unsigned int> m_ntot_ID_trks {0};
39 mutable std::atomic<unsigned int> m_npass_taus {0};
40 mutable std::atomic<unsigned int> m_npass_trks {0};
41 mutable std::atomic<unsigned int> m_npass_ID_trks {0};
42
43 StringProperty m_streamName{ this, "StreamName", "", "Name of the stream being thinned" };
44
46
47 SG::ThinningHandleKey<xAOD::TauJetContainer> m_LepRMTauKey{ this, "LepRMTauKey", "TauJets_LepRM", "where Lep can be Muon or Elec" };
48
49 SG::ThinningHandleKey<xAOD::TrackParticleContainer> m_inDetSGKey{ this, "InDetTrackParticlesKey", "InDetTrackParticles", "" };
50
51 SG::ThinningHandleKey<xAOD::TauTrackContainer> m_tauTracksSGKey{ this, "TauTracksKey", "TauTracks_LepRM", "where Lep can be Muon or Elec" };
52
53 Gaudi::Property<std::string> m_selectionString{ this, "SelectionString", "",""};
54 };
55}
56
57#endif // DERIVATIONFRAMEWORK_TAUJETS_LEPRMPARTICLETHINNING_H
Property holding a SG store/key/clid from which a ReadHandle is made.
HandleKey object for adding thinning to an object.
TauJets_LepRMParticleThinning(const std::string &t, const std::string &n, const IInterface *p)
SG::ThinningHandleKey< xAOD::TauTrackContainer > m_tauTracksSGKey
SG::ThinningHandleKey< xAOD::TauJetContainer > m_LepRMTauKey
SG::ReadHandleKey< xAOD::TauJetContainer > m_originalTauKey
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.