ATLAS Offline Software
StacoTag.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 #include <iostream>
8 
9 namespace MuonCombined {
10 
11  StacoTag::StacoTag(const MuonCandidate& muonCandidate, std::unique_ptr<const Trk::Perigee>& combinedParameters, double chi2) :
13  m_muonCandidate(&muonCandidate),
14  m_combinedParameters(std::move(combinedParameters)),
15  m_chi2(chi2) {}
16 
17  StacoTag::~StacoTag() = default;
18 
19  std::string StacoTag::name() const { return "StacoTag"; }
21  std::string StacoTag::toString() const {
22  std::ostringstream sout;
23  sout << name() << " match chi2 " << matchChi2();
24  return sout.str();
25  }
27  std::unique_ptr<const Trk::Perigee> StacoTag::releaseCombinedParameters() { return std::move(m_combinedParameters); }
29  double StacoTag::matchChi2() const { return m_chi2; }
31  std::vector<const Muon::MuonSegment*> StacoTag::associatedSegments() const { return muonCandidate().getSegments(); }
32  bool operator<(const StacoTag& t1, const StacoTag& t2) { return t1.matchChi2() < t2.matchChi2(); }
33 
34 } // namespace MuonCombined
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Trk::ParametersT
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
Definition: EMErrorDetail.h:25
MuonCombined::MuonCandidate::primaryTrack
const Trk::Track * primaryTrack() const
Returns the extrapolated track otherwise the muonSpectrometer.
Definition: Reconstruction/MuonIdentification/MuonCombinedEvent/src/MuonCandidate.cxx:53
MuonCombined::TagBase::Author
xAOD::Muon::Author Author
Definition: TagBase.h:52
ALFA_EventTPCnv_Dict::t1
std::vector< ALFA_RawDataCollection_p1 > t1
Definition: ALFA_EventTPCnvDict.h:43
MuonCombined::StacoTag
TagBase implementation for a combined fit.
Definition: StacoTag.h:22
MuonCombined::StacoTag::primaryTrack
const Trk::Track * primaryTrack() const override
access to primary muon system track, zero if non available
Definition: StacoTag.cxx:30
MuonCombined::StacoTag::StacoTag
StacoTag(const MuonCandidate &muonCandidate, std::unique_ptr< const Trk::Perigee > &perigee, double chi2)
Constructor taking a MuonCandidate, a combined perigee and match chi2 as input Users should ensure th...
Definition: StacoTag.cxx:11
MuonCombined::StacoTag::name
std::string name() const override
name string
Definition: StacoTag.cxx:19
MuonCombined::StacoTag::m_muonCandidate
const MuonCandidate * m_muonCandidate
data content
Definition: StacoTag.h:66
MuonCombined::StacoTag::matchChi2
double matchChi2() const
access to match chi2
Definition: StacoTag.cxx:29
MuonCombined::MuonCandidate
Definition: Reconstruction/MuonIdentification/MuonCombinedEvent/MuonCombinedEvent/MuonCandidate.h:25
chi2
double chi2(TH1 *h0, TH1 *h1)
Definition: comparitor.cxx:522
MuonCombined::StacoTag::isCommissioning
bool isCommissioning() const override
Returns whether the muon belongs to the commissioning chain.
Definition: StacoTag.cxx:20
MuonCombined::StacoTag::associatedSegments
std::vector< const Muon::MuonSegment * > associatedSegments() const override
access to associated segments, empty vector if non available
Definition: StacoTag.cxx:31
MuonCombined::StacoTag::toString
std::string toString() const override
print content to string
Definition: StacoTag.cxx:21
xAODType
Definition: ObjectType.h:13
MuonCombined::MuonCandidate::getSegments
const std::vector< const Muon::MuonSegment * > & getSegments() const
returns the vector of associated muon segments
Definition: Reconstruction/MuonIdentification/MuonCombinedEvent/src/MuonCandidate.cxx:64
Trk::Combined
@ Combined
Definition: TrackSummaryTool.h:32
MuonCombined::operator<
bool operator<(const CombinedFitTag &t1, const CombinedFitTag &t2)
Definition: CombinedFitTag.h:117
MuonCombined::StacoTag::combinedParameters
const Trk::Perigee & combinedParameters() const
access combined parameters
Definition: StacoTag.cxx:26
ALFA_EventTPCnv_Dict::t2
std::vector< ALFA_RawDataContainer_p1 > t2
Definition: ALFA_EventTPCnvDict.h:44
MuonCombined::StacoTag::~StacoTag
~StacoTag()
destructor
MuonCombined
The MuonTagToSegMap is an auxillary construct that links the MuonSegments associated with a combined ...
Definition: IMuonSystemExtensionTool.h:23
MuonCombined::StacoTag::releaseCombinedParameters
std::unique_ptr< const Trk::Perigee > releaseCombinedParameters()
release combined parameters, user gets ownership
Definition: StacoTag.cxx:27
MuonCombined::StacoTag::m_chi2
double m_chi2
combined parameters
Definition: StacoTag.h:68
MuonCombined::StacoTag::m_combinedParameters
std::unique_ptr< const Trk::Perigee > m_combinedParameters
MuonCandidate.
Definition: StacoTag.h:67
StacoTag.h
xAOD::STACO
@ STACO
Tracks produced by STACO.
Definition: TrackingPrimitives.h:99
MuonCombined::StacoTag::muonCandidate
const MuonCandidate & muonCandidate() const
access to MuonCandidate
Definition: StacoTag.cxx:28
MuonCombined::MuonCandidate::isCommissioning
bool isCommissioning() const
Returns whether the muon belongs to the comissioning chain.
Definition: Reconstruction/MuonIdentification/MuonCombinedEvent/src/MuonCandidate.cxx:61
MuonCombined::TagBase
base-class for combined reconstruction output Provides access to MuonType and Author
Definition: TagBase.h:48