-
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.
Merge pull request #129 from fact-project/fixSourceTrafo
Merge fixSourceTrafo in Master, new Version 0.14.0
- Loading branch information
Showing
6 changed files
with
305 additions
and
223 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
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,98 @@ | ||
<container> | ||
<!-- | ||
This Process contains the standard analysis for FACT, with modifications to be used with the SGE/TORQUE cluster | ||
execution tool ERNA (Easy RuN Access) https://github.com/fact-project/erna | ||
--> | ||
<properties url="classpath:/default/settings.properties" /> | ||
|
||
<property name="db" value="file:./2015.sqlite" /> | ||
|
||
<property name="integralGainFile" value="classpath:/default/gain_sorted_20131127.csv" /> | ||
<property name="pixelDelayFile" value="classpath:/default/delays_lightpulser_20150217.csv" /> | ||
|
||
<service id="auxService" class="fact.auxservice.SqliteService" url="${db}" /> | ||
<service id="calibService" class="fact.calibrationservice.ConstantCalibService" /> | ||
|
||
<!-- Has to be a FactFileListMultiStream in order to work on tasks from gridmap and the executor script.--> | ||
<stream id="fact" class="fact.io.FactFileListMultiStream" url="${input}"> | ||
<stream class="fact.io.zfits.ZFitsStream" id="_" /> | ||
</stream> | ||
|
||
<process id="1" input="fact"> | ||
<!-- prevEventAndSkip: --> | ||
<!-- PreviousEventInfo, Skip(no Data Trigger) --> | ||
<include url="classpath:/default/data/prevEventAndSkip.xml" /> | ||
<!-- Output: Data --> | ||
|
||
<!-- Calibration: --> | ||
<fact.datacorrection.DrsCalibration | ||
key="Data" | ||
outputKey="DataCalibrated" | ||
/> | ||
<fact.datacorrection.PatchJumpRemoval | ||
dataKey="DataCalibrated" | ||
outputKey="DataCalibrated" | ||
prevEventsKey="prevEvents" | ||
startCellKey="StartCellData" | ||
jumpLimit="${patchJumpRemoval_jumpLimit}" | ||
/> | ||
<fact.datacorrection.RemoveSpikes | ||
dataKey="DataCalibrated" | ||
outputKey="DataCalibrated" | ||
startCellKey="StartCellData" | ||
leftBorder="${removeSpikes_leftBorder}" | ||
spikeLimit="${removeSpikes_spikeLimit}" | ||
topSlopeLimit="${removeSpikes_topSlopeLimit}" | ||
maxSpikeLength="${removeSpikes_maxSpikeLength}" | ||
/> | ||
<fact.filter.DrsTimeCalibration | ||
outputKey="timeCalibConst" | ||
/> | ||
<fact.filter.ArrayTimeCorrection | ||
dataKey="DataCalibrated" | ||
timeCalibConstKey="timeCalibConst" | ||
outputKey="DataCalibrated" | ||
/> | ||
<fact.datacorrection.InterpolateTimeSeries | ||
calibService="calibService" | ||
dataKey="DataCalibrated" | ||
dataOutputKey="DataCalibrated" | ||
/> | ||
|
||
<!-- Extraction --> | ||
<!-- BasicExtraction, RisingEdgeForPositions, RisingEdgePolynomFit, TimeOverThreshold, | ||
PhotonChargeTimeOverThreshold, HandleSaturation, CorrectPixelDelays--> | ||
<include url="classpath:/default/data/extraction.xml" /> | ||
<!-- Output: photoncharge, arrivalTime --> | ||
|
||
<!-- Cleaning --> | ||
<!-- SourcePosition(Cetatauri), CoreNeighborCleanTimeNeighbor--> | ||
<include url="classpath:/default/data/cleaning.xml" /> | ||
<!-- Output: shower --> | ||
|
||
<!-- Parameter calculation (only source independent) --> | ||
<!-- ArrayMean(photoncharge,arrivalTime), ArrayStatistics(photoncharge,arrivalTime,maxSlopes, | ||
arrivalTimePos,maxSlopesPos,maxAmplitudePosition,photonchargeSaturated,arrivalTimeTOT), | ||
Size, DistributionFromShower, M3Long, Length, Width, NumberOfIslands, TimeGraident, | ||
Concentration, ConcentrationCore, ConcentrationAtCenterOfGravity, Leakage, TimeSpread, | ||
ShowerSlope, Disp --> | ||
<include url="classpath:/default/data/parameterCalc.xml" /> | ||
<!-- Output: source independent parameters --> | ||
|
||
<!-- Parameter calculation (only source dependent) --> | ||
<!-- SourcePosition(${sourcename}), AntiSourcePosition(5), Alpha(for 6 Sources), | ||
Distance(for 6 Sources), CosDeltaAlpha(for 6 Sources), Theta(for 6 Sources) --> | ||
<include url="classpath:/default/data/sourceParameter.xml" /> | ||
<!-- Output: source dependent parameters --> | ||
|
||
<!-- its important that you output a valid json file for this to work in conjuction with gridmap --> | ||
<fact.io.JSONWriter keys="${keysForOutput}" | ||
url="${output}" | ||
writeListOfItems="True" | ||
specialDoubleValuesAsString="True" | ||
pixelSetsAsInt="True" | ||
/> | ||
<!-- <PrintData/> --> | ||
<!-- <fact.io.PrintKeysOnConsole keys="${keysForOutput}" /> --> | ||
</process> | ||
</container> |
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
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
Oops, something went wrong.