Struct RMGVertexConfinement::SampleableObjectCollection¶
Defined in File RMGVertexConfinement.hh
Nested Relationships¶
This struct is a nested type of Class RMGVertexConfinement.
Struct Documentation¶
-
struct SampleableObjectCollection
A collection of
SampleableObjectobjects. It can be used to sample from by selecting a volume weighted by surface area or volume.Public Functions
-
SampleableObjectCollection() = default
-
inline ~SampleableObjectCollection()
-
const SampleableObject &SurfaceWeightedRand() const
Select a
SampleableObjectfrom the collection, weighted by surface area.- Returns:
a reference to the chosen
SampleableObject.
-
const SampleableObject &VolumeWeightedRand() const
Select a
SampleableObjectfrom the collection, weighted by volume.- Returns:
a reference to the chosen
SampleableObject.
-
bool IsInside(const G4ThreeVector &vertex) const
-
inline size_t size() const
-
inline SampleableObject &at(size_t i)
-
template<typename ...Args>
void emplace_back(Args&&... args)
-
inline bool empty() const
-
inline SampleableObject &back()
-
inline void clear()
-
inline void insert(SampleableObjectCollection &other)
-
SampleableObjectCollection() = default