ATLAS Offline Software
Loading...
Searching...
No Matches
JetRestrictedSumPtVertexWeightCalculator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TrkVertexWeightCalculator_JetRestrictedSumPtVertexWeightCalculator_H
6#define TrkVertexWeightCalculator_JetRestrictedSumPtVertexWeightCalculator_H
7
8#include <memory>
11#include "GaudiKernel/ToolHandle.h"
13
15
16// xAOD include
19
28
29namespace Trk {
30
32 : public AthAlgTool
33 , virtual public IVertexWeightCalculator
34{
35public:
36 virtual StatusCode initialize() override;
37 virtual StatusCode finalize() override;
38
42
44 const std::string& n,
45 const IInterface* p);
46
50
52
56
57 virtual double estimateSignalCompatibility(const xAOD::Vertex& vertex) const override final;
58
59private:
63 Gaudi::Property<bool> m_doSumPt2Selection{ this, "DoSumPt2Selection", true };
64 Gaudi::Property<float> m_cone_dR{ this, "JetConeDeltaR", 0.4 };
65 Gaudi::Property<float> m_jet_ptmin{ this, "JetMinPt", 20e3 };
66 ToolHandle<xAOD::ITrackParticlesInConeTool> m_tracksInCone{ this, "TracksInConeTool", "xAOD::TrackParticlesInConeTool/TrackParticlesInConeTool" };
67 SG::ReadHandleKey<xAOD::JetContainer> m_jetContKey{ this, "JetContainer", "AntiKt4EMTopoJets", "Name of the jet container" };
68 Gaudi::Property<std::string> m_plainSumPtKey{ this, "PlainSumPtDecor", "", "Optional decoration name holding the unrestricted vertex sumpt" };
69 std::unique_ptr<SG::AuxElement::Decorator<float> > m_decPlainSumPt;
70
71}; // end of class description
72} // end of namespace definition
73
74#endif
Base class for elements of a container that can have aux data.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual double estimateSignalCompatibility(const xAOD::Vertex &vertex) const override final
WeightCalculator.
virtual ~JetRestrictedSumPtVertexWeightCalculator()=default
destructor
Gaudi::Property< bool > m_doSumPt2Selection
Flag to Set SumPt^2 not SumPt as selection criteria.
JetRestrictedSumPtVertexWeightCalculator(const std::string &t, const std::string &n, const IInterface *p)
constructor
std::unique_ptr< SG::AuxElement::Decorator< float > > m_decPlainSumPt
ToolHandle< xAOD::ITrackParticlesInConeTool > m_tracksInCone
Ensure that the ATLAS eigen extensions are properly loaded.
Vertex_v1 Vertex
Define the latest version of the vertex class.