ATLAS Offline Software
egammaSelectedTrackCopy.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 /*
6 NAME: egammaSelectedTrackCopy
7 PACKAGE: offline/Reconstruction/egamma/egammaAlgs/egammaSelectedTrackCopy
8 AUTHORS: Anastopoulos
9 CREATED: 25/06/2018
10 
11 PURPOSE: Select track to be refitted later on with GSF
12 UPDATE : 25/06/2018
13 */
14 
16 //
19 #include "FourMomUtils/P4Helpers.h"
20 #include "GaudiKernel/EventContext.h"
21 #include "StoreGate/ReadHandle.h"
22 #include "StoreGate/WriteHandle.h"
29 // std includes
30 #include <algorithm>
31 #include <cmath>
32 #include <memory>
33 #include <vector>
34 
36 
37 namespace {
38  // Wrap a check to see if a track is valid for reffiting.
39  bool checkIfValidForRefit(const xAOD::TrackParticle *track) {
42  return nhits >= 4;
43  }
44 }
45 
47  ISvcLocator* pSvcLocator)
48  : AthReentrantAlgorithm(name, pSvcLocator)
49 {}
50 
53 {
57  // Needed to declare proper input dependency with scheduler
59  (!m_trackParticleTimeDecorKey.empty()));
60 
62  ATH_CHECK(m_extrapolationTool.retrieve());
65 
66  return StatusCode::SUCCESS;
67 }
68 
71 {
72  ATH_MSG_INFO("===> egamma Selected Tracks Statistics ===========");
73  ATH_MSG_INFO("--- All Central Clusters: " << m_AllClusters);
74  ATH_MSG_INFO("--- Selected Central Clusters: " << m_SelectedClusters);
75  ATH_MSG_INFO("--- All Tracks: " << m_AllTracks);
76  ATH_MSG_INFO("--- Selected Central Tracks: " << m_SelectedTracks);
77  ATH_MSG_INFO("--- All Si Tracks: " << m_AllSiTracks);
78  ATH_MSG_INFO("--- Selected Central Si Tracks: " << m_SelectedSiTracks);
79  ATH_MSG_INFO("--- All TRT Tracks: " << m_AllTRTTracks);
80  ATH_MSG_INFO("--- Selected TRT Tracks: " << m_SelectedTRTTracks);
81  if (m_doForwardTracks) {
82  ATH_MSG_INFO("--- All Forward Clusters: " << m_AllFwdClusters);
83  ATH_MSG_INFO("--- Selected Forward Tracks: " << m_SelectedFwdTracks);
84  }
85  ATH_MSG_INFO("<=================================================");
86 
87  return StatusCode::SUCCESS;
88 }
89 
91 egammaSelectedTrackCopy::execute(const EventContext& ctx) const
92 {
94  ATH_CHECK(clusterTES.isValid());
95 
97  ATH_CHECK(trackTES.isValid());
98 
101  ctx
102  );
103 
106  if (m_doForwardTracks) {
109  ctx
110  );
111 
112  ATH_CHECK(fwdClusterTES.isValid());
113  m_AllFwdClusters += fwdClusterTES->size();
114  }
115 
116  // Here it just needs to be a view copy , i.e the collection of selected
117  // trackParticles we create does not really own its elements.
118  auto viewCopy = std::make_unique<ConstDataVector<xAOD::TrackParticleContainer>>(SG::VIEW_ELEMENTS);
119  // Local counters.
120  auto selectedTracks = m_SelectedTracks.buffer();
121  auto selectedFwdTracks = m_SelectedFwdTracks.buffer();
122  auto allSiTracks = m_AllSiTracks.buffer();
123  auto selectedSiTracks = m_SelectedSiTracks.buffer();
124  auto allTRTTracks = m_AllTRTTracks.buffer();
125  auto selectedTRTTracks = m_SelectedTRTTracks.buffer();
126 
128  ATH_CHECK(caloDetDescrMgrHandle.isValid());
129 
130  const CaloDetDescrManager* calodetdescrmgr = *caloDetDescrMgrHandle;
131 
132  // Check which clusters to seed on.
133  std::vector<const xAOD::CaloCluster*> passingClusters;
134  for (const xAOD::CaloCluster* cluster : *clusterTES) {
135  if (m_egammaCaloClusterSelector->passSelection(cluster, *calodetdescrmgr)) {
136  passingClusters.push_back(cluster);
137  }
138  }
139 
140  m_AllTracks += trackTES->size();
141  m_AllClusters += clusterTES->size();
142  m_SelectedClusters += passingClusters.size();
143 
144  // Extrapolation cache.
145  for (const xAOD::TrackParticle* track : *trackTES) {
146  bool isNotValidForRefit = !checkIfValidForRefit(track);
147  if (isNotValidForRefit) {
148  ++allTRTTracks;
149  } else {
150  ++allSiTracks;
151  }
152 
153  // Check if the track is selected for a central electron
154  // due to a central cluster
155  for (const xAOD::CaloCluster* cluster : passingClusters) {
156  if (selectTrack(ctx, cluster, track, isNotValidForRefit, *calodetdescrmgr)) {
157  viewCopy->push_back(track);
158  ++selectedTracks;
159  if (isNotValidForRefit) {
160  ++selectedTRTTracks;
161  } else {
162  ++selectedSiTracks;
163  }
164  break;
165  }
166  } // Loop on clusters.
167 
168  // Check if the track is selected for a forwand electron
169  // due to a forwand cluster
170  if (m_doForwardTracks) {
171  for (const xAOD::CaloCluster* cluster : *fwdClusterTES) {
172  if (selectTrack(ctx, cluster, track, isNotValidForRefit, *calodetdescrmgr)) {
173  viewCopy->push_back(track);
174  ++selectedFwdTracks;
175  break;
176  }
177  } // Loop on fwd cluster
178  }
179  }// Loop on tracks.
180 
181  ATH_CHECK(outputTrkPartContainer.record(std::move(viewCopy)));
182 
183  return StatusCode::SUCCESS;
184 }
185 
186 bool
187 egammaSelectedTrackCopy::selectTrack(const EventContext& ctx,
188  const xAOD::CaloCluster* cluster,
189  const xAOD::TrackParticle* track,
190  bool trkTRT,
191  const CaloDetDescrManager& caloDD) const
192 {
193 
194  if (cluster == nullptr || track == nullptr) {
195  return false;
196  }
197 
198  const Trk::Perigee& candidatePerigee = track->perigeeParameters();
199 
200  // Get Perigee Parameters.
201  const double trkPhi = candidatePerigee.parameters()[Trk::phi];
202  const double trkEta = candidatePerigee.eta();
203  const double z_perigee = candidatePerigee.position().z();
204  const double r_perigee = candidatePerigee.position().perp();
205  const Amg::Vector3D PerigeeXYZPosition(candidatePerigee.position().x(),
206  candidatePerigee.position().y(),
207  z_perigee);
208 
209  // Get Cluster parameters.
210  const double clusterEta = xAOD::EgammaHelpers::isFCAL(cluster) ? cluster->eta() : cluster->etaBE(2);
211  const bool isEndCap = !xAOD::EgammaHelpers::isBarrel(cluster);
212 
213  // Use trkEta only if sufficient hits in the Si.
214  const double Et = trkTRT ? cluster->et() : cluster->e() / cosh(trkEta);
215 
216  // A few sanity checks.
217  if (std::abs(clusterEta) > 10.0 || std::abs(trkEta) > 10.0 || Et < 10.0) {
219  "FAILS sanity checks : Track Eta : " << trkEta <<
220  ", Cluster Eta " << clusterEta
221  );
222 
223  return false;
224  }
225 
226  // Calculate the eta/phi of the cluster as would be seen from the perigee
227  // position of the Track.
228  const Amg::Vector3D XYZClusterWrtTrackPerigee = CandidateMatchHelpers::approxXYZwrtPoint(
229  *cluster,
230  PerigeeXYZPosition,
231  isEndCap
232  );
233 
234  // Calculate the possible rotation of the track.
235  // Once assuming the cluster Et being the better estimate (e.g big brem).
236  const double phiRotRescaled = CandidateMatchHelpers::PhiROT(
237  Et,
238  trkEta,
239  track->charge(),
240  r_perigee,
241  isEndCap
242  );
243 
244  // And also assuming the track Pt being correct.
245  const double phiRotTrack = CandidateMatchHelpers::PhiROT(
246  track->pt(),
247  trkEta,
248  track->charge(),
249  r_perigee,
250  isEndCap
251  );
252 
253  const double clusterPhiCorrected = XYZClusterWrtTrackPerigee.phi();
254 
255  // DeltaPhi between the track and the cluster.
256  const double deltaPhiStd = P4Helpers::deltaPhi(clusterPhiCorrected, trkPhi);
257 
258  // DeltaPhi between the track and the cluster accounting for rotation assuming
259  // cluster Et is a better estimator.
260  const double trkPhiRescaled = P4Helpers::deltaPhi(trkPhi, phiRotRescaled);
261  const double deltaPhiRescaled = P4Helpers::deltaPhi(clusterPhiCorrected, trkPhiRescaled);
262 
263  // DeltaPhi between the track and the cluster accounting for rotation.
264  const double trkPhiCorrTrack = P4Helpers::deltaPhi(trkPhi, phiRotTrack);
265  const double deltaPhiTrack = P4Helpers::deltaPhi(clusterPhiCorrected, trkPhiCorrTrack);
266 
267  // First we will see if it fails the quick match.
268  // Then if it passed it will get 2 chances to be selected.
269  // One if it matches from last measurement.
270  // The second if it matched from Perigee rescales.
271  // Broad phi check.
272  if (
273  (std::abs(deltaPhiRescaled) > m_broadDeltaPhi) &&
274  (std::abs(deltaPhiTrack) > m_broadDeltaPhi) &&
275  (std::abs(deltaPhiStd) > m_broadDeltaPhi)
276  ) {
278  "FAILS broad window phi match (track phi, phirotCluster , phiRotTrack , " <<
279  "cluster phi corrected, cluster phi): ( " <<
280  trkPhi << ", " <<
281  phiRotRescaled << ", " <<
282  phiRotTrack << ", " <<
283  clusterPhiCorrected << ", " <<
284  cluster->phi() << ")"
285  );
286 
287  return false;
288  }
289 
290  // if TRT we can stop here , we can not check much in eta really.
291  if (trkTRT) { return true; }
292 
293  const double clusterEtaCorrected = XYZClusterWrtTrackPerigee.eta();
294 
295  // Broad eta check.
296  if (
297  std::abs(cluster->eta() - trkEta) > m_broadDeltaEta &&
298  std::abs(clusterEtaCorrected - trkEta) > m_broadDeltaEta
299  ) {
301  "FAILS broad window eta match (track eta, cluster eta, cluster eta corrected): ( " <<
302  trkEta << ", " <<
303  cluster->etaBE(2) << ", " <<
304  clusterEtaCorrected << " )"
305  );
306 
307  return false;
308  }
309 
310  std::pair<
311  std::vector<CaloSampling::CaloSample>,
312  std::vector<std::unique_ptr<Trk::Surface>>
313  > layersAndSurfaces = m_extrapolationTool->getClusterLayerSurfaces(*cluster, caloDD);
314 
315  // Extrapolate from last measurement to the four EM layers.
316  // Since this is before brem fit last measurement is OK.
317  std::array<double, 4> eta = { -999.0, -999.0, -999.0, -999.0 };
318  std::array<double, 4> phi = { -999.0, -999.0, -999.0, -999.0 };
319  std::array<double, 4> deltaEta = { -999.0, -999.0, -999.0, -999.0 };
320  std::array<double, 4> deltaPhi = { -999.0, -999.0, -999.0, -999.0 };
321  if (m_extrapolationTool ->getMatchAtCalo(
322  ctx,
323  *cluster,
324  *track,
325  layersAndSurfaces.first,
326  layersAndSurfaces.second,
327  eta,
328  phi,
329  deltaEta,
330  deltaPhi,
332  ).isFailure()) {
333  return false;
334  }
335 
336  // Selection in narrow eta/phi window from last measurement.
337  if (
338  std::abs(deltaEta[2]) < m_narrowDeltaEta &&
339  deltaPhi[2] < m_narrowDeltaPhi &&
341  ) {
342  ATH_MSG_DEBUG("Match from Last measurement is successful : " << deltaPhi[2]);
343  return true;
344  }
345 
346  // Cases where:
347  // - It passes deltaEta[2] from last measurement (rescaling should not affect the eta side).
348  // - and we have a cluster with higher Et.
349  // Rescale up the track to account for radiative loses and retry.
350  if (
351  std::abs(deltaEta[2]) < m_narrowDeltaEta &&
352  cluster->et() > track->pt()
353  ) {
354  // Extrapolate from Perigee Rescaled.
355  std::array<double, 4> etaRes = { -999.0, -999.0, -999.0, -999.0 };
356  std::array<double, 4> phiRes = { -999.0, -999.0, -999.0, -999.0 };
357  std::array<double, 4> deltaEtaRes = { -999.0, -999.0, -999.0, -999.0 };
358  std::array<double, 4> deltaPhiRes = { -999.0, -999.0, -999.0, -999.0 };
359 
360  if (m_extrapolationTool->getMatchAtCalo(
361  ctx,
362  *cluster,
363  *track,
364  layersAndSurfaces.first,
365  layersAndSurfaces.second,
366  etaRes,
367  phiRes,
368  deltaEtaRes,
369  deltaPhiRes,
371  ).isFailure()) {
372  return false;
373  }
374 
375  // Redo the check with rescale.
376  if (
377  std::abs(deltaEtaRes[2]) < m_narrowDeltaEta &&
378  deltaPhiRes[2] < m_narrowRescale &&
379  deltaPhiRes[2] > -m_narrowRescaleBrem
380  ) {
381  ATH_MSG_DEBUG("Rescale Match success " << deltaPhiRes[2]);
382  return true;
383  }
384  }
385 
386  // Default is fail.
387  return false;
388 }
389 
CandidateMatchHelpers::approxXYZwrtPoint
Amg::Vector3D approxXYZwrtPoint(const xAOD::CaloCluster &cluster, const Amg::Vector3D &point, const bool isEndCap)
Function to get the (x,y,z) of the cluster wrt to a point (x0,y0,z0)
Definition: CandidateMatchHelpers.cxx:10
xAOD::CaloCluster_v1::phi
virtual double phi() const
The azimuthal angle ( ) of the particle.
Definition: CaloCluster_v1.cxx:256
egammaSelectedTrackCopy::m_OutputTrkPartContainerKey
SG::WriteHandleKey< ConstDataVector< xAOD::TrackParticleContainer > > m_OutputTrkPartContainerKey
Definition: egammaSelectedTrackCopy.h:123
egammaSelectedTrackCopy::m_AllFwdClusters
Gaudi::Accumulators::Counter m_AllFwdClusters
Definition: egammaSelectedTrackCopy.h:190
egammaParameters::deltaPhiRescaled
@ deltaPhiRescaled
difference between the cluster phi (sampling 2) and the phi of the track extrapolated from the perige...
Definition: egammaParamDefs.h:595
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition: PyTestsLib.py:53
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
egammaSelectedTrackCopy::m_narrowDeltaPhiBrem
Gaudi::Property< double > m_narrowDeltaPhiBrem
Definition: egammaSelectedTrackCopy.h:160
SG::VIEW_ELEMENTS
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Definition: OwnershipPolicy.h:18
egammaSelectedTrackCopy::m_AllTRTTracks
Gaudi::Accumulators::Counter m_AllTRTTracks
Definition: egammaSelectedTrackCopy.h:197
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
egammaSelectedTrackCopy::initialize
virtual StatusCode initialize() override final
Definition: egammaSelectedTrackCopy.cxx:52
Trk::ParametersT
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
Definition: EMErrorDetail.h:25
xAOD::deltaPhi
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
Definition: L2StandAloneMuon_v1.cxx:160
egammaSelectedTrackCopy::m_AllTracks
Gaudi::Accumulators::Counter m_AllTracks
Definition: egammaSelectedTrackCopy.h:192
CandidateMatchHelpers::PhiROT
double PhiROT(const double pt, const double eta, const int charge, const double r_start, const bool isEndCap)
Function to calculate the approximate rotation in phi/bending of a track until it reaches the calo.
Definition: CandidateMatchHelpers.cxx:56
xAOD::CaloCluster_v1::et
double et() const
Definition: CaloCluster_v1.h:856
xAOD::numberOfPixelHits
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
Definition: TrackingPrimitives.h:259
CandidateMatchHelpers.h
egammaSelectedTrackCopy::m_SelectedSiTracks
Gaudi::Accumulators::Counter m_SelectedSiTracks
Definition: egammaSelectedTrackCopy.h:196
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
xAOD::EgammaHelpers::isBarrel
bool isBarrel(const xAOD::Egamma *eg)
return true if the cluster is in the barrel
Definition: EgammaxAODHelpers.cxx:33
xAOD::CaloCluster_v1::etaBE
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
Definition: CaloCluster_v1.cxx:644
egammaSelectedTrackCopy::m_narrowDeltaEta
Gaudi::Property< double > m_narrowDeltaEta
Narrow windows.
Definition: egammaSelectedTrackCopy.h:146
WriteHandle.h
Handle class for recording to StoreGate.
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
P4Helpers::deltaPhi
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
Definition: P4Helpers.h:29
EgammaxAODHelpers.h
egammaSelectedTrackCopy::m_SelectedTracks
Gaudi::Accumulators::Counter m_SelectedTracks
Definition: egammaSelectedTrackCopy.h:193
P4Helpers::deltaEta
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
Definition: P4Helpers.h:53
xAOD::CaloCluster_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition: CaloCluster_v1.cxx:251
CaloCluster.h
egammaSelectedTrackCopy::m_trackParticleContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackParticleContainerKey
Definition: egammaSelectedTrackCopy.h:103
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
egammaSelectedTrackCopy::m_SelectedTRTTracks
Gaudi::Accumulators::Counter m_SelectedTRTTracks
Definition: egammaSelectedTrackCopy.h:198
egammaSelectedTrackCopy::m_AllSiTracks
Gaudi::Accumulators::Counter m_AllSiTracks
Definition: egammaSelectedTrackCopy.h:195
egammaSelectedTrackCopy::m_clusterContainerKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterContainerKey
Names of input output collections.
Definition: egammaSelectedTrackCopy.h:88
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
IEMExtrapolationTools::fromPerigeeRescaled
@ fromPerigeeRescaled
from the perigee of TrackParticle recaled by Ecluster
Definition: IEMExtrapolationTools.h:39
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
egammaSelectedTrackCopy::m_extrapolationTool
ToolHandle< IEMExtrapolationTools > m_extrapolationTool
Tool for extrapolation.
Definition: egammaSelectedTrackCopy.h:72
SG::ReadHandle::isValid
virtual bool isValid() override final
Can the handle be successfully dereferenced?
xAOD::EgammaHelpers::summaryValueInt
int summaryValueInt(const xAOD::TrackParticle &tp, const xAOD::SummaryType &info, int deflt=-999)
return the summary value for a TrackParticle or default value (-999) (to be used mostly in python whe...
Definition: EgammaxAODHelpers.cxx:161
P4Helpers.h
egammaSelectedTrackCopy::m_SelectedClusters
Gaudi::Accumulators::Counter m_SelectedClusters
Definition: egammaSelectedTrackCopy.h:191
egammaSelectedTrackCopy::m_broadDeltaEta
Gaudi::Property< double > m_broadDeltaEta
Broad windows.
Definition: egammaSelectedTrackCopy.h:131
egammaSelectedTrackCopy::m_doForwardTracks
Gaudi::Property< bool > m_doForwardTracks
Private member flag to select forward tracks.
Definition: egammaSelectedTrackCopy.h:182
egammaSelectedTrackCopy::m_narrowDeltaPhi
Gaudi::Property< double > m_narrowDeltaPhi
Definition: egammaSelectedTrackCopy.h:153
egammaSelectedTrackCopy::m_egammaCaloClusterSelector
ToolHandle< IegammaCaloClusterSelector > m_egammaCaloClusterSelector
Tool to filter the calo clusters.
Definition: egammaSelectedTrackCopy.h:80
egammaSelectedTrackCopy::m_SelectedFwdTracks
Gaudi::Accumulators::Counter m_SelectedFwdTracks
Definition: egammaSelectedTrackCopy.h:194
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
errorcheck.h
Helpers for checking error return status codes and reporting errors.
xAOD::EgammaHelpers::isFCAL
bool isFCAL(const xAOD::CaloCluster *cluster)
return true if the cluster (or the majority of its energy) is in the FCAL0
Definition: EgammaxAODHelpers.cxx:46
egammaSelectedTrackCopy::m_AllClusters
Gaudi::Accumulators::Counter m_AllClusters
Definition: egammaSelectedTrackCopy.h:189
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
egammaSelectedTrackCopy.h
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
TrackParticle.h
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
egammaSelectedTrackCopy::m_caloDetDescrMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
Definition: egammaSelectedTrackCopy.h:116
egammaSelectedTrackCopy::m_fwdClusterContainerKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_fwdClusterContainerKey
Names of forward input output collections.
Definition: egammaSelectedTrackCopy.h:96
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:473
SG::WriteHandle::record
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
egammaSelectedTrackCopy::egammaSelectedTrackCopy
egammaSelectedTrackCopy(const std::string &name, ISvcLocator *pSvcLocator)
Default constructor.
Definition: egammaSelectedTrackCopy.cxx:46
egammaSelectedTrackCopy::m_trackParticleTimeDecorKey
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_trackParticleTimeDecorKey
Definition: egammaSelectedTrackCopy.h:110
egammaSelectedTrackCopy::m_narrowRescale
Gaudi::Property< double > m_narrowRescale
Definition: egammaSelectedTrackCopy.h:167
egammaSelectedTrackCopy::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: egammaSelectedTrackCopy.cxx:91
CaloClusterContainer.h
xAOD::numberOfSCTHits
@ numberOfSCTHits
number of hits in SCT [unit8_t].
Definition: TrackingPrimitives.h:268
Trk::phi
@ phi
Definition: ParamDefs.h:81
egammaSelectedTrackCopy::m_broadDeltaPhi
Gaudi::Property< double > m_broadDeltaPhi
Definition: egammaSelectedTrackCopy.h:138
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
egammaSelectedTrackCopy::m_narrowRescaleBrem
Gaudi::Property< double > m_narrowRescaleBrem
Definition: egammaSelectedTrackCopy.h:174
ReadHandle.h
Handle class for reading from StoreGate.
egammaSelectedTrackCopy::selectTrack
bool selectTrack(const EventContext &ctx, const xAOD::CaloCluster *cluster, const xAOD::TrackParticle *track, bool trkTRT, const CaloDetDescrManager &caloDD) const
Broad track selection.
Definition: egammaSelectedTrackCopy.cxx:187
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
xAOD::CaloCluster_v1::e
virtual double e() const
The total energy of the particle.
Definition: CaloCluster_v1.cxx:265
TrackParticleContainer.h
IEMExtrapolationTools::fromLastMeasurement
@ fromLastMeasurement
from the last measurement of TrackParticle
Definition: IEMExtrapolationTools.h:35