ATLAS Offline Software
MuonScatteringAngleSignificanceTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONSCATTERINGANGLESIGNIFICANCETOOL_H
6 #define MUONSCATTERINGANGLESIGNIFICANCETOOL_H
7 
9 #include "GaudiKernel/ServiceHandle.h"
10 #include "GaudiKernel/ToolHandle.h"
14 
15 namespace Trk {
16  class Volume;
17 }
18 
19 namespace Rec {
20 
27  public:
28  MuonScatteringAngleSignificanceTool(const std::string& type, const std::string& name, const IInterface* parent);
30 
32 
35 
38 
39  private:
43  bool isSlimmed(const Trk::Track& track) const;
44 
45  // tools and services
46  ToolHandle<Trk::ITrackFitter> m_fitter{this, "TrackFitter", "",
47  "tool for unslimming via track fit"};
48  ServiceHandle<Trk::ITrackingVolumesSvc> m_trackingVolumesSvc{this, "TrackingVolumesSvc", "TrackingVolumesSvc",
49  "geometry for analysing track lengths"};
50 
51  // constants
54 
55  // steering flags
56  bool m_inDetOnly;
58  };
59 
60 } // namespace Rec
61 
62 #endif
Rec::MuonScatteringAngleSignificanceTool::MuonScatteringAngleSignificanceTool
MuonScatteringAngleSignificanceTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: MuonScatteringAngleSignificanceTool.cxx:16
xAOD::muon
@ muon
Definition: TrackingPrimitives.h:195
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Rec::MuonScatteringAngleSignificanceTool::m_indetVolume
const Trk::Volume * m_indetVolume
cache the ID volume pointer
Definition: MuonScatteringAngleSignificanceTool.h:53
Rec::MuonScatteringAngleSignificanceTool::~MuonScatteringAngleSignificanceTool
~MuonScatteringAngleSignificanceTool()=default
Rec::MuonScatteringAngleSignificanceTool::initialize
StatusCode initialize()
Definition: MuonScatteringAngleSignificanceTool.cxx:25
Rec::MuonScatteringAngleSignificanceTool::m_inDetOnly
bool m_inDetOnly
scatterers from ID only (or ID + calo)
Definition: MuonScatteringAngleSignificanceTool.h:56
Rec::MuonScatteringAngleSignificanceTool::isSlimmed
bool isSlimmed(const Trk::Track &track) const
does track have TrackParameters at every TSOS ? Method for compatibility with release < 17,...
Definition: MuonScatteringAngleSignificanceTool.cxx:242
IMuonScatteringAngleSignificance.h
xAOD::Muon_v1
Class describing a Muon.
Definition: Muon_v1.h:38
Rec::MuonScatteringAngleSignificanceTool::m_calorimeterVolume
const Trk::Volume * m_calorimeterVolume
cache the calo volume pointer
Definition: MuonScatteringAngleSignificanceTool.h:52
Rec::ScatteringAngleSignificance
Definition: ScatteringAngleSignificance.h:22
Rec::MuonScatteringAngleSignificanceTool::m_fitter
ToolHandle< Trk::ITrackFitter > m_fitter
tool for unslimming via track fit
Definition: MuonScatteringAngleSignificanceTool.h:46
Rec
Name: MuonSpContainer.h Package : offline/Reconstruction/MuonIdentification/muonEvent.
Definition: FakeTrackBuilder.h:10
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Rec::MuonScatteringAngleSignificanceTool::m_trackingVolumesSvc
ServiceHandle< Trk::ITrackingVolumesSvc > m_trackingVolumesSvc
Definition: MuonScatteringAngleSignificanceTool.h:48
test_pyathena.parent
parent
Definition: test_pyathena.py:15
Rec::IMuonScatteringAngleSignificance
interface providing a the scattering angle significance.
Definition: IMuonScatteringAngleSignificance.h:23
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
Rec::MuonScatteringAngleSignificanceTool
Tool to calculate the scattering angle significance from the detailed information (parameters,...
Definition: MuonScatteringAngleSignificanceTool.h:26
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Rec::MuonScatteringAngleSignificanceTool::m_refitInDetOnly
bool m_refitInDetOnly
steer if to unslim only ID
Definition: MuonScatteringAngleSignificanceTool.h:57
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
AthAlgTool
Definition: AthAlgTool.h:26
Trk::Volume
Definition: Volume.h:35
ITrackingVolumesSvc.h
ITrackFitter.h
Rec::MuonScatteringAngleSignificanceTool::scatteringAngleSignificance
ScatteringAngleSignificance scatteringAngleSignificance(const xAOD::Muon &muon) const
Calculate ScatteringAngleSignificance of a muon, stepping down to the relevant track.
Definition: MuonScatteringAngleSignificanceTool.cxx:51
ServiceHandle< Trk::ITrackingVolumesSvc >