forked from osWW-VBS/nanoAOD_vvVBS
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BugFix: Condor resubmit script is adapted as per the changes made for…
- Loading branch information
Showing
5 changed files
with
63 additions
and
37 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 |
---|---|---|
|
@@ -170,3 +170,5 @@ br.sm2 | |
*linkdef.h | ||
JHUGenMELA/ | ||
cutFlow.json | ||
yaml-cpp/ | ||
nanoAOD_skim.wiki/ |
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,28 @@ | ||
#!/bin/bash | ||
|
||
# Update LD_LIBRARY_PATH for JHUGenMELA | ||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CMSSW_BASE/src/PhysicsTools/NanoAODTools/python/postprocessing/analysis/nanoAOD_skim/JHUGenMELA/MELA/data/el9_amd64_gcc12 | ||
|
||
# Initialize a new proxy with the desired validity | ||
voms-proxy-init --voms cms --valid 168:00 | ||
|
||
if [ $? -eq 0 ]; then | ||
echo "Proxy successfully created." | ||
|
||
# Check if the proxy is created in /tmp | ||
PROXY_PATH=$(voms-proxy-info --path) | ||
|
||
if [[ $PROXY_PATH == /tmp/* ]]; then | ||
echo "Proxy is located in /tmp, moving it to home directory..." | ||
echo "cp $PROXY_PATH ~/" | ||
cp $PROXY_PATH ~/ | ||
echo "export X509_USER_PROXY=~/$(basename $PROXY_PATH)" | ||
export X509_USER_PROXY=~/$(basename $PROXY_PATH) | ||
echo "Proxy moved to home directory and X509_USER_PROXY set to $X509_USER_PROXY" | ||
else | ||
echo "Proxy is not in /tmp, no need to move it." | ||
fi | ||
else | ||
echo "Failed to create the proxy." | ||
exit 1 | ||
fi |
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