-
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.
Merge pull request #128 from slaclab/epix10k_psana1
Epix10k psana1
- Loading branch information
Showing
12 changed files
with
151 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
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,49 @@ | ||
############################################################################## | ||
## 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 range(1, 3): | ||
singlePixelArray.append([i, 10, 10]) | ||
singlePixelArray.append([i, 10, 100]) | ||
singlePixelArray.append([i, 100, 10]) | ||
singlePixelArray.append([i, 100, 100]) | ||
singlePixelArray.append([i, 150, 150]) | ||
singlePixelArray.append([i, 80, 20]) | ||
|
||
singlePixelArray.append([2, 178, 367]) | ||
|
||
experimentHash = { | ||
"detectorType": "epixm", | ||
"exp": "rixx1005922", | ||
# "exp": "rixx1003721", | ||
"location": "RixEndstation", | ||
"analyzedModules": [1, 2], | ||
"seedCut": 40, ## pure guess | ||
"neighborCut": 10, ##pure guess | ||
# "fluxSource": "MfxDg1BmMon", | ||
"fluxSource": "MfxDg2BmMon", | ||
"fluxChannels": [15], | ||
"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/cometPinhole.npy", | ||
"../data/smallRegionFourAsics.npy", | ||
"../data/smallRegionTwoAsicsForBhavna.npy", | ||
], | ||
"regionSlice": np.s_[0:4, 0:192:, 0:384], ## small region near Kaz rec | ||
} |
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,20 @@ | ||
#!/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/rixx1005922/scratch/" | ||
##export OUTPUT_ROOT="/sdf/data/lcls/ds/rix/rixx1005922/results/" | ||
export OUTPUT_ROOT="/sdf/data/lcls/ds/det/detdaq21/results/" | ||
echo "OUTPUT_ROOT = $OUTPUT_ROOT" | ||
|
||
# point to which config file to use | ||
##export SUITE_CONFIG="$git_project_root_dir/config_files/epixMSuiteConfig.py" | ||
export SUITE_CONFIG="$git_project_root_dir/config_files/epix100SuiteConfig.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/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/rixx1005922/scratch/" | ||
##export OUTPUT_ROOT="/sdf/data/lcls/ds/rix/rixx1005922/results/" | ||
export OUTPUT_ROOT="/sdf/data/lcls/ds/det/detdaq21/results/" | ||
echo "OUTPUT_ROOT = $OUTPUT_ROOT" | ||
|
||
# point to which config file to use | ||
##export SUITE_CONFIG="$git_project_root_dir/config_files/epixMSuiteConfig.py" | ||
export SUITE_CONFIG="$git_project_root_dir/config_files/epix10kQuadSuiteConfig.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