ATLAS Offline Software
Loading...
Searching...
No Matches
BPhysPVThinningTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6// BPhysPVThinningTool.h
8
9#ifndef DERIVATIONFRAMEWORK_BPhysPVThinningTool_H
10#define DERIVATIONFRAMEWORK_BPhysPVThinningTool_H 1
11
13// Gaudi & Athena basics
17// DerivationFramework includes
19
20namespace DerivationFramework {
21
22
23 class BPhysPVThinningTool : public extends<AthAlgTool, IThinningTool> {
24
25 public:
27 BPhysPVThinningTool( const std::string& t, const std::string& n, const IInterface* p );
28
31
32 // Athena algtool's Hooks
33 virtual StatusCode initialize() override;
34 virtual StatusCode finalize() override;
35
37 virtual StatusCode doThinning() const override;
38
39 private:
40 StringProperty m_streamName{ this, "StreamName", "", "Name of the stream being thinned" };
44 mutable std::atomic<unsigned int> m_ntot;
45 mutable std::atomic<unsigned int> m_npass;
46 mutable std::atomic<unsigned int> m_tracks_kept;
48 };
49
50}
51
52
53#endif
HandleKey object for adding thinning to an object.
SG::ReadHandleKeyArray< xAOD::VertexContainer > m_BPhyCandList
BPhysPVThinningTool(const std::string &t, const std::string &n, const IInterface *p)
Constructor with parameters.
SG::ThinningHandleKey< xAOD::VertexContainer > m_PVContainerName
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_TrackContainerName
virtual StatusCode doThinning() const override
Check that the current event passes this filter.
HandleKey object for adding thinning to an object.
THE reconstruction tool.
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray