ATLAS Offline Software
Reco_mumu.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef DERIVATIONFRAMEWORK_Reco_mumu_H
5 #define DERIVATIONFRAMEWORK_Reco_mumu_H
6 
7 #include <string>
8 
10 #include "GaudiKernel/ToolHandle.h"
17 namespace Trk {
18  class V0Tools;
19 }
20 
21 
22 
25 namespace DerivationFramework {
26 
27  class Reco_mumu : public AthAlgTool, public IAugmentationTool {
28  public:
29  Reco_mumu(const std::string& t, const std::string& n, const IInterface* p);
30 
31  StatusCode initialize() override;
32 
33  StatusCode addBranches() const override;
34 
35  private:
38  ToolHandle<Trk::V0Tools> m_v0Tools{this, "V0Tools", "Trk::V0Tools"};
39  ToolHandle<Analysis::ICandidateSearch> m_jpsiFinder{this,"JpsiFinder", "Analysis::JpsiFinder"};
40  ToolHandle<Analysis::PrimaryVertexRefitter> m_pvRefitter{this, "PVRefitter", "Analysis::PrimaryVertexRefitter"};
41  SG::ReadHandleKey<xAOD::EventInfo> m_eventInfo_key{this, "EventInfo", "EventInfo", "Input event information"};
42 
43 
44  // minimum number of tracks for PV to be considered for PV association
45 
46  Gaudi::Property<bool> m_refitPV{this, "RefitPV", false};
47  Gaudi::Property<int> m_PV_max{this, "MaxPVrefit", 1};
48  Gaudi::Property<int> m_DoVertexType{this, "DoVertexType", 1};
49  Gaudi::Property<unsigned int> m_PV_minNTracks{this, "MinNTracksInPV", 0};
50  Gaudi::Property<bool> m_do3d{this, "Do3d" , false};
51  Gaudi::Property<bool> m_checkCollections{this, "CheckCollections", false};
52 
54  SG::ReadHandleKey<xAOD::VertexContainer> m_pvContainerKey{this,"PVContainerName", "PrimaryVertices"};
55 
56  SG::WriteHandleKey<xAOD::VertexContainer> m_refContainerKey{this, "RefPVContainerName","RefittedPrimaryVertices" };
57  SG::WriteHandleKey<xAOD::VertexContainer> m_outContainerKey{this, "OutputVtxContainerName", "OniaCandidates"};
58  };
59 }
60 
61 #endif // DERIVATIONFRAMEWORK_Reco_mumu_H
DerivationFramework::Reco_mumu::m_do3d
Gaudi::Property< bool > m_do3d
Definition: Reco_mumu.h:50
DerivationFramework::Reco_mumu::m_eventInfo_key
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo_key
Definition: Reco_mumu.h:41
DerivationFramework::Reco_mumu::m_pvRefitter
ToolHandle< Analysis::PrimaryVertexRefitter > m_pvRefitter
Definition: Reco_mumu.h:40
DerivationFramework::Reco_mumu::m_DoVertexType
Gaudi::Property< int > m_DoVertexType
Definition: Reco_mumu.h:48
DerivationFramework::Reco_mumu::m_checkCollections
Gaudi::Property< bool > m_checkCollections
Definition: Reco_mumu.h:51
IAugmentationTool.h
ICandidateSearch.h
DerivationFramework::Reco_mumu::m_refitPV
Gaudi::Property< bool > m_refitPV
Definition: Reco_mumu.h:46
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
PrimaryVertexRefitter.h
SG::ReadHandleKey< xAOD::EventInfo >
DerivationFramework::Reco_mumu::addBranches
StatusCode addBranches() const override
Pass the thinning service
Definition: Reco_mumu.cxx:59
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::Reco_mumu::initialize
StatusCode initialize() override
Definition: Reco_mumu.cxx:31
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
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:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DerivationFramework::Reco_mumu::m_refContainerKey
SG::WriteHandleKey< xAOD::VertexContainer > m_refContainerKey
Definition: Reco_mumu.h:56
DerivationFramework::Reco_mumu
Definition: Reco_mumu.h:27
AthAlgTool.h
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::Reco_mumu::Reco_mumu
Reco_mumu(const std::string &t, const std::string &n, const IInterface *p)
Definition: Reco_mumu.cxx:22
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
DerivationFramework::Reco_mumu::m_pvContainerKey
SG::ReadHandleKey< xAOD::VertexContainer > m_pvContainerKey
Definition: Reco_mumu.h:54
DerivationFramework::Reco_mumu::m_outContainerKey
SG::WriteHandleKey< xAOD::VertexContainer > m_outContainerKey
Definition: Reco_mumu.h:57
V0Tools
EventInfo.h
DerivationFramework::Reco_mumu::m_PV_max
Gaudi::Property< int > m_PV_max
Definition: Reco_mumu.h:47
DerivationFramework::Reco_mumu::m_CollectionsToCheck
SG::ReadHandleKeyArray< xAOD::VertexContainer > m_CollectionsToCheck
Definition: Reco_mumu.h:53
DerivationFramework::Reco_mumu::m_v0Tools
ToolHandle< Trk::V0Tools > m_v0Tools
tools
Definition: Reco_mumu.h:38
DerivationFramework::Reco_mumu::m_PV_minNTracks
Gaudi::Property< unsigned int > m_PV_minNTracks
Definition: Reco_mumu.h:49
AthAlgTool
Definition: AthAlgTool.h:26
DerivationFramework::Reco_mumu::m_jpsiFinder
ToolHandle< Analysis::ICandidateSearch > m_jpsiFinder
Definition: Reco_mumu.h:39