ATLAS Offline Software
MuPlusDpstCascade.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MuPlusDpstCascade_H
5 #define MuPlusDpstCascade_H
6 //*********************
7 // MuPlusDpstCascade header file
8 //
9 // Eva Bouhova <e.bouhova@cern.ch>
10 // Adam Barton <abarton@cern.ch>
11 
13 #include "GaudiKernel/ToolHandle.h"
16 #include <vector>
19 #include "GaudiKernel/IPartPropSvc.h"
20 
21 namespace Trk {
22  class IVertexFitter;
23  class TrkVKalVrtFitter;
24  class IVertexCascadeFitter;
25  class VxCascadeInfo;
26  class V0Tools;
27  class VxTrackAtVertex;
28 }
29 
30 namespace DerivationFramework {
31  class CascadeTools;
32 }
33 
34 namespace DerivationFramework {
35 
36  static const InterfaceID IID_MuPlusDpstCascade("MuPlusDpstCascade", 1, 0);
37 
38  class MuPlusDpstCascade : virtual public AthAlgTool, public IAugmentationTool
39  {
40  public:
41  static const InterfaceID& interfaceID() { return IID_MuPlusDpstCascade;}
42  MuPlusDpstCascade(const std::string& t, const std::string& n, const IInterface* p);
44  virtual StatusCode initialize() override;
45  StatusCode performSearch(std::vector<Trk::VxCascadeInfo*> *cascadeinfoContainer ) const;
46  virtual StatusCode addBranches() const override;
47 
48  private:
49  std::string m_vertexContainerKey;
51  std::vector<std::string> m_cascadeOutputsKeys;
52 
54 
57  double m_D0MassLower;
58  double m_D0MassUpper;
61  double m_DstMassUpperAft; //mass cut after cascade fit
62  double m_MassLower;
63  double m_MassUpper;
64  double m_vtx0MassHypo; // mass hypothesis of vertex 0
65  double m_vtx1MassHypo; // mass hypothesis of vertex 1
66  double m_vtx0Daug1MassHypo; // mass hypothesis of 1st daughter from vertex 0
67  double m_vtx0Daug2MassHypo; // mass hypothesis of 2nd daughter from vertex 0
68  double m_vtx1Daug1MassHypo; // mass hypothesis of 1st daughter from vertex 1
69  double m_vtx1Daug2MassHypo; // mass hypothesis of 2nd daughter from vertex 1
70 
71 
72  int m_Dx_pid;
73  bool m_constrD0;
75  double m_chi2cut;
76 
77  SG::ReadHandleKey<xAOD::EventInfo> m_eventInfo_key{this, "EventInfo", "EventInfo", "Input event information"};
78  ToolHandle < Trk::TrkVKalVrtFitter > m_iVertexFitter;
79  ToolHandle < Analysis::PrimaryVertexRefitter > m_pvRefitter;
80  ToolHandle < Trk::V0Tools > m_V0Tools;
81  ToolHandle < DerivationFramework::CascadeTools > m_CascadeTools;
82  std::unique_ptr<InDet::InDetTrackSelectionTool> m_trackSelectionTools;
83  ServiceHandle<IPartPropSvc> m_partPropSvc{this, "PartPropSvc", "PartPropSvc"};
84 
85  bool m_refitPV;
86  std::string m_refPVContainerName;
87  std::string m_hypoName;
88  //This parameter will allow us to optimize the number of PVs under consideration as the probability
89  //of a useful primary vertex drops significantly the higher you go
90  int m_PV_max;
93 
94  };
95 }
96 
97 #endif
DerivationFramework::MuPlusDpstCascade::m_D0MassUpper
double m_D0MassUpper
Definition: MuPlusDpstCascade.h:58
DerivationFramework::MuPlusDpstCascade::m_vtx0Daug1MassHypo
double m_vtx0Daug1MassHypo
Definition: MuPlusDpstCascade.h:66
DerivationFramework::MuPlusDpstCascade::m_vtx1Daug2MassHypo
double m_vtx1Daug2MassHypo
Definition: MuPlusDpstCascade.h:69
DerivationFramework::MuPlusDpstCascade::m_PV_max
int m_PV_max
Definition: MuPlusDpstCascade.h:90
DerivationFramework::MuPlusDpstCascade::m_refitPV
bool m_refitPV
Definition: MuPlusDpstCascade.h:85
DerivationFramework::MuPlusDpstCascade::m_eventInfo_key
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo_key
Definition: MuPlusDpstCascade.h:77
DerivationFramework::MuPlusDpstCascade::m_DstMassUpperAft
double m_DstMassUpperAft
Definition: MuPlusDpstCascade.h:61
DerivationFramework::MuPlusDpstCascade::MuPlusDpstCascade
MuPlusDpstCascade(const std::string &t, const std::string &n, const IInterface *p)
Definition: MuPlusDpstCascade.cxx:424
IAugmentationTool.h
DerivationFramework::MuPlusDpstCascade::m_VxPrimaryCandidateName
std::string m_VxPrimaryCandidateName
Name of primary vertex container.
Definition: MuPlusDpstCascade.h:53
DerivationFramework::MuPlusDpstCascade::m_trackSelectionTools
std::unique_ptr< InDet::InDetTrackSelectionTool > m_trackSelectionTools
Definition: MuPlusDpstCascade.h:82
DerivationFramework::MuPlusDpstCascade::m_constrD0
bool m_constrD0
Definition: MuPlusDpstCascade.h:73
DerivationFramework::MuPlusDpstCascade::m_MassUpper
double m_MassUpper
Definition: MuPlusDpstCascade.h:63
DerivationFramework::MuPlusDpstCascade::m_iVertexFitter
ToolHandle< Trk::TrkVKalVrtFitter > m_iVertexFitter
Definition: MuPlusDpstCascade.h:78
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
PrimaryVertexRefitter.h
SG::ReadHandleKey< xAOD::EventInfo >
DerivationFramework::MuPlusDpstCascade::m_refPVContainerName
std::string m_refPVContainerName
Definition: MuPlusDpstCascade.h:86
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::MuPlusDpstCascade::m_vtx1Daug1MassHypo
double m_vtx1Daug1MassHypo
Definition: MuPlusDpstCascade.h:68
DerivationFramework::MuPlusDpstCascade::m_vtx1MassHypo
double m_vtx1MassHypo
Definition: MuPlusDpstCascade.h:65
DerivationFramework::MuPlusDpstCascade::performSearch
StatusCode performSearch(std::vector< Trk::VxCascadeInfo * > *cascadeinfoContainer) const
Definition: MuPlusDpstCascade.cxx:491
DerivationFramework::MuPlusDpstCascade::m_partPropSvc
ServiceHandle< IPartPropSvc > m_partPropSvc
Definition: MuPlusDpstCascade.h:83
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
DerivationFramework::MuPlusDpstCascade::m_CascadeTools
ToolHandle< DerivationFramework::CascadeTools > m_CascadeTools
Definition: MuPlusDpstCascade.h:81
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DerivationFramework::MuPlusDpstCascade::m_chi2cut
double m_chi2cut
Definition: MuPlusDpstCascade.h:75
InDetTrackSelectionTool.h
DerivationFramework::MuPlusDpstCascade::m_pvRefitter
ToolHandle< Analysis::PrimaryVertexRefitter > m_pvRefitter
Definition: MuPlusDpstCascade.h:79
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::MuPlusDpstCascade::m_Dx_pid
int m_Dx_pid
Definition: MuPlusDpstCascade.h:72
DerivationFramework::MuPlusDpstCascade::m_vertexD0ContainerKey
std::string m_vertexD0ContainerKey
Definition: MuPlusDpstCascade.h:50
DerivationFramework::MuPlusDpstCascade::m_PV_minNTracks
size_t m_PV_minNTracks
Definition: MuPlusDpstCascade.h:92
DerivationFramework::MuPlusDpstCascade::m_MuPiMassLower
double m_MuPiMassLower
Definition: MuPlusDpstCascade.h:55
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
DerivationFramework::MuPlusDpstCascade::m_vtx0MassHypo
double m_vtx0MassHypo
Definition: MuPlusDpstCascade.h:64
DerivationFramework::MuPlusDpstCascade::m_vertexContainerKey
std::string m_vertexContainerKey
Definition: MuPlusDpstCascade.h:49
V0Tools
EventInfo.h
DerivationFramework::MuPlusDpstCascade::m_DstMassUpper
double m_DstMassUpper
Definition: MuPlusDpstCascade.h:60
DerivationFramework::MuPlusDpstCascade::m_vtx0Daug2MassHypo
double m_vtx0Daug2MassHypo
Definition: MuPlusDpstCascade.h:67
DerivationFramework::MuPlusDpstCascade::~MuPlusDpstCascade
~MuPlusDpstCascade()
Definition: MuPlusDpstCascade.cxx:489
DerivationFramework::MuPlusDpstCascade
Definition: MuPlusDpstCascade.h:39
DerivationFramework::MuPlusDpstCascade::m_DstMassLower
double m_DstMassLower
Definition: MuPlusDpstCascade.h:59
DerivationFramework::MuPlusDpstCascade::m_V0Tools
ToolHandle< Trk::V0Tools > m_V0Tools
Definition: MuPlusDpstCascade.h:80
DerivationFramework::MuPlusDpstCascade::m_MuPiMassUpper
double m_MuPiMassUpper
Definition: MuPlusDpstCascade.h:56
DerivationFramework::MuPlusDpstCascade::m_MassLower
double m_MassLower
Definition: MuPlusDpstCascade.h:62
DerivationFramework::MuPlusDpstCascade::addBranches
virtual StatusCode addBranches() const override
Pass the thinning service
Definition: MuPlusDpstCascade.cxx:62
DerivationFramework::MuPlusDpstCascade::m_DoVertexType
int m_DoVertexType
Definition: MuPlusDpstCascade.h:91
AthAlgTool
Definition: AthAlgTool.h:26
DerivationFramework::MuPlusDpstCascade::interfaceID
static const InterfaceID & interfaceID()
Definition: MuPlusDpstCascade.h:41
DerivationFramework::MuPlusDpstCascade::initialize
virtual StatusCode initialize() override
Definition: MuPlusDpstCascade.cxx:28
DerivationFramework::MuPlusDpstCascade::m_cascadeOutputsKeys
std::vector< std::string > m_cascadeOutputsKeys
Definition: MuPlusDpstCascade.h:51
DerivationFramework::MuPlusDpstCascade::m_hypoName
std::string m_hypoName
name of the mass hypothesis.
Definition: MuPlusDpstCascade.h:87
ServiceHandle< IPartPropSvc >
DerivationFramework::MuPlusDpstCascade::m_D0MassLower
double m_D0MassLower
Definition: MuPlusDpstCascade.h:57
DerivationFramework::MuPlusDpstCascade::m_constrMuPi
bool m_constrMuPi
Definition: MuPlusDpstCascade.h:74