ATLAS Offline Software
Loading...
Searching...
No Matches
VertexSelectionAlg.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2//
3// Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
4//
5#ifndef TRACKINGANALYSISALGORITHMS_VERTEXSELECTIONALG_H
6#define TRACKINGANALYSISALGORITHMS_VERTEXSELECTIONALG_H
7
8// Framework include(s):
14
15// EDM include(s):
17
18// System include(s):
19#include <string>
20
21namespace CP {
22
32
33 public:
36
39
41 virtual StatusCode initialize() override;
42
44 virtual StatusCode execute(const EventContext &ctx) const override;
45
47 virtual StatusCode finalize() override;
48
50
51 private:
54
56 SG::ReadHandleKey<xAOD::VertexContainer> m_vertexKey {this, "VertexContainer", "PrimaryVertices", "Vertex container to check"};
58 Gaudi::Property<unsigned> m_minVertices {this, "MinVertices", 1, "Minimum number of vertices required"};
60 Gaudi::Property<unsigned> m_minTracks {this, "MinTracks", 0, "Minimum number of track particles required per vertex"};
61
62 FilterReporterParams m_filterParams {this, "VertexSelection", "vertex selection"};
63
65
66 }; // class VertexSelectionAlg
67
68} // namespace CP
69
70#endif // TRACKINGANALYSISALGORITHMS_VERTEXSELECTIONALG_H
Property holding a SG store/key/clid from which a ReadHandle is made.
Handle class for reading from StoreGate.
Algorithm meant to select events with "some" vertex requirements.
FilterReporterParams m_filterParams
Gaudi::Property< unsigned > m_minTracks
Number of track particles required per vertex.
virtual StatusCode finalize() override
Function finalize the algorithm.
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexKey
Event store key of the vertex container.
virtual StatusCode initialize() override
Function initialising the algorithm.
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
Gaudi::Property< unsigned > m_minVertices
Number of vertices required in the event.
the base class for EventLoop reentrant algorithms
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
a handle for applying algorithm filter decisions
Property holding a SG store/key/clid from which a ReadHandle is made.
Select isolated Photons, Electrons and Muons.