iceCube.uhe.analysis
public class NPEthresholdOptimizer extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
aidaFileName
name of the output Aida Tree file
|
protected IHistogram1D |
bgRate1D |
protected IHistogram2D |
bgRate2D
histogram to store number of background events
|
protected int |
dimensionNPE
dimension of the logNPE.
|
protected int |
dimensionY
dimension of the parameter y.
|
protected double |
logNPEMax
maximum range of logNPE
|
protected double |
logNPEMin
mininum range of logNPE
|
protected IHistogram1D |
modelRejectHisto
Histogram to store the model rejection factor
|
protected IHistogram1D |
signalDiscoverPotentialHisto
Histogram to store the signal discovery potential
|
protected IHistogram1D |
signalRate1D |
protected IHistogram2D |
signalRate2D
histogram to store number of signal events
|
protected double |
yMax
maximum range of the parameter y (ex.
|
protected double |
yMin
mininum range of the parameter y (ex.
|
Constructor and Description |
---|
NPEthresholdOptimizer()
Constructor.
|
NPEthresholdOptimizer(int dimensionY,
double yMin,
double yMax,
int dimensionNPE,
double logNPEMin,
double logNPEMax)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
calculateAndFillModelRejectionFactor(double y,
boolean isIntegral)
Calculate the model rejection factor for each NPE threshold
and fill the 1D histogram(ogNPE) with the factors.
|
void |
calculateAndFillSignalDiscoveryPotential(double y,
double significanceOfDiscovery,
boolean isIntegral)
Calculate the signal discovery potential for each NPE threshold
and fill the 1D histogram(ogNPE) with the factors.
|
static void |
main(java.lang.String[] args)
A simple main method for test
|
void |
plot()
Plot the model rejection factor and the signal discovery poteintial
as a function of logNPE
|
void |
readAndFillEventRate(java.io.DataInputStream in)
Reading the number of signal and background events binned in logNPE and y(such as cos(Zenith)
|
void |
readAndFillEventRate(java.io.DataInputStream in,
boolean wideFormat)
Reading the number of signal and background events binned in logNPE and y(such as cos(Zenith).
|
protected int dimensionY
protected double yMax
protected double yMin
protected int dimensionNPE
protected double logNPEMax
protected double logNPEMin
protected IHistogram2D signalRate2D
protected IHistogram1D signalRate1D
protected IHistogram2D bgRate2D
protected IHistogram1D bgRate1D
protected IHistogram1D modelRejectHisto
protected IHistogram1D signalDiscoverPotentialHisto
protected java.lang.String aidaFileName
public NPEthresholdOptimizer(int dimensionY, double yMin, double yMax, int dimensionNPE, double logNPEMin, double logNPEMax) throws java.io.IOException
int dimensionY dimension of the parameter y (ex. cos(zenith) in histograms double yMin mininum rang of the parameter y (ex. cos(zenith) in histograms double yMax maximum rang of the parameter y (ex. cos(zenith) in histograms int dimensionNPE dimension of log(NPE) in histograms double logNPEMin mininum rang of log(NPE) in histograms double logNPEMax maximum rang of log(NPE) in histograms
java.io.IOException
public NPEthresholdOptimizer() throws java.io.IOException
java.io.IOException
public void readAndFillEventRate(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
public void readAndFillEventRate(java.io.DataInputStream in, boolean wideFormat) throws java.io.IOException
java.io.IOException
public void calculateAndFillModelRejectionFactor(double y, boolean isIntegral)
double y : presumably cosZenith, a parameter on y-axis. logNPE is on x-axis. boolean isIntegral : if the filled BG/Signal rate is integral rate, set true.
public void calculateAndFillSignalDiscoveryPotential(double y, double significanceOfDiscovery, boolean isIntegral) throws java.io.IOException
double y : presumably cosZenith, a parameter on y-axis. logNPE is on x-axis. double significanceOfDiscovery : significance to define "discovery" of signals. 5.0 e.x., 5sigma boolean isIntegral : if the filled BG/Signal rate is integral rate, set true.
java.io.IOException
public void plot()
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException