ATLAS Offline Software
Loading...
Searching...
No Matches
InDetAmbiScoringTool.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// Markus Elsing
8
9#ifndef INDETAMBISCORINGTOOL_H
10#define INDETAMBISCORINGTOOL_H
11
13#include "GaudiKernel/ToolHandle.h"
14#include "GaudiKernel/ServiceHandle.h"
25// MagField cache
28#include <vector>
29#include <string>
31
32namespace Trk {
33 class Track;
34 class TrackSummary;
35
36}
37class EventContext;
38
39namespace InDet {
40
43 public AthAlgTool
44{
45
46 public:
47 InDetAmbiScoringTool(const std::string&,const std::string&,const IInterface*);
48 virtual ~InDetAmbiScoringTool () = default;
49 virtual StatusCode initialize() override;
51 virtual bool passBasicSelections( const Trk::Track& track ) const override;
52
54 virtual Trk::TrackScore score( const Trk::Track& track, bool checkBasicSel ) const override;
55
57 virtual Trk::TrackScore simpleScore( const Trk::Track& track, const Trk::TrackSummary& trackSum ) const override;
58 Trk::TrackScore ambigScore( const Trk::Track& track, const Trk::TrackSummary& trackSum ) const;
59
60
61 private:
63
64
66 bool isEmCaloCompatible(const Trk::Track& track, const EventContext& ctx) const;
67
68
69 //these are used for ScoreModifiers
76 std::vector<double> m_boundsSigmaChi2,
78
80 ToolHandle<ITrtDriftCircleCutTool> m_selectortool
81 {this, "DriftCircleCutTool", "InDet::InDetTrtDriftCircleCutTool"};
82
84 std::vector<Trk::TrackScore> m_summaryTypeScore;
85
86 SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
87
88 ToolHandle<Trk::IExtrapolator> m_extrapolator
89 {this, "Extrapolator", "Trk::Extrapolator"};
90
91 // Read handle for conditions object to get the field cache
92 SG::ReadCondHandleKey<AtlasFieldCacheCondObj> m_fieldCacheCondObjInputKey {this, "AtlasFieldCacheCondObj", "fieldCondObj", "Name of the Magnetic Field conditions object key"};
93
94
96 BooleanProperty m_useAmbigFcn{this, "useAmbigFcn", true};
97 BooleanProperty m_useTRT_AmbigFcn{this, "useTRT_AmbigFcn", false};
98 BooleanProperty m_useSigmaChi2{this, "useSigmaChi2", false};
99
100 BooleanProperty m_usePixel{this, "usePixel", true};
101 BooleanProperty m_useSCT{this, "useSCT", true};
102
104 DoubleProperty m_minPt{this, "minPt", 500., "minimal Pt cut"};
105 DoubleProperty m_maxEta{this, "maxEta", 2.7, "maximal Eta cut"};
106 DoubleProperty m_maxRPhiImp
107 {this, "maxRPhiImp", 10., "maximal RPhi impact parameter cut"};
108 DoubleProperty m_maxZImp
109 {this, "maxZImp", 250., "maximal z impact parameter cut"};
110
111 IntegerProperty m_minSiClusters
112 {this, "minSiClusters", 7, "minimal number of Si clusters"};
113 IntegerProperty m_maxDoubleHoles
114 {this, "maxDoubleHoles", 2, "maximum number of SCT double holes"};
115 IntegerProperty m_maxSiHoles
116 {this, "maxSiHoles", 5, "max number of Silicon (Pixel+SCT) holes"};
117 IntegerProperty m_maxPixelHoles
118 {this, "maxPixelHoles", 5, "max number of Pixel holes"};
119 IntegerProperty m_maxSctHoles
120 {this, "maxSCTHoles", 5, "max number of SCT holes"};
121 IntegerProperty m_minTRTonTrk
122 {this, "minTRTonTrk", 9, "minimum number of TRT hits"};
123 DoubleProperty m_minTRTprecision
124 {this, "minTRTPrecisionFraction", 0.5, "minimum fraction of TRT precision hits"};
125 IntegerProperty m_minPixel
126 {this, "minPixel", 0, "minimum number of pixel clusters"};
127
128 DoubleProperty m_maxRPhiImpEM
129 {this, "maxRPhiImpEM", 50., "maximal RPhi impact parameter cut track that match EM clusters"};
130 BooleanProperty m_useEmClusSeed{this, "doEmCaloSeed", true};
131 FloatProperty m_phiWidthEm{this, "phiWidthEM", 0.075};
132 FloatProperty m_etaWidthEm{this, "etaWidthEM", 0.05};
133
135 {this, "EMROIPhiRZContainer", "", "Name of the calo cluster ROIs in Phi,R,Z parameterization"};
136
138 BooleanProperty m_useITkAmbigFcn{this, "useITkAmbigFcn", false};
139
142
143};
144
145
146} // namespace InDet
147
148
149#endif
macros to associate a CLID to a type
defines and typedefs for IOVSvc
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
SG::ReadHandleKey< ROIPhiRZContainer > m_caloClusterROIKey
virtual StatusCode initialize() override
DoubleProperty m_minPt
cuts for selecting good tracks
Trk::TrackScore ambigScore(const Trk::Track &track, const Trk::TrackSummary &trackSum) const
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCacheCondObjInputKey
ToolHandle< Trk::IExtrapolator > m_extrapolator
std::vector< double > m_boundsSigmaChi2
InDetAmbiScoringTool(const std::string &, const std::string &, const IInterface *)
std::vector< double > m_boundsTrtRatio
BooleanProperty m_useAmbigFcn
use the scoring tuned to Ambiguity processing or not
virtual Trk::TrackScore score(const Trk::Track &track, bool checkBasicSel) const override
create a score based on how good the passed track is
virtual bool passBasicSelections(const Trk::Track &track) const override
check track selections independent from TrackSummary
BooleanProperty m_useITkAmbigFcn
use the ITk scoring tuned to Ambiguity processing or not
std::vector< double > m_factorHits
std::vector< double > m_factorPixHoles
ToolHandle< ITrtDriftCircleCutTool > m_selectortool
Returns minimum number of expected TRT drift circles depending on eta.
virtual ~InDetAmbiScoringTool()=default
std::vector< double > m_boundsTrtFittedRatio
ServiceHandle< IInDetEtaDependentCutsSvc > m_etaDependentCutsSvc
ITk eta-dependent cuts.
std::vector< double > m_factorSigmaChi2
std::vector< double > m_factorB_LayerHits
std::vector< Trk::TrackScore > m_summaryTypeScore
holds the scores assigned to each Trk::SummaryType from the track's Trk::TrackSummary
bool isEmCaloCompatible(const Trk::Track &track, const EventContext &ctx) const
Check if the cluster is compatible with a EM cluster.
std::vector< double > m_factorPixelHits
std::vector< double > m_factorTrtFittedRatio
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
virtual Trk::TrackScore simpleScore(const Trk::Track &track, const Trk::TrackSummary &trackSum) const override
create a score based on how good the passed TrackSummary is
std::vector< double > m_factorTrtRatio
std::vector< double > m_factorSCT_Holes
std::vector< double > m_factorDblHoles
std::vector< double > m_factorPixLay
std::vector< double > m_factorGangedFakes
Property holding a SG store/key/clid from which a ReadHandle is made.
Interface for tool to return a score from a given track.
A summary of the information contained by a track.
Primary Vertex Finder.
Ensure that the ATLAS eigen extensions are properly loaded.
float TrackScore
Definition TrackScore.h:10