ATLAS Offline Software
MuonSegmentCombiSummary.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 namespace Muon {
8 
10  bool MuonSegmentCombiSummary::has_ownership() const { return m_owner_combi != nullptr; }
11  MuonSegmentCombiSummary::MuonSegmentCombiSummary(std::unique_ptr<MuonSegmentCombination> segment) : m_owner_combi(std::move(segment)) {
13  }
16  std::unique_ptr<MuonSegmentCombination> MuonSegmentCombiSummary::release() { return std::move(m_owner_combi); }
17 
20  return m_segmentsPerChamberLayer[chIndex];
21  }
22 } // namespace Muon
MuonSegmentCombiSummary.h
Muon::MuonSegmentCombination
Definition: MuonSegmentCombination.h:30
Muon::MuonSegmentCombiSummary::chamberSegments
SegVec & chamberSegments(unsigned int chIndex)
Definition: MuonSegmentCombiSummary.cxx:19
Muon::MuonSegmentCombiSummary::SegVec
std::vector< MuonSegment * > SegVec
Definition: MuonSegmentCombiSummary.h:22
Muon::MuonSegmentCombiSummary::segmentsPerLayer
ChSegVec & segmentsPerLayer()
Definition: MuonSegmentCombiSummary.cxx:18
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
Muon::MuonSegmentCombiSummary::m_observer_ptr
const MuonSegmentCombination * m_observer_ptr
Definition: MuonSegmentCombiSummary.h:61
Muon::MuonSegmentCombiSummary::m_owner_combi
std::unique_ptr< MuonSegmentCombination > m_owner_combi
This pointer is valid if the summary does hold the.
Definition: MuonSegmentCombiSummary.h:60
Muon::MuonSegmentCombiSummary::release
std::unique_ptr< MuonSegmentCombination > release()
Releases the ownership over the SegmentCombination if the segment was constructed with a unique_ptr.
Definition: MuonSegmentCombiSummary.cxx:16
Muon::MuonSegmentCombiSummary::get
const MuonSegmentCombination * get() const
Returns the pointer used to create the segment collection.
Definition: MuonSegmentCombiSummary.cxx:14
Muon::MuonSegmentCombiSummary::m_segmentsPerChamberLayer
ChSegVec m_segmentsPerChamberLayer
Definition: MuonSegmentCombiSummary.h:58
Muon::MuonSegmentCombiSummary::has_ownership
bool has_ownership() const
States whether the Summary has ownership over the contained segment or not.
Definition: MuonSegmentCombiSummary.cxx:10
Muon::MuonSegmentCombiSummary::MuonSegmentCombiSummary
MuonSegmentCombiSummary(const MuonSegmentCombination &segment)
Definition: MuonSegmentCombiSummary.cxx:9
Muon::MuonSegmentCombiSummary::segmentCombination
const MuonSegmentCombination & segmentCombination() const
access to combi
Definition: MuonSegmentCombiSummary.cxx:15
Muon::MuonSegmentCombiSummary::ChSegVec
std::vector< SegVec > ChSegVec
Definition: MuonSegmentCombiSummary.h:25
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5