public class DrsFileService extends Object implements stream.service.Service
Modifier and Type | Class and Description |
---|---|
class |
DrsFileService.CalibrationInfo
A class to hold the calibrations constants needed to apply the infamous drs calibration
to FACT raw data.
|
Modifier and Type | Field and Description |
---|---|
int |
drsStep |
stream.io.SourceURL |
rawDataFolder |
Constructor and Description |
---|
DrsFileService() |
Modifier and Type | Method and Description |
---|---|
DrsFileService.CalibrationInfo |
getCalibrationConstantsForDataItem(stream.Data item)
This method returns the calibration info for the given data item.
|
void |
reset() |
@Parameter(required=true, description="The url pointing to the path containing the FACT raw data in FACTS canonical folder structure.") public stream.io.SourceURL rawDataFolder
@Parameter(required=false, description="The DrsStep to look for, should be 1 or 2.") public int drsStep
public DrsFileService.CalibrationInfo getCalibrationConstantsForDataItem(stream.Data item) throws IOException
item
- a data item with FACT dataIOException
- if no file with drs constant can be found or an error occurs while reading it.Copyright © 2019. All rights reserved.