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"
24// MagField cache
27#include <vector>
28#include <string>
30
31namespace Trk {
32 class Track;
33 class TrackSummary;
34
35}
36class EventContext;
37
38namespace InDet {
39
42 public AthAlgTool
43{
44
45 public:
46 InDetAmbiScoringTool(const std::string&,const std::string&,const IInterface*);
47 virtual ~InDetAmbiScoringTool () = default;
48 virtual StatusCode initialize() override;
50 virtual bool passBasicSelections( const Trk::Track& track ) const override;
51
53 virtual Trk::TrackScore score( const Trk::Track& track, bool checkBasicSel ) const override;
54
56 virtual Trk::TrackScore simpleScore( const Trk::Track& track, const Trk::TrackSummary& trackSum ) const override;
57 Trk::TrackScore ambigScore( const Trk::Track& track, const Trk::TrackSummary& trackSum ) const;
58
59
60 private:
62
63
65 bool isEmCaloCompatible(const Trk::Track& track, const EventContext& ctx) const;
66
67
68 //these are used for ScoreModifiers
75 std::vector<double> m_boundsSigmaChi2,
77
79 ToolHandle<ITrtDriftCircleCutTool> m_selectortool
80 {this, "DriftCircleCutTool", "InDet::InDetTrtDriftCircleCutTool"};
81
83 std::vector<Trk::TrackScore> m_summaryTypeScore;
84
85 SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
86
87 ToolHandle<Trk::IExtrapolator> m_extrapolator
88 {this, "Extrapolator", "Trk::Extrapolator"};
89
90 // Read handle for conditions object to get the field cache
91 SG::ReadCondHandleKey<AtlasFieldCacheCondObj> m_fieldCacheCondObjInputKey {this, "AtlasFieldCacheCondObj", "fieldCondObj", "Name of the Magnetic Field conditions object key"};
92
93
95 BooleanProperty m_useAmbigFcn{this, "useAmbigFcn", true};
96 BooleanProperty m_useTRT_AmbigFcn{this, "useTRT_AmbigFcn", false};
97 BooleanProperty m_useSigmaChi2{this, "useSigmaChi2", false};
98
99 BooleanProperty m_usePixel{this, "usePixel", true};
100 BooleanProperty m_useSCT{this, "useSCT", true};
101
103 DoubleProperty m_minPt{this, "minPt", 500., "minimal Pt cut"};
104 DoubleProperty m_maxEta{this, "maxEta", 2.7, "maximal Eta cut"};
105 DoubleProperty m_maxRPhiImp
106 {this, "maxRPhiImp", 10., "maximal RPhi impact parameter cut"};
107 DoubleProperty m_maxZImp
108 {this, "maxZImp", 250., "maximal z impact parameter cut"};
109
110 IntegerProperty m_minSiClusters
111 {this, "minSiClusters", 7, "minimal number of Si clusters"};
112 IntegerProperty m_maxDoubleHoles
113 {this, "maxDoubleHoles", 2, "maximum number of SCT double holes"};
114 IntegerProperty m_maxSiHoles
115 {this, "maxSiHoles", 5, "max number of Silicon (Pixel+SCT) holes"};
116 IntegerProperty m_maxPixelHoles
117 {this, "maxPixelHoles", 5, "max number of Pixel holes"};
118 IntegerProperty m_maxSctHoles
119 {this, "maxSCTHoles", 5, "max number of SCT holes"};
120 IntegerProperty m_minTRTonTrk
121 {this, "minTRTonTrk", 9, "minimum number of TRT hits"};
122 DoubleProperty m_minTRTprecision
123 {this, "minTRTPrecisionFraction", 0.5, "minimum fraction of TRT precision hits"};
124 IntegerProperty m_minPixel
125 {this, "minPixel", 0, "minimum number of pixel clusters"};
126
127 DoubleProperty m_maxRPhiImpEM
128 {this, "maxRPhiImpEM", 50., "maximal RPhi impact parameter cut track that match EM clusters"};
129 BooleanProperty m_useEmClusSeed{this, "doEmCaloSeed", true};
130 FloatProperty m_phiWidthEm{this, "phiWidthEM", 0.075};
131 FloatProperty m_etaWidthEm{this, "etaWidthEM", 0.05};
132
134 {this, "EMROIPhiRZContainer", "", "Name of the calo cluster ROIs in Phi,R,Z parameterization"};
135
137 BooleanProperty m_useITkAmbigFcn{this, "useITkAmbigFcn", false};
138
141
142};
143
144
145} // namespace InDet
146
147
148#endif
macros to associate a CLID to a type
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