ATLAS Offline Software
SCT_ClusterOnTrackTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Header file for class SCT_ClusterOnTrackTool
8 // (c) ATLAS Detector software
10 // Interface for SCT_ClusterOnTrack production
12 // started 1/05/2004 I.Gavrilenko - see ChangeLog for details
14 
15 #ifndef SCT_ClusterOnTrackTool_H
16 #define SCT_ClusterOnTrackTool_H
17 
18 #include "GaudiKernel/ToolHandle.h"
21 
26 
27 namespace InDet {
28 
29 
38  class SCT_ClusterOnTrackTool final:
39  public AthAlgTool,virtual public Trk::IRIO_OnTrackCreator
40 {
42  // Public methods:
44 
45 public:
46 
48  SCT_ClusterOnTrackTool(const std::string&,const std::string&,const IInterface*);
49  virtual ~SCT_ClusterOnTrackTool () = default;
51  virtual StatusCode initialize() override;
53  virtual StatusCode finalize () override;
54 
55 
63  const Trk::PrepRawData&, const Trk::TrackParameters&) const override;
64 
73  static double getCorrection(double phi, int nstrip) ;
74 
75 
86  static double getError(double phi, int nstrip) ;
87 
88  private:
89 
91  // Private data:
93 
95  // SG::ReadCondHandleKey<SCTRIO_OnTrackErrorScaling> m_sctErrorScalingKey
96  // {this,"SCTErrorScalingKey", "/Indet/TrkErrorScalingSCT", "Key for SCT error scaling conditions data."};
98  {this,"SCTErrorScalingKey", "/Indet/TrkErrorScalingSCT", "Key for SCT error scaling conditions data."};
99 
100  ToolHandle<ISiLorentzAngleTool> m_lorentzAngleTool{this, "LorentzAngleTool", "SiLorentzAngleTool", "Tool to retreive Lorentz angle"};
102 
107 };
108 
109 } // end of namespace InDet
110 
111 #endif // SCT_ClusterOnTrackTool_H
SCT_ClusterOnTrack.h
SCTRIO_OnTrackErrorScaling.h
TrackParameters.h
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
InDet
DUMMY Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::SCT_ClusterOnTrackTool::getCorrection
static double getCorrection(double phi, int nstrip)
Returns a correction to be applied to the SCT cluster local x position in simulated events to remove ...
Definition: SCT_ClusterOnTrackTool.cxx:261
IRIO_OnTrackCreator.h
InDet::SCT_ClusterOnTrackTool::m_option_errorStrategy
int m_option_errorStrategy
Definition: SCT_ClusterOnTrackTool.h:105
ISiLorentzAngleTool.h
InDet::SCT_ClusterOnTrackTool::initialize
virtual StatusCode initialize() override
AlgTool initialisation.
Definition: SCT_ClusterOnTrackTool.cxx:52
InDet::SCT_ClusterOnTrackTool::m_sctErrorScalingKey
SG::ReadCondHandleKey< RIO_OnTrackErrorScaling > m_sctErrorScalingKey
toolhandle for central error scaling
Definition: SCT_ClusterOnTrackTool.h:98
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
InDet::SCT_ClusterOnTrackTool::~SCT_ClusterOnTrackTool
virtual ~SCT_ClusterOnTrackTool()=default
Trk::ParametersBase
Definition: ParametersBase.h:55
InDet::SCT_ClusterOnTrackTool
creates SCT_ClusterOnTrack objects allowing to calibrate cluster position and error using a given tra...
Definition: SCT_ClusterOnTrackTool.h:40
Trk::PrepRawData
Definition: PrepRawData.h:62
InDet::SCT_ClusterOnTrackTool::m_option_correctionStrategy
int m_option_correctionStrategy
Definition: SCT_ClusterOnTrackTool.h:106
InDet::SCT_ClusterOnTrackTool::finalize
virtual StatusCode finalize() override
AlgTool termination.
Definition: SCT_ClusterOnTrackTool.cxx:93
SG::ReadCondHandleKey< RIO_OnTrackErrorScaling >
InDet::SCT_ClusterOnTrackTool::m_lorentzAngleTool
ToolHandle< ISiLorentzAngleTool > m_lorentzAngleTool
Definition: SCT_ClusterOnTrackTool.h:100
InDet::SCT_ClusterOnTrackTool::getError
static double getError(double phi, int nstrip)
Returns the resolution on the reconstructed position (local x) of SCT clusters in simulated events.
Definition: SCT_ClusterOnTrackTool.cxx:295
InDet::SCT_ClusterOnTrackTool::m_option_make2dimBarrelClusters
bool m_option_make2dimBarrelClusters
flag storing if errors need scaling or should be kept nominal
Definition: SCT_ClusterOnTrackTool.h:104
AthAlgTool
Definition: AthAlgTool.h:26
Trk::IRIO_OnTrackCreator
Interface class for transforming Trk::PrepRawData to Trk::RIO_OnTrack using a local track hypothesis.
Definition: IRIO_OnTrackCreator.h:32
InDet::SCT_ClusterOnTrackTool::correct
virtual InDet::SCT_ClusterOnTrack * correct(const Trk::PrepRawData &, const Trk::TrackParameters &) const override
produces an SCT_ClusterOnTrack using the measured SCT_Cluster and the track prediction.
Definition: SCT_ClusterOnTrackTool.cxx:105
InDet::SCT_ClusterOnTrackTool::SCT_ClusterOnTrackTool
SCT_ClusterOnTrackTool(const std::string &, const std::string &, const IInterface *)
AlgTool constructor.
Definition: SCT_ClusterOnTrackTool.cxx:31
InDet::SCT_ClusterOnTrack
Definition: SCT_ClusterOnTrack.h:44