ATLAS Offline Software
Loading...
Searching...
No Matches
Thin_vtxTrk.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// Thin_vtxTrk.h
8
9#ifndef DERIVATIONFRAMEWORK_Thin_vtxTrk_H
10#define DERIVATIONFRAMEWORK_Thin_vtxTrk_H
11
16#include "GaudiKernel/ToolHandle.h"
20#include <string>
21
22namespace SG{
23 template <class T>
25}
26
27namespace DerivationFramework {
28
29 class Thin_vtxTrk : public extends<AthAlgTool, IThinningTool> {
30 public:
31 Thin_vtxTrk(const std::string& t, const std::string& n, const IInterface* p);
33 StatusCode initialize();
34 StatusCode finalize();
35 virtual StatusCode doThinning() const;
36
37 private:
38 StringProperty m_streamName{ this, "StreamName", "", "Name of the stream being thinned" };
39 mutable std::atomic<unsigned int> m_ntot, m_npass;
41 mutable std::atomic<unsigned int> m_nVtxTot, m_nVtxPass;
42
45 std::vector<std::string> m_passFlags;
48 bool m_noFlags; //To take all entries, regardless of flags
49 };
50}
51
52#endif
HandleKey object for adding thinning to an object.
std::atomic< unsigned int > m_nVtxTot
Definition Thin_vtxTrk.h:41
virtual StatusCode doThinning() const
std::atomic< unsigned int > m_npass
Definition Thin_vtxTrk.h:39
SG::ReadDecorHandleKeyArray< xAOD::VertexContainer > m_passArray
Definition Thin_vtxTrk.h:46
std::atomic< unsigned int > m_nVtxPass
Definition Thin_vtxTrk.h:41
std::vector< std::string > m_passFlags
Definition Thin_vtxTrk.h:45
std::atomic< unsigned int > m_ntot
Definition Thin_vtxTrk.h:39
Thin_vtxTrk(const std::string &t, const std::string &n, const IInterface *p)
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_trackParticleContainerName
Definition Thin_vtxTrk.h:43
SG::ThinningHandleKeyArray< xAOD::VertexContainer > m_vertexContainerName
Definition Thin_vtxTrk.h:44
HandleKey object for adding thinning to an object.
THE reconstruction tool.
Forward declaration.
DecorHandleKeyArray< ReadDecorHandle< T, S >, ReadDecorHandleKey< T >, Gaudi::DataHandle::Reader > ReadDecorHandleKeyArray
HandleKeyArray< ThinningHandle< T >, ThinningHandleKey< T >, Gaudi::DataHandle::Reader > ThinningHandleKeyArray