ATLAS Offline Software
StacoTag.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONCOMBINEDEVENT_STACOTAG_H
6 #define MUONCOMBINEDEVENT_STACOTAG_H
7 
11 
12 namespace Trk {
13  class Track;
14 
15 }
16 
17 namespace MuonCombined {
18 
19  class MuonCandidate;
20 
22  class StacoTag : public TagBase {
23  public:
28  StacoTag(const MuonCandidate& muonCandidate, std::unique_ptr<const Trk::Perigee>& perigee, double chi2);
29 
32 
34  const Trk::Perigee& combinedParameters() const;
35 
37  std::unique_ptr<const Trk::Perigee> releaseCombinedParameters();
38 
40  const MuonCandidate& muonCandidate() const;
41 
43  double matchChi2() const;
44 
46  std::string name() const override;
47 
49  std::string toString() const override;
50 
52  const Trk::Track* primaryTrack() const override;
53 
55  bool isCommissioning() const override;
56 
58  std::vector<const Muon::MuonSegment*> associatedSegments() const override;
59 
60  private:
62  StacoTag(const StacoTag&) = delete;
63  StacoTag& operator=(const StacoTag&) = delete;
64 
66  const MuonCandidate* m_muonCandidate{nullptr};
67  std::unique_ptr<const Trk::Perigee> m_combinedParameters{nullptr};
68  double m_chi2{0.};
69  };
70 
71  bool operator<(const StacoTag& t1, const StacoTag& t2);
72 
73 } // namespace MuonCombined
74 
75 #endif
TrackParameters.h
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
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::StacoTag
StacoTag(const StacoTag &)=delete
block copy and assignment
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::operator=
StacoTag & operator=(const StacoTag &)=delete
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
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
MuonCandidate.h
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
TagBase.h
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
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
MuonCombined::StacoTag::muonCandidate
const MuonCandidate & muonCandidate() const
access to MuonCandidate
Definition: StacoTag.cxx:28
MuonCombined::TagBase
base-class for combined reconstruction output Provides access to MuonType and Author
Definition: TagBase.h:48