ATLAS Offline Software
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
17 #include "xAODTracking/VertexFwd.h"
18 #include "xAODJet/JetContainer.h"
19 
29 namespace Trk {
30 
32  : public AthAlgTool
33  , virtual public IVertexWeightCalculator
34 {
35 public:
36  virtual StatusCode initialize() override;
37  virtual StatusCode finalize() override;
38 
44  const std::string& n,
45  const IInterface* p);
46 
52 
57  virtual double estimateSignalCompatibility(const xAOD::Vertex& vertex) const override final;
58 
59 private:
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
Trk::JetRestrictedSumPtVertexWeightCalculator::m_cone_dR
Gaudi::Property< float > m_cone_dR
Definition: JetRestrictedSumPtVertexWeightCalculator.h:64
Trk::JetRestrictedSumPtVertexWeightCalculator::m_decPlainSumPt
std::unique_ptr< SG::AuxElement::Decorator< float > > m_decPlainSumPt
Definition: JetRestrictedSumPtVertexWeightCalculator.h:69
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
IVertexWeightCalculator.h
Trk::JetRestrictedSumPtVertexWeightCalculator::m_doSumPt2Selection
Gaudi::Property< bool > m_doSumPt2Selection
Flag to Set SumPt^2 not SumPt as selection criteria.
Definition: JetRestrictedSumPtVertexWeightCalculator.h:63
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
CheckAppliedSFs.e3
e3
Definition: CheckAppliedSFs.py:264
Trk::JetRestrictedSumPtVertexWeightCalculator::JetRestrictedSumPtVertexWeightCalculator
JetRestrictedSumPtVertexWeightCalculator(const std::string &t, const std::string &n, const IInterface *p)
constructor
Definition: JetRestrictedSumPtVertexWeightCalculator.cxx:45
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ITrackParticlesInConeTool.h
AthAlgTool.h
Trk::JetRestrictedSumPtVertexWeightCalculator::estimateSignalCompatibility
virtual double estimateSignalCompatibility(const xAOD::Vertex &vertex) const override final
WeightCalculator.
Definition: JetRestrictedSumPtVertexWeightCalculator.cxx:55
Trk::JetRestrictedSumPtVertexWeightCalculator::~JetRestrictedSumPtVertexWeightCalculator
virtual ~JetRestrictedSumPtVertexWeightCalculator()=default
destructor
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::JetRestrictedSumPtVertexWeightCalculator::m_jetContKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetContKey
Definition: JetRestrictedSumPtVertexWeightCalculator.h:67
Trk::JetRestrictedSumPtVertexWeightCalculator::m_tracksInCone
ToolHandle< xAOD::ITrackParticlesInConeTool > m_tracksInCone
Definition: JetRestrictedSumPtVertexWeightCalculator.h:66
Trk::JetRestrictedSumPtVertexWeightCalculator::m_jet_ptmin
Gaudi::Property< float > m_jet_ptmin
Definition: JetRestrictedSumPtVertexWeightCalculator.h:65
VertexFwd.h
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
JetContainer.h
Trk::JetRestrictedSumPtVertexWeightCalculator::m_plainSumPtKey
Gaudi::Property< std::string > m_plainSumPtKey
Definition: JetRestrictedSumPtVertexWeightCalculator.h:68
Trk::JetRestrictedSumPtVertexWeightCalculator
Definition: JetRestrictedSumPtVertexWeightCalculator.h:34
Trk::IVertexWeightCalculator
Definition: IVertexWeightCalculator.h:40
Trk::JetRestrictedSumPtVertexWeightCalculator::initialize
virtual StatusCode initialize() override
Definition: JetRestrictedSumPtVertexWeightCalculator.cxx:20
AthAlgTool
Definition: AthAlgTool.h:26
AuxElement.h
Base class for elements of a container that can have aux data.
Trk::JetRestrictedSumPtVertexWeightCalculator::finalize
virtual StatusCode finalize() override
Definition: JetRestrictedSumPtVertexWeightCalculator.cxx:39