Template Class SkymapTemplate¶
- Defined in File SkymapTemplate.h
Inheritance Relationships¶
Base Type¶
public Skymap
(Class Skymap)
Class Documentation¶
-
template <typename QPXL, typename QSTEP>
classSkymapTemplate
: public Skymap¶ Provides a HEALPix-compatibile container template with undefined units of pixels; should be inherited in every process-specific skymap.
- Template Parameters
QPXL
: A type of pixel which a skymap contains (e.g., units::QTemperature, units::QRotationMeasure)QSTEP
: A physical quantity (parameter) that describes a particular map (if needed), e.g., units::QFrequency, units::QEnergy
Public Types
-
typedef tFluxContainer::iterator
iterator
iterator goodies
-
typedef tFluxContainer::const_iterator
const_iterator
Public Functions
-
SkymapTemplate
(std::size_t nside = 64, const QSTEP &p = QSTEP(0))¶ Constructors
-
~SkymapTemplate
()¶
-
void
setSkymapParameter
(const QSTEP &p) Setter for the skymap parameter
-
QSTEP
setSkymapParameter
() const¶ Getter for the skymap parameter
-
std::size_t
size
() const Size of the skymap container (same as getNPix())
-
std::size_t
getUnmaskedPixelCount
() const Calculate the total number of unmasked pixels
-
QPXL
getPixel
(std::size_t ipix) const
-
double
getPixelAsDouble
(std::size_t i) const Retrieve ith (
- ipix) pixel as naked double
-
QPXL
getMean
() const Calculate the mean value of unmasked pixels
-
bool
hasMask
() const Checks if the skymap is masked
-
QPXL
operator[]
(std::size_t ipix) const¶ Pixel accessor [] (same as getPixel)
-
QPXL *
data
() Returns a pointer to the pixel container
Set the line of sight integrator
-
void
setOutput
()
-
void
printPixels
() const
-
std::vector<bool>
getMask
() const¶
-
bool
isMasked
(std::size_t pixel) const
-
void
compute
()
-
void
convertToUnits
(QPXL units_, const std::string &defaultUnitsString)¶ output
-
QPXL
getOutputUnits
() const
-
std::string
getOutputUnitsAsString
() const
-
std::string
getUnits
() const
-
std::vector<float>
containerToRawVector
() const
-
SkymapTemplate<QPXL, QSTEP>::const_iterator
begin
()
-
const_iterator
begin
() const¶
-
SkymapTemplate<QPXL, QSTEP>::const_iterator
end
()
-
const_iterator
end
() const¶
-
void
setNside
(std::size_t nside_)
-
std::size_t
getNside
() const
-
void
setRes
(std::size_t res_)
-
std::size_t
getRes
() const
-
std::size_t
getNpix
() const
-
std::string
getDescription
() const
-
void
setDescription
(const std::string &description)
Protected Functions
-
void
initDefaultOutputUnits
(QPXL units, const std::string &unitsString)¶
-
void
initContainer
()
-
void
initMask
()
Protected Attributes
-
tFluxContainer
fluxContainer
-
std::vector<bool>
maskContainer
-
tPixel
defaultOutputUnits
-
std::string
defaultOutputUnitsString
-
QSTEP
skymapParameter
-
std::shared_ptr<SkymapMask>
mask
-
std::shared_ptr<IntegratorTemplate<QPXL, QSTEP>>
integrator
-
std::shared_ptr<ProgressBar>
progressbar
-
std::shared_ptr<std::mutex>
progressbar_mutex
-
std::size_t
nside
-
std::size_t
npix
-
std::size_t
res
-
std::string
description