ATLAS Offline Software
Thin_vtxDuplicates.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef DERIVATIONFRAMEWORK_Thin_vtxDuplicates_H
6 #define DERIVATIONFRAMEWORK_Thin_vtxDuplicates_H
7 
11 #include "GaudiKernel/ToolHandle.h"
14 class IThinningSvc;
15 
16 namespace DerivationFramework {
17 
18  class Thin_vtxDuplicates : public AthAlgTool, public IThinningTool {
19  public:
20  Thin_vtxDuplicates(const std::string& t, const std::string& n, const IInterface* p);
22  virtual StatusCode initialize();
23  virtual StatusCode finalize();
24  virtual StatusCode doThinning() const;
25 
26  private:
27  bool m_noFlags;
28  StringProperty m_streamName{ this, "StreamName", "", "Name of the stream being thinned" };
29  mutable std::atomic<unsigned int> m_nVtxTot, m_nVtxPass;
30 
33  };
34 }
35 
36 #endif
DerivationFramework::Thin_vtxDuplicates::Thin_vtxDuplicates
Thin_vtxDuplicates(const std::string &t, const std::string &n, const IInterface *p)
Definition: Thin_vtxDuplicates.cxx:22
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
SG::ThinningHandleKey
HandleKey object for adding thinning to an object.
Definition: ThinningHandleKey.h:38
DerivationFramework::IThinningTool
Definition: IThinningTool.h:24
DerivationFramework::Thin_vtxDuplicates::m_nVtxTot
std::atomic< unsigned int > m_nVtxTot
Definition: Thin_vtxDuplicates.h:29
IThinningTool.h
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
DerivationFramework::Thin_vtxDuplicates::m_passFlags
SG::ReadDecorHandleKeyArray< xAOD::VertexContainer > m_passFlags
Definition: Thin_vtxDuplicates.h:32
DerivationFramework::Thin_vtxDuplicates::initialize
virtual StatusCode initialize()
Definition: Thin_vtxDuplicates.cxx:43
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DerivationFramework::Thin_vtxDuplicates::m_nVtxPass
std::atomic< unsigned int > m_nVtxPass
Definition: Thin_vtxDuplicates.h:29
DerivationFramework::Thin_vtxDuplicates::m_vertexContainerNames
SG::ThinningHandleKey< xAOD::VertexContainer > m_vertexContainerNames
Definition: Thin_vtxDuplicates.h:31
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DerivationFramework::Thin_vtxDuplicates::finalize
virtual StatusCode finalize()
Definition: Thin_vtxDuplicates.cxx:66
DerivationFramework::Thin_vtxDuplicates::~Thin_vtxDuplicates
~Thin_vtxDuplicates()
AthAlgTool.h
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::Thin_vtxDuplicates::doThinning
virtual StatusCode doThinning() const
Pass the thinning service
Definition: Thin_vtxDuplicates.cxx:75
DerivationFramework::Thin_vtxDuplicates::m_noFlags
bool m_noFlags
Definition: Thin_vtxDuplicates.h:27
VertexContainer.h
ThinningHandleKey.h
HandleKey object for adding thinning to an object.
AthAlgTool
Definition: AthAlgTool.h:26
DerivationFramework::Thin_vtxDuplicates::m_streamName
StringProperty m_streamName
Definition: Thin_vtxDuplicates.h:28
ReadDecorHandleKeyArray.h
DerivationFramework::Thin_vtxDuplicates
Definition: Thin_vtxDuplicates.h:18