LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
geo::AuxDetGeoObjectSorter Class Referenceabstract

#include "AuxDetGeoObjectSorter.h"

Inheritance diagram for geo::AuxDetGeoObjectSorter:
geo::AuxDetGeoObjectSorterStandard

Public Member Functions

virtual ~AuxDetGeoObjectSorter ()=default
 
void sort (std::vector< AuxDetGeo > &ads) const
 
void sort (std::vector< AuxDetSensitiveGeo > &adss) const
 

Private Member Functions

virtual bool compareAuxDets (AuxDetGeo const &ad1, AuxDetGeo const &ad2) const =0
 
virtual bool compareAuxDetSensitives (AuxDetSensitiveGeo const &ads1, AuxDetSensitiveGeo const &ads2) const =0
 

Detailed Description

Definition at line 16 of file AuxDetGeoObjectSorter.h.

Constructor & Destructor Documentation

virtual geo::AuxDetGeoObjectSorter::~AuxDetGeoObjectSorter ( )
virtualdefault

Member Function Documentation

virtual bool geo::AuxDetGeoObjectSorter::compareAuxDets ( AuxDetGeo const &  ad1,
AuxDetGeo const &  ad2 
) const
privatepure virtual

Implemented in geo::AuxDetGeoObjectSorterStandard.

Referenced by sort().

virtual bool geo::AuxDetGeoObjectSorter::compareAuxDetSensitives ( AuxDetSensitiveGeo const &  ads1,
AuxDetSensitiveGeo const &  ads2 
) const
privatepure virtual

Implemented in geo::AuxDetGeoObjectSorterStandard.

Referenced by sort().

void geo::AuxDetGeoObjectSorter::sort ( std::vector< AuxDetGeo > &  ads) const

Definition at line 18 of file AuxDetGeoObjectSorter.cxx.

References compareAuxDets().

Referenced by geo::AuxDetGeo::SortSubVolumes().

19  {
20  std::sort(ads.begin(), ads.end(), bind(&AuxDetGeoObjectSorter::compareAuxDets, this));
21  }
virtual bool compareAuxDets(AuxDetGeo const &ad1, AuxDetGeo const &ad2) const =0
void geo::AuxDetGeoObjectSorter::sort ( std::vector< AuxDetSensitiveGeo > &  adss) const

Definition at line 23 of file AuxDetGeoObjectSorter.cxx.

References compareAuxDetSensitives().

24  {
25  std::sort(
26  adss.begin(), adss.end(), bind(&AuxDetGeoObjectSorter::compareAuxDetSensitives, this));
27  }
virtual bool compareAuxDetSensitives(AuxDetSensitiveGeo const &ads1, AuxDetSensitiveGeo const &ads2) const =0

The documentation for this class was generated from the following files: