ATLAS Offline Software
Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
Muon::MuonSegmentCombiSummary Class Reference

#include <MuonSegmentCombiSummary.h>

Collaboration diagram for Muon::MuonSegmentCombiSummary:

Public Types

typedef std::vector< MuonSegment * > SegVec
 
typedef std::vector< SegVecChSegVec
 

Public Member Functions

 MuonSegmentCombiSummary (const MuonSegmentCombination &segment)
 
 MuonSegmentCombiSummary (std::unique_ptr< MuonSegmentCombination > segment)
 
MuonSegmentCombiSummaryoperator= (MuonSegmentCombiSummary &&other)=default
 
 MuonSegmentCombiSummary (MuonSegmentCombiSummary &&)=default
 
bool has_ownership () const
 States whether the Summary has ownership over the contained segment or not. More...
 
const MuonSegmentCombinationget () const
 Returns the pointer used to create the segment collection. More...
 
std::unique_ptr< MuonSegmentCombinationrelease ()
 Releases the ownership over the SegmentCombination if the segment was constructed with a unique_ptr. More...
 
virtual ~MuonSegmentCombiSummary ()=default
 
const MuonSegmentCombinationsegmentCombination () const
 access to combi More...
 
ChSegVecsegmentsPerLayer ()
 
SegVecchamberSegments (unsigned int chIndex)
 

Public Attributes

std::set< MuonStationIndex::StIndexstations
 number of station layers More...
 
std::set< MuonStationIndex::StIndexstationsGood
 number of station layers with good segment More...
 
std::set< MuonStationIndex::StIndexstationsTrigger
 number of station layers with trigger hit More...
 
unsigned int nsegments {0}
 

Private Attributes

ChSegVec m_segmentsPerChamberLayer {MuonStationIndex::ChIndexMax}
 
std::unique_ptr< MuonSegmentCombinationm_owner_combi {}
 This pointer is valid if the summary does hold the. More...
 
const MuonSegmentCombinationm_observer_ptr {nullptr}
 

Detailed Description

Definition at line 19 of file MuonSegmentCombiSummary.h.

Member Typedef Documentation

◆ ChSegVec

Definition at line 25 of file MuonSegmentCombiSummary.h.

◆ SegVec

Definition at line 22 of file MuonSegmentCombiSummary.h.

Constructor & Destructor Documentation

◆ MuonSegmentCombiSummary() [1/3]

Muon::MuonSegmentCombiSummary::MuonSegmentCombiSummary ( const MuonSegmentCombination segment)

Definition at line 9 of file MuonSegmentCombiSummary.cxx.

9 { m_observer_ptr = &combi; }

◆ MuonSegmentCombiSummary() [2/3]

Muon::MuonSegmentCombiSummary::MuonSegmentCombiSummary ( std::unique_ptr< MuonSegmentCombination segment)

Definition at line 11 of file MuonSegmentCombiSummary.cxx.

11  : m_owner_combi(std::move(segment)) {
13  }

◆ MuonSegmentCombiSummary() [3/3]

Muon::MuonSegmentCombiSummary::MuonSegmentCombiSummary ( MuonSegmentCombiSummary &&  )
default

◆ ~MuonSegmentCombiSummary()

virtual Muon::MuonSegmentCombiSummary::~MuonSegmentCombiSummary ( )
virtualdefault

Member Function Documentation

◆ chamberSegments()

MuonSegmentCombiSummary::SegVec & Muon::MuonSegmentCombiSummary::chamberSegments ( unsigned int  chIndex)

Definition at line 19 of file MuonSegmentCombiSummary.cxx.

19  {
20  return m_segmentsPerChamberLayer[chIndex];
21  }

◆ get()

const MuonSegmentCombination * Muon::MuonSegmentCombiSummary::get ( ) const

Returns the pointer used to create the segment collection.

Definition at line 14 of file MuonSegmentCombiSummary.cxx.

14 { return m_observer_ptr; }

◆ has_ownership()

bool Muon::MuonSegmentCombiSummary::has_ownership ( ) const

States whether the Summary has ownership over the contained segment or not.

Definition at line 10 of file MuonSegmentCombiSummary.cxx.

10 { return m_owner_combi != nullptr; }

◆ operator=()

MuonSegmentCombiSummary& Muon::MuonSegmentCombiSummary::operator= ( MuonSegmentCombiSummary &&  other)
default

◆ release()

std::unique_ptr< MuonSegmentCombination > Muon::MuonSegmentCombiSummary::release ( )

Releases the ownership over the SegmentCombination if the segment was constructed with a unique_ptr.

Definition at line 16 of file MuonSegmentCombiSummary.cxx.

16 { return std::move(m_owner_combi); }

◆ segmentCombination()

const MuonSegmentCombination & Muon::MuonSegmentCombiSummary::segmentCombination ( ) const

access to combi

Definition at line 15 of file MuonSegmentCombiSummary.cxx.

15 { return *m_observer_ptr; }

◆ segmentsPerLayer()

MuonSegmentCombiSummary::ChSegVec & Muon::MuonSegmentCombiSummary::segmentsPerLayer ( )

Definition at line 18 of file MuonSegmentCombiSummary.cxx.

18 { return m_segmentsPerChamberLayer; }

Member Data Documentation

◆ m_observer_ptr

const MuonSegmentCombination* Muon::MuonSegmentCombiSummary::m_observer_ptr {nullptr}
private

Definition at line 61 of file MuonSegmentCombiSummary.h.

◆ m_owner_combi

std::unique_ptr<MuonSegmentCombination> Muon::MuonSegmentCombiSummary::m_owner_combi {}
private

This pointer is valid if the summary does hold the.

Definition at line 60 of file MuonSegmentCombiSummary.h.

◆ m_segmentsPerChamberLayer

ChSegVec Muon::MuonSegmentCombiSummary::m_segmentsPerChamberLayer {MuonStationIndex::ChIndexMax}
private

Definition at line 58 of file MuonSegmentCombiSummary.h.

◆ nsegments

unsigned int Muon::MuonSegmentCombiSummary::nsegments {0}

Definition at line 55 of file MuonSegmentCombiSummary.h.

◆ stations

std::set<MuonStationIndex::StIndex> Muon::MuonSegmentCombiSummary::stations

number of station layers

Definition at line 51 of file MuonSegmentCombiSummary.h.

◆ stationsGood

std::set<MuonStationIndex::StIndex> Muon::MuonSegmentCombiSummary::stationsGood

number of station layers with good segment

Definition at line 52 of file MuonSegmentCombiSummary.h.

◆ stationsTrigger

std::set<MuonStationIndex::StIndex> Muon::MuonSegmentCombiSummary::stationsTrigger

number of station layers with trigger hit

Definition at line 53 of file MuonSegmentCombiSummary.h.


The documentation for this class was generated from the following files:
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::m_segmentsPerChamberLayer
ChSegVec m_segmentsPerChamberLayer
Definition: MuonSegmentCombiSummary.h:58
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5