-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a new minimal viewer which only performs the calibration steps …
…and don't use the calibration.xml in the classpath, so that it can easly be changed, see issue #117 for more details
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<container> | ||
<properties url="classpath:/default/settings.properties" /> | ||
<!-- Pathes to the input files --> | ||
<property name="infile" value="file:src/main/resources/testDataFile.fits.gz" /> | ||
<property name="drsfile" value="file:src/main/resources/testDrsFile.drs.fits.gz" /> | ||
<property name="integralGainFile" value="classpath:/default/gain_sorted_20131127.csv" /> | ||
<property name="pixelDelayFile" value="classpath:/default/delays_lightpulser_20150217.csv" /> | ||
<property name="auxFolder" value="file:src/main/resources/aux/" /> | ||
|
||
<service id="auxService" class="fact.auxservice.AuxFileService" auxFolder="${auxFolder}" /> | ||
<service id="calibService" class="fact.calibrationservice.ConstantCalibService" /> | ||
|
||
<stream id="fact" class="fact.io.zfits.ZFitsStream" url="${infile}"/> | ||
|
||
<!-- Description of the process and the corresponding stream --> | ||
<process id="2" input="fact"> | ||
|
||
<fact.utils.PreviousEventInfo startCellKey="StartCellData" outputKey="prevEvents" limitEvents="10" /> | ||
|
||
<fact.datacorrection.DrsCalibration | ||
url="${drsfile}" | ||
key="Data" | ||
outputKey="DataCalibrated" | ||
/> | ||
<fact.datacorrection.PatchJumpRemoval | ||
dataKey="DataCalibrated" | ||
outputKey="DataJumpsRemoved" | ||
prevEventsKey="prevEvents" | ||
startCellKey="StartCellData" | ||
jumpLimit="${patchJumpRemoval_jumpLimit}" | ||
/> | ||
<fact.datacorrection.RemoveSpikes | ||
dataKey="DataJumpsRemoved" | ||
outputKey="DataSpikesRemoved" | ||
startCellKey="StartCellData" | ||
leftBorder="${removeSpikes_leftBorder}" | ||
spikeLimit="${removeSpikes_spikeLimit}" | ||
topSlopeLimit="${removeSpikes_topSlopeLimit}" | ||
maxSpikeLength="${removeSpikes_maxSpikeLength}" | ||
/> | ||
<fact.filter.DrsTimeCalibration | ||
outputKey="timeCalibConst" | ||
/> | ||
<fact.filter.ArrayTimeCorrection | ||
dataKey="DataSpikesRemoved" | ||
timeCalibConstKey="timeCalibConst" | ||
outputKey="DataTimeCorrected" | ||
/> | ||
<fact.datacorrection.InterpolateTimeSeries | ||
calibService="calibService" | ||
dataKey="DataTimeCorrected" | ||
dataOutputKey="DataInterpolated" | ||
/> | ||
|
||
|
||
<fact.ShowViewer key="DataInterpolated" /> | ||
</process> | ||
</container> |