-
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 #164 from fact-project/singlePulseExtractionImprov…
- Loading branch information
Showing
29 changed files
with
844 additions
and
364 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 |
---|---|---|
|
@@ -13,6 +13,7 @@ docs.idx | |
|
||
#intellij stuff | ||
.idea/ | ||
.project | ||
|
||
out/ | ||
|
||
|
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ language: java | |
sudo: false | ||
script: mvn clean verify | ||
jdk: | ||
- openjdk7 | ||
- oraclejdk8 | ||
|
||
after_script: | ||
|
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
56 changes: 56 additions & 0 deletions
56
examples/studies/singlePeExtractor/singlePeMinimalExample.xml
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,56 @@ | ||
<container> | ||
|
||
<properties url="classpath:/default/settings.properties" /> | ||
|
||
<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="output" value="file:testoutfile.json" /> | ||
|
||
<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" /> | ||
|
||
<!--In case you want to analyze .zfits files.--> | ||
<!-- <stream id="fact" class="fact.io.zfits.ZFitsStream" url="${infile}"/> --> | ||
|
||
<stream id="fact" class="fact.io.FitsStream" url="${infile}"/> | ||
|
||
<process id="2" input="fact"> | ||
<!-- prevEventAndSkip: --> | ||
<!-- PreviousEventInfo, Skip(no Data Trigger) --> | ||
<include url="classpath:/default/data/prevEventAndSkip.xml" /> | ||
<!-- Output: Data --> | ||
|
||
<!-- Calibration: --> | ||
<!-- DrsCalibration, PatchJumpRemoval, RemoveSpikes, | ||
DrsTimeCalibration, ArrayTimeCorrection, InterpolateBadPixel --> | ||
<include url="classpath:/default/data/calibration.xml" /> | ||
<!-- Output: DataCalibrated --> | ||
|
||
<!-- Single Pe Extraction --> | ||
<fact.extraction.SinglePulseExtraction | ||
dataKey="DataCalibrated" | ||
outputKey="PhotonArrivals" | ||
/> | ||
|
||
<!-- Data Time Series Reconstruction from Single Pe Data --> | ||
<fact.utils.ConvertSinglePulses2Timeseries | ||
singlePulsesKey="PhotonArrivals" | ||
baseLineKey="PhotonArrivalsBaseLine" | ||
timeSeriesKey="DataReconstructed" | ||
/> | ||
|
||
<!--<fact.ShowViewer key="DataCalibrated" />--> | ||
|
||
<!--<fact.io.JSONWriter keys="${keysForOutput}"--> | ||
<!--url="${output}"--> | ||
<!--writeListOfItems="True"--> | ||
<!--pixelSetsAsInt="True"--> | ||
<!--/>--> | ||
</process> | ||
</container> |
83 changes: 83 additions & 0 deletions
83
examples/studies/singlePeExtractor/std_analysis_on_reconstructed_data.xml
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,83 @@ | ||
<container> | ||
|
||
<properties url="classpath:/default/settings.properties" /> | ||
|
||
<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="output" value="file:testoutfile.json" /> | ||
|
||
<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" /> | ||
|
||
<!--In case you want to analyze .zfits files.--> | ||
<!-- <stream id="fact" class="fact.io.zfits.ZFitsStream" url="${infile}"/> --> | ||
|
||
<stream id="fact" class="fact.io.FitsStream" url="${infile}"/> | ||
|
||
<process id="2" input="fact"> | ||
<!-- prevEventAndSkip: --> | ||
<!-- PreviousEventInfo, Skip(no Data Trigger) --> | ||
<include url="classpath:/default/data/prevEventAndSkip.xml" /> | ||
<!-- Output: Data --> | ||
|
||
<!-- Calibration: --> | ||
<!-- DrsCalibration, PatchJumpRemoval, RemoveSpikes, | ||
DrsTimeCalibration, ArrayTimeCorrection, InterpolateBadPixel --> | ||
<include url="classpath:/default/data/calibration.xml" /> | ||
<!-- Output: DataCalibrated --> | ||
|
||
<!-- Single Pe Extraction --> | ||
<fact.extraction.SinglePulseExtraction | ||
dataKey="DataCalibrated" | ||
outputKey="PhotonArrivals" | ||
/> | ||
|
||
<!-- Data Time Series Reconstruction from Single Pe Data --> | ||
<fact.utils.ConvertSinglePulses2Timeseries | ||
singlePulsesKey="PhotonArrivals" | ||
baseLineKey="PhotonArrivalsBaseLine" | ||
timeSeriesKey="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 --> | ||
|
||
<!--<fact.ShowViewer key="DataCalibrated" />--> | ||
|
||
<fact.io.JSONWriter keys="${keysForOutput}" | ||
url="${output}" | ||
writeListOfItems="True" | ||
pixelSetsAsInt="True" | ||
/> | ||
</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
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.