ATLAS Offline Software
InDetPRDtoTrackMapToolGangedPixels.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 #ifndef _InDet_InDetPRDtoTrackMapToolGangedPixels_h_
6 #define _InDet_InDetPRDtoTrackMapToolGangedPixels_h_
7 
13 
14 class AtlasDetectorID;
15 class Identifier;
16 
17 namespace InDet {
18 
20  class InDetPRDtoTrackMapToolGangedPixels : public extends<AthAlgTool, Trk::IPRDtoTrackMapTool>
21 {
22 
23  public:
24  InDetPRDtoTrackMapToolGangedPixels(const std::string&,const std::string&,const IInterface*);
25 
27  virtual StatusCode initialize() override;
28  virtual StatusCode finalize () override;
29 
30  virtual
31  std::unique_ptr<Trk::PRDtoTrackMap> createPRDtoTrackMap() const override;
32  virtual
33  std::unique_ptr<Trk::PRDtoTrackMap> reduceToStorableMap(std::unique_ptr<Trk::PRDtoTrackMap> &&obj_in) const override;
34 
37  virtual StatusCode addPRDs(Trk::PRDtoTrackMap &virt_prd_to_track_map, const Trk::Track& track) const override;
38 
46  virtual std::vector< const Trk::PrepRawData* > getPrdsOnTrack(Trk::PRDtoTrackMap &virt_prd_to_track_map,
47  const Trk::Track& track) const override;
48 
53  const Trk::Track& track) const override;
54 
55  private:
56 
57  void ensureType(Trk::PRDtoTrackMap &virt_prd_to_track_map) const;
58 
59  SG::ReadHandleKey<PixelGangedClusterAmbiguities> m_pixelClusterAmbiguitiesMapName{this, "PixelClusterAmbiguitiesMapName", "PixelClusterAmbiguitiesMap"};
60 
62  BooleanProperty m_addTRToutliers{this, "addTRToutliers", false};
63 
65  {
67  public:
68  const std::type_info& getType() const override {return typeid(PRDtoTrackMap); }
69 
71 
72  protected:
74  };
75  };
76 
77 
78 
79 }
80 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
PRDtoTrackMap.h
InDet::InDetPRDtoTrackMapToolGangedPixels::getPrdsOnTrack
virtual std::vector< const Trk::PrepRawData * > getPrdsOnTrack(Trk::PRDtoTrackMap &virt_prd_to_track_map, const Trk::Track &track) const override
returns a vector of PRDs belonging to the passed track.
Definition: InDetPRDtoTrackMapToolGangedPixels.cxx:164
InDet::InDetPRDtoTrackMapToolGangedPixels::createPRDtoTrackMap
virtual std::unique_ptr< Trk::PRDtoTrackMap > createPRDtoTrackMap() const override
Definition: InDetPRDtoTrackMapToolGangedPixels.cxx:44
InDet::InDetPRDtoTrackMapToolGangedPixels::reduceToStorableMap
virtual std::unique_ptr< Trk::PRDtoTrackMap > reduceToStorableMap(std::unique_ptr< Trk::PRDtoTrackMap > &&obj_in) const override
Definition: InDetPRDtoTrackMapToolGangedPixels.cxx:53
InDet::InDetPRDtoTrackMapToolGangedPixels::PRDtoTrackMap::getType
const std::type_info & getType() const override
Definition: InDetPRDtoTrackMapToolGangedPixels.h:68
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Trk::PRDtoTrackMap
Definition: PRDtoTrackMap.h:17
SG::ReadHandle< PixelGangedClusterAmbiguities >
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::InDetPRDtoTrackMapToolGangedPixels::InDetPRDtoTrackMapToolGangedPixels
InDetPRDtoTrackMapToolGangedPixels(const std::string &, const std::string &, const IInterface *)
Definition: InDetPRDtoTrackMapToolGangedPixels.cxx:19
Trk::PRDtoTrackMap::PRDtoTrackMap
PRDtoTrackMap()=default
InDet::InDetPRDtoTrackMapToolGangedPixels::PRDtoTrackMap
Definition: InDetPRDtoTrackMapToolGangedPixels.h:65
SG::ReadHandleKey< PixelGangedClusterAmbiguities >
InDet::InDetPRDtoTrackMapToolGangedPixels::findConnectedTracks
virtual Trk::IPRDtoTrackMapTool::TrackSet findConnectedTracks(Trk::PRDtoTrackMap &virt_prd_to_track_map, const Trk::Track &track) const override
returns set of tracks which share PRD with this one
Definition: InDetPRDtoTrackMapToolGangedPixels.cxx:121
Trk::IPRDtoTrackMapTool::TrackSet
std::set< const Track * > TrackSet
Definition: IPRDtoTrackMapTool.h:42
InDet::InDetPRDtoTrackMapToolGangedPixels::PRDtoTrackMap::m_gangedAmbis
SG::ReadHandle< PixelGangedClusterAmbiguities > m_gangedAmbis
Definition: InDetPRDtoTrackMapToolGangedPixels.h:73
InDet::InDetPRDtoTrackMapToolGangedPixels::m_addTRToutliers
BooleanProperty m_addTRToutliers
add TRT outliers in the addTrack method to avoid splits due to rejected extensions
Definition: InDetPRDtoTrackMapToolGangedPixels.h:62
PixelGangedClusterAmbiguities.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
InDet::InDetPRDtoTrackMapToolGangedPixels::initialize
virtual StatusCode initialize() override
Definition: InDetPRDtoTrackMapToolGangedPixels.cxx:28
AthAlgTool.h
InDet::InDetPRDtoTrackMapToolGangedPixels
Concrete Implementation of the IPRD_AssociationTool interface.
Definition: InDetPRDtoTrackMapToolGangedPixels.h:21
InDet::InDetPRDtoTrackMapToolGangedPixels::addPRDs
virtual StatusCode addPRDs(Trk::PRDtoTrackMap &virt_prd_to_track_map, const Trk::Track &track) const override
add the PRDs from this track to the store
Definition: InDetPRDtoTrackMapToolGangedPixels.cxx:79
InDet::InDetPRDtoTrackMapToolGangedPixels::ensureType
void ensureType(Trk::PRDtoTrackMap &virt_prd_to_track_map) const
Definition: InDetPRDtoTrackMapToolGangedPixels.cxx:67
InDet::InDetPRDtoTrackMapToolGangedPixels::finalize
virtual StatusCode finalize() override
Definition: InDetPRDtoTrackMapToolGangedPixels.cxx:39
IPRDtoTrackMapTool.h
InDet::InDetPRDtoTrackMapToolGangedPixels::~InDetPRDtoTrackMapToolGangedPixels
virtual ~InDetPRDtoTrackMapToolGangedPixels()
InDet::InDetPRDtoTrackMapToolGangedPixels::m_pixelClusterAmbiguitiesMapName
SG::ReadHandleKey< PixelGangedClusterAmbiguities > m_pixelClusterAmbiguitiesMapName
Definition: InDetPRDtoTrackMapToolGangedPixels.h:59
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
AtlasDetectorID
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Definition: AtlasDetectorID.h:57
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
Identifier
Definition: IdentifierFieldParser.cxx:14