ATLAS Offline Software
Reco_4mu.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 // Reco_4mu.h
8 
9 #ifndef DERIVATIONFRAMEWORK_Reco_4mu_H
10 #define DERIVATIONFRAMEWORK_Reco_4mu_H
11 
12 #include <string>
13 
16 #include "FourMuonTool.h"
18 #include "xAODBPhys/BPhysHelper.h"
19 
22 namespace Trk {
23  class V0Tools;
24 }
25 
26 namespace xAOD {
27  class BPhysHypoHelper;
28 }
29 
32 namespace DerivationFramework {
33 
34  class Reco_4mu : public extends<AthAlgTool, IAugmentationTool> {
35  public:
36  Reco_4mu(const std::string& t, const std::string& n, const IInterface* p);
37 
38  virtual StatusCode initialize() override final;
39 
40  virtual StatusCode addBranches(const EventContext& ctx) const override final;
41 
42  private:
45  void ProcessVertex(xAOD::BPhysHypoHelper&, xAOD::BPhysHelper::pv_type, std::vector<double> trackMasses) const;
46  PublicToolHandle<Trk::V0Tools> m_v0Tools{this, "V0Tools", "Trk::V0Tools"};
47  ToolHandle<DerivationFramework::FourMuonTool> m_fourMuonTool{this, "FourMuonTool", "DerivationFramework::FourMuonTool"};
48  ToolHandle<Analysis::PrimaryVertexRefitter> m_pvRefitter{this, "PVRefitter", "Analysis::PrimaryVertexRefitter"};
49 
52  SG::WriteHandleKey<xAOD::VertexContainer> m_pairName{this, "PairContainerName", "Pairs"};
53  SG::WriteHandleKey<xAOD::VertexContainer> m_quadName{this, "QuadrupletContainerName", "Quadruplets"};
54  SG::ReadHandleKey<xAOD::VertexContainer> m_pvContainerName{this, "PVContainerName", "PrimaryVertices"};
55  SG::WriteHandleKey<xAOD::VertexContainer> m_refPVContainerName{this, "RefPVContainerName", "RefittedPrimaryVertices"};
56  Gaudi::Property<bool> m_refitPV{this, "RefitPV", false};
57  Gaudi::Property<int> m_PV_max{this, "MaxPVrefit", 1};
58  Gaudi::Property<int> m_DoVertexType{this, "DoVertexType", 1};
59  };
60 }
61 
62 #endif // DERIVATIONFRAMEWORK_Reco_4mu_H
IAugmentationTool.h
DerivationFramework::Reco_4mu::ProcessVertex
void ProcessVertex(xAOD::BPhysHypoHelper &, xAOD::BPhysHelper::pv_type, std::vector< double > trackMasses) const
tools
Definition: Reco_4mu.cxx:176
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
PrimaryVertexRefitter.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::Reco_4mu::m_DoVertexType
Gaudi::Property< int > m_DoVertexType
Definition: Reco_4mu.h:58
DerivationFramework::Reco_4mu::initialize
virtual StatusCode initialize() override final
Definition: Reco_4mu.cxx:30
DerivationFramework::Reco_4mu
Definition: Reco_4mu.h:34
DerivationFramework::Reco_4mu::m_pvRefitter
ToolHandle< Analysis::PrimaryVertexRefitter > m_pvRefitter
Definition: Reco_4mu.h:48
DerivationFramework::Reco_4mu::m_refPVContainerName
SG::WriteHandleKey< xAOD::VertexContainer > m_refPVContainerName
Definition: Reco_4mu.h:55
xAOD::BPhysHypoHelper
Definition: BPhysHypoHelper.h:73
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
xAOD::BPhysHelper::pv_type
pv_type
: Enum type of the PV
Definition: BPhysHelper.h:475
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
beamspotman.n
n
Definition: beamspotman.py:727
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DerivationFramework::Reco_4mu::m_PV_max
Gaudi::Property< int > m_PV_max
Definition: Reco_4mu.h:57
DerivationFramework::Reco_4mu::m_v0Tools
PublicToolHandle< Trk::V0Tools > m_v0Tools
Definition: Reco_4mu.h:46
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::Reco_4mu::m_fourMuonTool
ToolHandle< DerivationFramework::FourMuonTool > m_fourMuonTool
Definition: Reco_4mu.h:47
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
DerivationFramework::Reco_4mu::m_quadName
SG::WriteHandleKey< xAOD::VertexContainer > m_quadName
Definition: Reco_4mu.h:53
V0Tools
BPhysHelper.h
: B-physics xAOD helpers.
DerivationFramework::Reco_4mu::m_refitPV
Gaudi::Property< bool > m_refitPV
Definition: Reco_4mu.h:56
DerivationFramework::Reco_4mu::Reco_4mu
Reco_4mu(const std::string &t, const std::string &n, const IInterface *p)
Definition: Reco_4mu.cxx:21
DerivationFramework::Reco_4mu::m_pvContainerName
SG::ReadHandleKey< xAOD::VertexContainer > m_pvContainerName
Definition: Reco_4mu.h:54
DerivationFramework::Reco_4mu::m_pairName
SG::WriteHandleKey< xAOD::VertexContainer > m_pairName
job options
Definition: Reco_4mu.h:52
DerivationFramework::Reco_4mu::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition: Reco_4mu.cxx:53
FourMuonTool.h