ATLAS Offline Software
Loading...
Searching...
No Matches
InDetCandidate.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONCOMBINEDEVENT_INDETCANDIDATE_H
6#define MUONCOMBINEDEVENT_INDETCANDIDATE_H
7
8#include <vector>
9
10#include "AthLinks/ElementLink.h"
15
16namespace MuonCombined {
17
19 public:
24 InDetCandidate(const xAOD::TrackParticle& idTrack);
25
32 bool operator==(const InDetCandidate& other) const;
33
36
39
42
43 // access MuonSystemExtension
45 // access the CaloExtension
47
48 // set MuonSystemExtension, taking ownership
49 void setExtension(std::unique_ptr<Muon::MuonSystemExtension> extension);
51 void setExtension(std::unique_ptr<Trk::CaloExtension>& extension);
52 void setExtension(const Trk::CaloExtension* extension);
53
55 bool isSiliconAssociated() const;
56
58 void setSiliconAssociated(bool);
59
61 std::string toString() const;
62
63 private:
66
69
71 bool m_siAssociated{false};
72
73 std::unique_ptr<Muon::MuonSystemExtension> m_extension{nullptr};
74 std::unique_ptr<Trk::CaloExtension> m_calo_extension{nullptr};
76 };
77
78} // namespace MuonCombined
79
80#endif
void setExtension(std::unique_ptr< Muon::MuonSystemExtension > extension)
bool isSiliconAssociated() const
Returns true if this candidate was formed from a special far forward InDet track.
const Trk::CaloExtension * getCaloExtension() const
const xAOD::TrackParticle & indetTrackParticle() const
access TrackParticle
bool operator==(const InDetCandidate &other) const
Define two InDetCandidates to be equal if they are built from the same track.
bool m_siAssociated
Was this created using a special far forward indet track.
void setSiliconAssociated(bool)
Pass true if this candiate was created from a special far forward InDet track.
const xAOD::TrackParticle * m_idTrackParticle
cached pointer to the InDet TrackParticle
ElementLink< xAOD::TrackParticleContainer > m_idTrackParticleLink
ElementLink to the InDet TrackParticle.
InDetCandidate(const xAOD::TrackParticle &idTrack)
constructor taking a xAOD::TrackParicle& Users should ensure that the lifetime of the idTrack object ...
const Muon::MuonSystemExtension * getExtension() const
std::string toString() const
print candidate to string
std::unique_ptr< Trk::CaloExtension > m_calo_extension
const ElementLink< xAOD::TrackParticleContainer > & indetTrackParticleLink() const
access TrackParticleLink
const Trk::CaloExtension * m_calo_extension_ptr
std::unique_ptr< Muon::MuonSystemExtension > m_extension
Tracking class to hold the extrapolation from a particle from the calo entry to the end of muon syste...
Tracking class to hold the extrapolation through calorimeter Layers Both the caloEntryLayerIntersecti...
The MuonTagToSegMap is an auxillary construct that links the MuonSegments associated with a combined ...
TrackParticle_v1 TrackParticle
Reference the current persistent version: