-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates for UHR and incidental archon and non-psana stuff
- Loading branch information
1 parent
0052cf8
commit 94b3c0d
Showing
11 changed files
with
182 additions
and
21 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
############################################################################## | ||
## This file is part of 'SLAC Beamtime Calibration Suite'. | ||
## It is subject to the license terms in the LICENSE.txt file found in the | ||
## top-level directory of this distribution and at: | ||
## https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. | ||
## No part of 'SLAC Beamtime Calibration Suite', including this file, | ||
## may be copied, modified, propagated, or distributed except according to | ||
## the terms contained in the LICENSE.txt file. | ||
############################################################################## | ||
import numpy as np | ||
|
||
# experimentHash = {'exp':'mfxx1005021', 'location':'MfxEndstation', 'fluxSource':'MFX-USR-DIO', 'fluxChannels':[11], 'fluxSign':-1} | ||
# experimentHash = {'exp':'rixc00121', 'location':'RixEndstation', | ||
singlePixelArray = [] | ||
##for i in [0, 2, 3]:##range(0, 3): | ||
for i in [1, 3]: ##range(0, 3): | ||
singlePixelArray.append([i, 55, 10]) | ||
singlePixelArray.append([i, 120, 10]) | ||
singlePixelArray.append([i, 55, 90]) | ||
singlePixelArray.append([i, 120, 90]) | ||
singlePixelArray.append([i, 55, 190]) | ||
singlePixelArray.append([i, 120, 190]) | ||
|
||
experimentHash = { | ||
"detectorType": "epixuhr", | ||
##"detectorVersion": 1, ## new firmware | ||
"exp": "rixx1005922", | ||
"location": "RixEndstation", | ||
"analyzedModules": [0, 1, 2, 3], | ||
"seedCut": 40, ## pure guess | ||
"neighborCut": 10, ##pure guess | ||
"fluxSource": "MfxDg1BmMon", | ||
# "fluxSource": "MfxDg2BmMon", | ||
"fluxChannels": [15], ## or 11 if we see saturation | ||
# "fluxSign": 1, ## for dg2 | ||
"fluxSign": -1, | ||
"singlePixels": singlePixelArray, | ||
# 'ROIs':['module0', 'module2', 'module4', 'module6', 'module10','module12', 'module14'] | ||
# 'ROIs':['roiFromSwitched_e557_rmfxx1005021'] | ||
# 'ROIs':['allHRasicPixels', 'goodboxROI']#'roiAbove7k_raw_r123'] | ||
# "ROIs": ["../data/XavierV4_2", "../data/OffXavierV4_2"], | ||
"ROIs": [ | ||
"../data/fake_UHR_ROI_0.npy", | ||
"../data/fake_UHR_ROI_1.npy", | ||
], | ||
"regionSlice": np.s_[0:4, 0:168:, 0:192] ## whole thing | ||
} |
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,42 @@ | ||
############################################################################## | ||
## This file is part of 'SLAC Beamtime Calibration Suite'. | ||
## It is subject to the license terms in the LICENSE.txt file found in the | ||
## top-level directory of this distribution and at: | ||
## https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. | ||
## No part of 'SLAC Beamtime Calibration Suite', including this file, | ||
## may be copied, modified, propagated, or distributed except according to | ||
## the terms contained in the LICENSE.txt file. | ||
############################################################################## | ||
import numpy as np | ||
|
||
singlePixelArray = [] | ||
for i in [0]: ##range(0, 3): | ||
singlePixelArray.append([0, 66, 66]) | ||
singlePixelArray.append([0, 6, 6]) | ||
singlePixelArray.append([0, 55, 200]) | ||
singlePixelArray.append([0, 120, 200]) | ||
singlePixelArray.append([0, 55, 300]) | ||
singlePixelArray.append([0, 120, 300]) | ||
|
||
experimentHash = { | ||
"detectorType": "epixm", | ||
"detectorVersion": 1, ## new firmware | ||
"exp": "rixx1005922", | ||
"location": "RixEndstation", | ||
"location": "ascLab", | ||
"analyzedModules": [0], | ||
"seedCut": 40, ## pure guess | ||
"neighborCut": 10, ##pure guess | ||
##"fluxSource": "MfxDg1BmMon", | ||
# "fluxSource": "MfxDg2BmMon", | ||
"fluxChannels": [15], ## or 11 if we see saturation | ||
# "fluxSign": 1, ## for dg2 | ||
"fluxSign": -1, | ||
"singlePixels": singlePixelArray, | ||
# 'ROIs':['module0', 'module2', 'module4', 'module6', 'module10','module12', 'module14'] | ||
# 'ROIs':['roiFromSwitched_e557_rmfxx1005021'] | ||
# 'ROIs':['allHRasicPixels', 'goodboxROI']#'roiAbove7k_raw_r123'] | ||
# "ROIs": ["../data/XavierV4_2", "../data/OffXavierV4_2"], | ||
"ROIs": ["../data/square9_0_epixM_roi.npy", "../data/square9_1_epixM_roi.npy"], | ||
"regionSlice": np.s_[0:1, 0:192:, 0:384], ## small region near Kaz rec | ||
} |
Binary file not shown.
Binary file not shown.
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,17 @@ | ||
#!/bin/bash | ||
# Setup environment variables | ||
|
||
|
||
# current_dir=$(pwd) | ||
git_project_root_dir=$(git rev-parse --show-toplevel) | ||
# so scripts can find the calibrationSuite library code | ||
export PYTHONPATH="$PYTHONPATH:$git_project_root_dir" | ||
echo "PYTHONPATH = $PYTHONPATH" | ||
|
||
# so output folders are written in a shared location | ||
export OUTPUT_ROOT="/sdf/data/lcls/ds/rix/rixx1017523/results/philiph/" | ||
echo "OUTPUT_ROOT = $OUTPUT_ROOT" | ||
|
||
# point to which config file to use | ||
export SUITE_CONFIG="$git_project_root_dir/config_files/archonSuiteConfig.py" | ||
echo "SUITE_CONFIG = $SUITE_CONFIG" |
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