SourceXtractorPlusPlus
0.13
Please provide a description of the project.
SEImplementation
SEImplementation
Background
SE2
BackgroundCell.h
Go to the documentation of this file.
1
17
/*
18
* Created on Jan 05, 2015
19
* @author: mkuemmel@usm.lmu.de
20
*
21
* Date: $Date$
22
* Revision: $Revision$
23
* Author: $Author$
24
*/
25
#ifndef BACKGROUNDCELL_H
26
#define BACKGROUNDCELL_H
27
28
#include "
SEImplementation/Background/SE2/BackgroundHistogram.h
"
29
30
namespace
SourceXtractor
{
31
32
class
BackgroundCell
{
33
34
public
:
35
36
BackgroundCell
(
const
PIXTYPE
* cellData,
const
size_t
ndata,
const
PIXTYPE
* cellWeight=NULL,
const
PIXTYPE
weightThresh=
BIG
);
37
virtual
~BackgroundCell
();
38
39
void
run
();
40
void
getBackgroundValues
(
PIXTYPE
& meanVal,
PIXTYPE
& sigmaVal);
41
void
getBackgroundValues
(
PIXTYPE
& meanVal,
PIXTYPE
& sigmaVal,
PIXTYPE
& whtMeanVal,
PIXTYPE
& whtSigmaVal);
42
void
getBackgroundValuesOld
(
PIXTYPE
& meanVal,
PIXTYPE
& sigmaVal);
43
44
private
:
45
46
void
getStats
(
const
PIXTYPE
* cellData,
const
size_t
& ndata,
double
& mean,
double
& sigma,
size_t
& statNData);
47
void
getStatsWeight
(
const
PIXTYPE
* cellData,
const
size_t
& ndata,
const
PIXTYPE
* cellWeight,
const
PIXTYPE
weightThresh,
double
& mean,
double
& sigma,
size_t
& statNData,
double
& weightMean,
double
& weightSigma,
size_t
& statNWeight);
48
49
const
PIXTYPE
*
itsCellData
;
50
const
PIXTYPE
*
itsCellWeight
;
51
52
53
size_t
itsNdata
=0;
54
55
BackgroundHistogram
*
itsHisto
= NULL;
56
BackgroundHistogram
*
itsWeightHisto
= NULL;
57
58
bool
itsHasWeight
=
false
;
59
PIXTYPE
itsWeightThresh
=
BIG
;
60
61
double
itsMean
=0.0;
62
double
itsSigma
=0.0;
63
double
itsWeightMean
=0.0;
64
double
itsWeightSigma
=0.0;
65
size_t
itsStatNData
=0;
66
size_t
itsStatNWeight
=0;
67
};
68
}
// end of the namespace SourceXtractor
69
#endif
/* BACKGROUNDCELL_H */
70
SourceXtractor::BackgroundCell::itsHisto
BackgroundHistogram * itsHisto
Definition:
BackgroundCell.h:55
SourceXtractor::BackgroundCell::BackgroundCell
BackgroundCell(const PIXTYPE *cellData, const size_t ndata, const PIXTYPE *cellWeight=NULL, const PIXTYPE weightThresh=BIG)
Definition:
BackgroundCell.cpp:34
SourceXtractor::PIXTYPE
float PIXTYPE
Definition:
BackgroundDefine.h:30
SourceXtractor::BackgroundCell::itsCellWeight
const PIXTYPE * itsCellWeight
Definition:
BackgroundCell.h:50
SourceXtractor::BackgroundCell::itsMean
double itsMean
Definition:
BackgroundCell.h:61
SourceXtractor::BackgroundCell::itsWeightThresh
PIXTYPE itsWeightThresh
Definition:
BackgroundCell.h:59
SourceXtractor::BackgroundCell::itsWeightMean
double itsWeightMean
Definition:
BackgroundCell.h:63
SourceXtractor::BackgroundCell::run
void run()
SourceXtractor::BackgroundCell::itsNdata
size_t itsNdata
Definition:
BackgroundCell.h:53
BackgroundHistogram.h
SourceXtractor::BackgroundCell::getBackgroundValuesOld
void getBackgroundValuesOld(PIXTYPE &meanVal, PIXTYPE &sigmaVal)
Definition:
BackgroundCell.cpp:147
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::BackgroundCell::itsStatNData
size_t itsStatNData
Definition:
BackgroundCell.h:65
SourceXtractor::BackgroundCell::itsHasWeight
bool itsHasWeight
Definition:
BackgroundCell.h:58
SourceXtractor::BackgroundCell::itsStatNWeight
size_t itsStatNWeight
Definition:
BackgroundCell.h:66
SourceXtractor::BackgroundCell::~BackgroundCell
virtual ~BackgroundCell()
Definition:
BackgroundCell.cpp:56
SourceXtractor::BackgroundCell
Definition:
BackgroundCell.h:32
SourceXtractor::BackgroundCell::getBackgroundValues
void getBackgroundValues(PIXTYPE &meanVal, PIXTYPE &sigmaVal)
Definition:
BackgroundCell.cpp:64
BIG
#define BIG
Definition:
BackgroundDefine.h:32
SourceXtractor::BackgroundCell::itsSigma
double itsSigma
Definition:
BackgroundCell.h:62
SourceXtractor::BackgroundCell::itsWeightHisto
BackgroundHistogram * itsWeightHisto
Definition:
BackgroundCell.h:56
SourceXtractor::BackgroundCell::getStatsWeight
void getStatsWeight(const PIXTYPE *cellData, const size_t &ndata, const PIXTYPE *cellWeight, const PIXTYPE weightThresh, double &mean, double &sigma, size_t &statNData, double &weightMean, double &weightSigma, size_t &statNWeight)
Definition:
BackgroundCell.cpp:245
SourceXtractor::BackgroundCell::getStats
void getStats(const PIXTYPE *cellData, const size_t &ndata, double &mean, double &sigma, size_t &statNData)
Definition:
BackgroundCell.cpp:175
SourceXtractor::BackgroundCell::itsCellData
const PIXTYPE * itsCellData
Definition:
BackgroundCell.h:49
SourceXtractor::BackgroundCell::itsWeightSigma
double itsWeightSigma
Definition:
BackgroundCell.h:64
SourceXtractor::BackgroundHistogram
Definition:
BackgroundHistogram.h:34
Generated by
1.8.20