public class SamplePedestalEvent extends Object implements stream.StatefulProcessor
| Modifier and Type | Field and Description |
|---|---|
String[] |
binning |
String |
dataFolder |
String |
dbBinningKey |
String |
itemBinningKey |
int |
maxIterations |
String |
noiseCondition |
stream.io.SourceURL |
noiseDatabase |
String |
prependKey |
String |
samplingTryKey |
long |
seed |
| Constructor and Description |
|---|
SamplePedestalEvent() |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
createBinning(String[] binning)
Given a string array create the binning.
|
void |
finish() |
protected int |
getBin(double data)
Given a value data, calculate the bin it would end up in.
|
void |
init(stream.ProcessContext processContext) |
stream.Data |
process(stream.Data input) |
void |
resetState() |
void |
setBinning(String[] binning) |
void |
setNoiseCondition(String noiseCondition) |
@Parameter(required=false,
defaultValue="0",
description="The seed to make the results reproductable if desired.")
public long seed
@Parameter(required=true,
description="The file containing the noise database for the noise to be used.")
public stream.io.SourceURL noiseDatabase
@Parameter(required=true,
description="The folder containing the data files in FACTS canonical folder structure.")
public String dataFolder
@Parameter(required=false,
defaultValue="",
description="The value to prepend all keys from the noise file. (Exp: prependKey=\'Noise_\', \'ZdPointing\'->\'Noise_ZdPointing\'")
public String prependKey
@Parameter(required=false,
description="The condition for the noise which will be used")
public String noiseCondition
@Parameter(required=true,
description="The binning of the zenith-angle. If single value: steplenght, bins into the given steplengthIf multivalue: Each value is the length of a single step starting with zenith=0.")
public String[] binning
@Parameter(required=true,
description="The binning key of the double value from the noise database. e.g. key of the Zd value in the provided noise DB. A bin will be chosen according to the itemBinningKey")
public String dbBinningKey
@Parameter(required=true,
description="The binning key of the double value from the item.")
public String itemBinningKey
@Parameter(required=true,
description="The key which will hold the amount of sampling tries.")
public String samplingTryKey
@Parameter(required=false,
defaultValue="10",
description="number of max sampling iteration if a pedestal event is not readable")
public int maxIterations
public stream.Data process(stream.Data input)
process in interface stream.Processorpublic void setNoiseCondition(String noiseCondition)
public static double[] createBinning(String[] binning)
binning - The binning given as a string array.public void setBinning(String[] binning)
protected int getBin(double data)
data - public void init(stream.ProcessContext processContext)
throws Exception
init in interface stream.StatefulProcessorExceptionpublic void resetState()
throws Exception
resetState in interface stream.StatefulProcessorExceptionCopyright © 2019. All rights reserved.