ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
InDetDD::SegmentList Class Reference

#include <VolumeSplitterUtils.h>

Collaboration diagram for InDetDD::SegmentList:

Public Member Functions

void add (const std::string &label, const Point &start, const Point &end, bool rotated=false)
 
void add (const Segment &segment)
 
unsigned int size () const
 
const SegmentgetSegment (unsigned int i) const
 
bool horizontal () const
 
void print () const
 

Private Attributes

std::vector< Segmentm_segments
 

Detailed Description

Definition at line 155 of file VolumeSplitterUtils.h.

Member Function Documentation

◆ add() [1/2]

void InDetDD::SegmentList::add ( const Segment segment)

Definition at line 382 of file VolumeSplitterUtils.cxx.

382  {
383  m_segments.push_back(segment);
384  }

◆ add() [2/2]

void InDetDD::SegmentList::add ( const std::string &  label,
const Point start,
const Point end,
bool  rotated = false 
)

Definition at line 377 of file VolumeSplitterUtils.cxx.

377  {
378  m_segments.emplace_back(label, start, end, rotated);
379  }

◆ getSegment()

const Segment& InDetDD::SegmentList::getSegment ( unsigned int  i) const
inline

Definition at line 161 of file VolumeSplitterUtils.h.

161 {return m_segments[i];}

◆ horizontal()

bool InDetDD::SegmentList::horizontal ( ) const

Definition at line 387 of file VolumeSplitterUtils.cxx.

387  {
388  if (size() > 0) {
389  const Segment& seg = m_segments[0];
390  return(seg.rmin() == seg.rmax());
391  }
392  // Not relevant if array empty.
393  return true;
394  }

◆ print()

void InDetDD::SegmentList::print ( ) const

Definition at line 397 of file VolumeSplitterUtils.cxx.

397  {
398  for (std::vector<Segment>::const_iterator iter = m_segments.begin(); iter != m_segments.end(); ++iter) {
399  iter->print();
400  }
401  }

◆ size()

unsigned int InDetDD::SegmentList::size ( ) const
inline

Definition at line 160 of file VolumeSplitterUtils.h.

160 {return m_segments.size();}

Member Data Documentation

◆ m_segments

std::vector<Segment> InDetDD::SegmentList::m_segments
private

Definition at line 170 of file VolumeSplitterUtils.h.


The documentation for this class was generated from the following files:
InDetDD::SegmentList::m_segments
std::vector< Segment > m_segments
Definition: VolumeSplitterUtils.h:170
Trk::TrackState::Segment
@ Segment
Definition: TrackStateDefs.h:37
PlotCalibFromCool.label
label
Definition: PlotCalibFromCool.py:78
mergePhysValFiles.start
start
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:14
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
lumiFormat.i
int i
Definition: lumiFormat.py:92
InDetDD::SegmentList::size
unsigned int size() const
Definition: VolumeSplitterUtils.h:160
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5