-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 #43020 from mmusich/dev_SiPixelFEDChannelContainer…
…MapWeigthed SiPixel Payload Inspector: introduce utility to display probability-weighted `SiPixelFEDChannelContainer` contents
- Loading branch information
Showing
3 changed files
with
286 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
49 changes: 49 additions & 0 deletions
49
CondCore/SiPixelPlugins/test/testSiPixelFEDChannelContainer.sh
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 @@ | ||
#!/bin/bash | ||
# Save current working dir so img can be outputted there later | ||
W_DIR=$(pwd); | ||
source /afs/cern.ch/cms/cmsset_default.sh; | ||
eval `scram run -sh`; | ||
# Go back to original working directory | ||
cd $W_DIR; | ||
# Run get payload data script | ||
if [ -d $W_DIR/plots_FEDChannelContainer ]; then | ||
rm -fr $W_DIR/plots_FEDChannelContainer | ||
fi | ||
|
||
mkdir $W_DIR/plots_FEDChannelContainer | ||
|
||
getPayloadData.py \ | ||
--plugin pluginSiPixelFEDChannelContainer_PayloadInspector \ | ||
--plot plot_SiPixelBPixFEDChannelContainerMap \ | ||
--tag SiPixelStatusScenarios_StuckTBM_2023_v1_mc \ | ||
--input_params '{"Scenarios": "370097_302"}' \ | ||
--time_type Run \ | ||
--iovs '{"start_iov": "1", "end_iov": "1"}' \ | ||
--db Prod \ | ||
--test ; | ||
|
||
mv *.png $W_DIR/plots_FEDChannelContainer/SiPixelBPixFEDChannelContainerMap.png | ||
|
||
getPayloadData.py \ | ||
--plugin pluginSiPixelFEDChannelContainer_PayloadInspector \ | ||
--plot plot_SiPixelBPixFEDChannelContainerWeightedMap \ | ||
--tag SiPixelStatusScenarios_StuckTBMandOther_2023_v2_mc \ | ||
--input_params '{"SiPixelQualityProbabilitiesTag": "SiPixelQualityProbabilities_2023_v2_mc"}' \ | ||
--time_type Run \ | ||
--iovs '{"start_iov": "1", "end_iov": "1"}' \ | ||
--db Prod \ | ||
--test ; | ||
|
||
mv *.png $W_DIR/plots_FEDChannelContainer/SiPixelFEDChannelContainerMapWeigthed.png | ||
|
||
getPayloadData.py \ | ||
--plugin pluginSiPixelFEDChannelContainer_PayloadInspector \ | ||
--plot plot_SiPixelBPixFEDChannelContainerWeightedMap \ | ||
--tag SiPixelStatusScenarios_StuckTBM_2023_v1_mc \ | ||
--input_params '{"SiPixelQualityProbabilitiesTag": "SiPixelQualityProbabilities_2023_for_eGamma_v1_mc"}' \ | ||
--time_type Run \ | ||
--iovs '{"start_iov": "1", "end_iov": "1"}' \ | ||
--db Prod \ | ||
--test ; | ||
|
||
mv *.png $W_DIR/plots_FEDChannelContainer/SiPixelFEDChannelContainerMapWeigthed_v2.png |
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