iceCube.uhe.analysis
public class LDPcalculator extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
bgMap |
boolean |
isLDP |
protected java.util.Map |
ldpMap |
protected java.util.Map |
sigMap |
static double |
significance |
Constructor and Description |
---|
LDPcalculator(boolean isLDP) |
LDPcalculator(boolean isLDP,
boolean generateMap)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static double |
getLeastDiscoveryPotential(double nSignal,
double nBG,
double significanceOfDiscovery)
Calculate the signal discovery potential for a given set of (nSignal,nBG) at significanceOfDiscovery sigma.
|
static double |
getModelRejectionFactor(double nSignal,
double nBG)
Calculate the model rejection factor for a given set of (nSignal,nBG).
|
static void |
main(java.lang.String[] args)
A simple main method
|
void |
printResults()
print out the calculated LDPs to the standard output
|
void |
readAndFillLDP(java.io.DataInputStream in)
Reading the signal and bg rates from the input stream.
|
protected java.util.Map ldpMap
protected java.util.Map sigMap
protected java.util.Map bgMap
public boolean isLDP
public static double significance
public LDPcalculator(boolean isLDP, boolean generateMap)
public LDPcalculator(boolean isLDP)
public static double getModelRejectionFactor(double nSignal, double nBG)
public static double getLeastDiscoveryPotential(double nSignal, double nBG, double significanceOfDiscovery)
public void readAndFillLDP(java.io.DataInputStream in) throws java.io.IOException
index% signal-rate bg-rate bg-proton-rateYou need a "space" before each end of line.
java.io.IOException
public void printResults()
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException