ATLAS Offline Software
Loading...
Searching...
No Matches
ZeeVertexRefittingTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6// EGVertexRefittingTool.h
7// author: ioannis.nomidis@cern.ch
9
14
15#ifndef DERIVATIONFRAMEWORK_ZEEVERTEXREFITTINGTOOL_H
16#define DERIVATIONFRAMEWORK_ZEEVERTEXREFITTINGTOOL_H
17
18#include <string>
19#include <vector>
20
24#include "GaudiKernel/ToolHandle.h"
27
31
33
34namespace DerivationFramework {
35
36 class ZeeVertexRefittingTool : public extends<ExpressionParserUser<AthAlgTool>, IAugmentationTool> {
37 public:
38
39 using base_class::base_class;
40
41 virtual StatusCode initialize() override final;
42 virtual StatusCode finalize() override final;
43 virtual StatusCode addBranches(const EventContext& ctx) const override final;
44
45 private:
46 Gaudi::Property<std::string> m_expression{this, "ObjectRequirements", "true"};
47 Gaudi::Property<float> m_massCut{this, "LowMassCut", 0.f};
48
49 SG::ReadHandleKey<xAOD::VertexContainer> m_primaryVertexKey{this, "PVContainerName", "PrimaryVertices", "" };
50 SG::ReadHandleKey<xAOD::ElectronContainer> m_electronKey { this, "ElectronContainerName", "Electrons", "" };
51 SG::WriteHandleKey<xAOD::VertexContainer> m_refitpvKey{this, "RefittedPVContainerName", "HggPrimaryVertices", "" };
52 SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey { this, "EventInfoKey", "EventInfo", "" };
53
54 Gaudi::Property<std::vector<unsigned int> > m_MCSamples{this, "MCSamples", {} };
55
56 ToolHandle < Analysis::PrimaryVertexRefitter > m_pvrefitter{this, "PrimaryVertexRefitterTool", "Analysis::PrimaryVertexRefitter"};
57
58 StatusCode makeZeePairs( const xAOD::ElectronContainer *particles, std::vector<std::vector<unsigned int> > &ZeePairs) const;
59 };
60}
61
62#endif // DERIVATIONFRAMEWORK_ZEEVERTEXREFITTINGTOOL_H
StatusCode makeZeePairs(const xAOD::ElectronContainer *particles, std::vector< std::vector< unsigned int > > &ZeePairs) const
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronKey
SG::ReadHandleKey< xAOD::VertexContainer > m_primaryVertexKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
ToolHandle< Analysis::PrimaryVertexRefitter > m_pvrefitter
virtual StatusCode initialize() override final
virtual StatusCode finalize() override final
Gaudi::Property< std::vector< unsigned int > > m_MCSamples
SG::WriteHandleKey< xAOD::VertexContainer > m_refitpvKey
virtual StatusCode addBranches(const EventContext &ctx) const override final
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
THE reconstruction tool.
ElectronContainer_v1 ElectronContainer
Definition of the current "electron container version".