ATLAS Offline Software
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 
16 namespace 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
46  const Trk::CaloExtension* getCaloExtension() const;
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
MuonCombined::InDetCandidate::getExtension
const Muon::MuonSystemExtension * getExtension() const
Definition: InDetCandidate.cxx:46
MuonCombined::InDetCandidate::~InDetCandidate
~InDetCandidate()
destructor
Trk::CaloExtension
Tracking class to hold the extrapolation from a particle from the ID to the muon system (or the other...
Definition: CaloExtension.h:18
MuonCombined::InDetCandidate::m_siAssociated
bool m_siAssociated
Was this created using a special far forward indet track.
Definition: InDetCandidate.h:71
CaloExtension.h
MuonCombined::InDetCandidate
Definition: InDetCandidate.h:18
MuonCombined::InDetCandidate::m_extension
std::unique_ptr< Muon::MuonSystemExtension > m_extension
Definition: InDetCandidate.h:73
MuonCombined::InDetCandidate::indetTrackParticleLink
const ElementLink< xAOD::TrackParticleContainer > & indetTrackParticleLink() const
access TrackParticleLink
Definition: InDetCandidate.cxx:33
MuonCombined::InDetCandidate::setSiliconAssociated
void setSiliconAssociated(bool)
Pass true if this candiate was created from a special far forward InDet track.
Definition: InDetCandidate.cxx:37
MuonCombined::InDetCandidate::m_idTrackParticle
const xAOD::TrackParticle * m_idTrackParticle
cached pointer to the InDet TrackParticle
Definition: InDetCandidate.h:68
xAOD::idTrackLink
setStrategy setMatchFlag idTrackLink
Definition: L2CombinedMuon_v1.cxx:117
Muon::MuonSystemExtension
Tracking class to hold the extrapolation from a particle from the calo entry to the end of muon syste...
Definition: MuonSystemExtension.h:18
MuonCombined::InDetCandidate::m_idTrackParticleLink
ElementLink< xAOD::TrackParticleContainer > m_idTrackParticleLink
ElementLink to the InDet TrackParticle.
Definition: InDetCandidate.h:65
MuonCombined::InDetCandidate::toString
std::string toString() const
print candidate to string
Definition: InDetCandidate.cxx:17
MuonSystemExtension.h
MuonCombined::InDetCandidate::getCaloExtension
const Trk::CaloExtension * getCaloExtension() const
Definition: InDetCandidate.cxx:47
TrackParticle.h
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
MuonCombined::InDetCandidate::indetTrackParticle
const xAOD::TrackParticle & indetTrackParticle() const
access TrackParticle
Definition: InDetCandidate.cxx:27
MuonCombined::InDetCandidate::isSiliconAssociated
bool isSiliconAssociated() const
Returns true if this candidate was formed from a special far forward InDet track.
Definition: InDetCandidate.cxx:35
MuonCombined
The MuonTagToSegMap is an auxillary construct that links the MuonSegments associated with a combined ...
Definition: IMuonSystemExtensionTool.h:23
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
MuonCombined::InDetCandidate::operator==
bool operator==(const InDetCandidate &other) const
Define two InDetCandidates to be equal if they are built from the same track.
Definition: InDetCandidate.cxx:49
MuonCombined::InDetCandidate::InDetCandidate
InDetCandidate(const xAOD::TrackParticle &idTrack)
constructor taking a xAOD::TrackParicle& Users should ensure that the lifetime of the idTrack object ...
Definition: InDetCandidate.cxx:11
MuonCombined::InDetCandidate::m_calo_extension_ptr
const Trk::CaloExtension * m_calo_extension_ptr
Definition: InDetCandidate.h:75
TrackParticleContainer.h
MuonCombined::InDetCandidate::m_calo_extension
std::unique_ptr< Trk::CaloExtension > m_calo_extension
Definition: InDetCandidate.h:74
MuonCombined::InDetCandidate::setExtension
void setExtension(std::unique_ptr< Muon::MuonSystemExtension > extension)
Definition: InDetCandidate.cxx:39