ATLAS Offline Software
Loading...
Searching...
No Matches
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 }
std::vector< Segment > m_segments

◆ 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 }
std::string label(const std::string &format, int i)
Definition label.h:19

◆ 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 }
unsigned int size() const

◆ 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: