Skip to content

Class TempLat::RadialProjectionSingleQuantity

template <typename T>

ClassList > TempLat > RadialProjectionSingleQuantity

A class which holds properties of a quantity (average, variance, min, max), each in a separate vector. Useful during the integration, will be transposed after the integration is done. More...

  • #include <radialprojectionsinglequantity.h>

Public Functions

Type Name
RadialProjectionSingleQuantity (device::Idx size)
DEVICE_FUNCTION void add_device (device::Idx i, const T & value, const T & weight) const
Add one new weighted value to the collection of properties.
void clear ()
void finalize (MPICommReference comm)
This is why we keep stuff in vectors, sum up all the results from all processes in an easy way: vectors of the same things and same size just add up.
RadialProjectionSingleDatum< T > getFinal (device::Idx i, const T & multiplicity)
to be called only after finalize, returning the normalized result, this time transposed: all info per bin, instead of all bins per info.
void pull ()
void push ()
size_t size () const

Detailed Description

Unit test: ctest -R test-radialprojectionsinglequantity

Public Functions Documentation

function RadialProjectionSingleQuantity

inline TempLat::RadialProjectionSingleQuantity::RadialProjectionSingleQuantity (
    device::Idx size
) 

function add_device

Add one new weighted value to the collection of properties.

inline DEVICE_FUNCTION void TempLat::RadialProjectionSingleQuantity::add_device (
    device::Idx i,
    const T & value,
    const T & weight
) const


function clear

inline void TempLat::RadialProjectionSingleQuantity::clear () 

function finalize

This is why we keep stuff in vectors, sum up all the results from all processes in an easy way: vectors of the same things and same size just add up.

inline void TempLat::RadialProjectionSingleQuantity::finalize (
    MPICommReference comm
) 


function getFinal

to be called only after finalize, returning the normalized result, this time transposed: all info per bin, instead of all bins per info.

inline RadialProjectionSingleDatum < T > TempLat::RadialProjectionSingleQuantity::getFinal (
    device::Idx i,
    const T & multiplicity
) 


function pull

inline void TempLat::RadialProjectionSingleQuantity::pull () 

function push

inline void TempLat::RadialProjectionSingleQuantity::push () 

function size

inline size_t TempLat::RadialProjectionSingleQuantity::size () const

Friends Documentation

friend RadialProjectionResult

template<typename S>
class TempLat::RadialProjectionSingleQuantity::RadialProjectionResult (
    RadialProjectionResult
) 


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/lattice/measuringtools/projectionhelpers/radialprojectionsinglequantity.h