- Set up CMS Connect account: https://connect.uscms.org/
- Log in to CMS connect and download files:
wget https://gist.githubusercontent.com/kpedro88/effc271a43d0dfbd7b6e960b35d663d1/raw/testT1eos.sh wget https://gist.githubusercontent.com/kpedro88/effc271a43d0dfbd7b6e960b35d663d1/raw/testT1eos.jdl chmod +x testT1eos.sh
- Edit JDL file to change input file to an EOS file whose accessibility you want to test
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
#!/bin/bash -e | |
# check for CMSSW environment | |
if [ -z "$CMSSW_BASE" ]; then | |
echo '$CMSSW_BASE not set' | |
exit 1 | |
fi | |
# check for python3 in actual CMSSW area | |
if ! (cd $CMSSW_BASE && scram tool info python3 >& /dev/null); then |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/bin/bash | |
TOOLS=( | |
pythia8 \ | |
evtgen \ | |
tauolapp \ | |
# madgraph5amcatnlo \ | |
) | |
TOOLFILE_LIST="" | |
for TOOL in ${TOOLS[@]}; do |
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
#!/bin/bash | |
TOOLS=$CMSSW_BASE/config/toolbox/slc7_amd64_gcc700/tools/selected | |
GIST=fee1e6d1ff5b9e4ee96c4ac1203c23d4 | |
mkdir $CMSSW_BASE/rootfix | |
cd $CMSSW_BASE/rootfix | |
lndir $ROOTSYS | |
cp ${TOOLS}/root_interface.xml root_interface.xml.orig | |
git clone https://gist.github.com/fee1e6d1ff5b9e4ee96c4ac1203c23d4.git | |
cp -f ${GIST}/libTMVA.so lib/ |
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
import sys,json,uuid | |
from collections import defaultdict | |
# keep lists on single line when json dumps w/ pretty settings | |
# from https://stackoverflow.com/questions/58736826/format-some-json-object-with-certain-fields-on-one-line | |
def replace(o): | |
if isinstance(o, dict): | |
replacements = [] | |
result = {} | |
for key,val in o.iteritems(): |
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
universe = vanilla | |
Executable = testSingularity.sh | |
+REQUIRED_OS = "rhel7" | |
+DesiredOS = REQUIRED_OS | |
request_cpus = 1 | |
Should_Transfer_Files = YES | |
WhenToTransferOutput = ON_EXIT_OR_EVICT | |
Transfer_Input_Files = testSingularity.sh | |
Output = testSingularity_$(Process)_$(Cluster).stdout | |
Error = testSingularity_$(Process)_$(Cluster).stderr |
- Set up CMS Connect account: https://connect.uscms.org/
- Log in to CMS connect and download files:
wget https://gist.githubusercontent.com/kpedro88/dd5c8a43b1aafbfc7e5953d327be40e0/raw/testT1.sh wget https://gist.githubusercontent.com/kpedro88/dd5c8a43b1aafbfc7e5953d327be40e0/raw/testT1.jdl chmod +x testT1.sh
- Edit JDL file to change output directory in arguments to an EOS area where you have write permission
-
First notes:
- do not have a CMSSW environment activated
- use a regular user (non-root/superuser) account
- typically requires at least a few GB of disk space
- depending on what's in your login file etc., may need to do:
unset PYTHONPATH
-
Get environment variables for CMSSW master branch with production architecture:
CMSSW_8_0_X
cannot use the htcondor python bindings as installed using the system python in RHEL7 operating systems.
There is a method to install and use (automatically) the correct versions of the bindings.
This can enable e.g. the use of manageJobs.py
from CondorProduction.
This method depends on scram-pip
from lpc-scripts, which is available on cvmfs at /cvmfs/cms-lpc.opensciencegrid.org/FNALLPC/lpc-scripts/scram-pip
.
Assuming you are in a CMSSW_8_0_X
release area and have already done cmsenv
, execute these bash commands:
HOME=$CMSSW_BASE python -m ensurepip --user
scram-pip -d $CMSSW_BASE/.local
NewerOlder