ATLAS Offline Software
SpacepointFeatureTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #pragma once
6 
7 // System include(s).
8 #include <list>
9 #include <iostream>
10 #include <memory>
11 #include <vector>
12 #include <string>
13 #include <map>
14 
16 #include "ISpacepointFeatureTool.h"
18 #include "InDetIdentifier/SCT_ID.h"
20 
21 
22 namespace InDet{
29  class SpacepointFeatureTool: public extends<AthAlgTool, ISpacepointFeatureTool>
30  {
31  public:
32  SpacepointFeatureTool(const std::string& type, const std::string& name, const IInterface* parent);
33 
34  StatusCode initialize() override final;
35 
36  virtual std::map<std::string, float> getFeatures(const Trk::SpacePoint*) const override final;
37 
38  protected:
39 
43 
45  const SCT_ID *m_SCT_ID;
46 
47  private:
48  void cartesion_to_spherical(const Amg::Vector3D &xyzVec, float &eta_, float &phi_) const;
50  float &charge_count, int &pixel_count, float &loc_eta, float &loc_phi,
51  float &glob_eta, float &glob_phi,
52  float &localDir0, float &localDir1, float &localDir2,
53  float &lengthDir0, float &lengthDir1, float &lengthDir2,
54  float &eta_angle, float &phi_angle
55  ) const;
56  };
57 
58 }
PixelID.h
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
Trk::SpacePoint
Definition: Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/SpacePoint.h:35
SCT_ID.h
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
InDet::SpacepointFeatureTool::initialize
StatusCode initialize() override final
Definition: SpacepointFeatureTool.cxx:23
InDet::SpacepointFeatureTool::operator=
SpacepointFeatureTool & operator=(const SpacepointFeatureTool &)=delete
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::SpacepointFeatureTool::getFeatures
virtual std::map< std::string, float > getFeatures(const Trk::SpacePoint *) const override final
Definition: SpacepointFeatureTool.cxx:33
InDet::SpacepointFeatureTool::cartesion_to_spherical
void cartesion_to_spherical(const Amg::Vector3D &xyzVec, float &eta_, float &phi_) const
Definition: SpacepointFeatureTool.cxx:262
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SiCluster.h
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
InDet::SpacepointFeatureTool::SpacepointFeatureTool
SpacepointFeatureTool(const SpacepointFeatureTool &)=delete
ISpacepointFeatureTool.h
SCT_ID
Definition: SCT_ID.h:68
InDet::SpacepointFeatureTool
InDet::SpacepointFeatureTool is a tool that calculates spacepoint features for GNNTrackFinder.
Definition: SpacepointFeatureTool.h:30
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
InDet::SpacepointFeatureTool::m_pixelID
const PixelID * m_pixelID
Definition: SpacepointFeatureTool.h:44
PixelID
Definition: PixelID.h:67
InDet::SpacepointFeatureTool::m_SCT_ID
const SCT_ID * m_SCT_ID
Definition: SpacepointFeatureTool.h:45
InDet::SiCluster
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SiCluster.h:40
InDet::SpacepointFeatureTool::getSCTClusterShapeInfo_fn
StatusCode getSCTClusterShapeInfo_fn(const InDet::SiCluster *si_cluster, float &charge_count, int &pixel_count, float &loc_eta, float &loc_phi, float &glob_eta, float &glob_phi, float &localDir0, float &localDir1, float &localDir2, float &lengthDir0, float &lengthDir1, float &lengthDir2, float &eta_angle, float &phi_angle) const
Definition: SpacepointFeatureTool.cxx:273
InDet::SpacepointFeatureTool::SpacepointFeatureTool
SpacepointFeatureTool()=delete