Dear Shen,
we have been experimenting with a job submission tool a little bit in the past, but as you can see in our issue tracker, we don’t have a good solution available yet: https://gitlab.cern.ch/allpix-squared/allpix-squared/-/issues/100
May I ask what exactly you mean with analysing the ROOT file in HTCondor?
It is possible to run Allpix Squared jobs on HTCondor, but it doesn’t fully seem like what you would like to do, because then you would still have the rather large ROOT file.
In order to run Allpix Squared on HTCondor, what I do is the following:
Prepare a script, e.g. runAllpixSquared.sh. In this script the actual call to Allpix Squared is placed, e.g.
#!/bin/bash
echo "Starting job on " `date` #Date/time of start of job
echo "Running on: `uname -a`" #Condor job is running on this node
echo "System software: `cat /etc/redhat-release`" #Operating System on that node
source /cvmfs/clicdp.cern.ch/software/allpix-squared/latest/x86_64-centos7-gcc8-opt/setup.sh
echo "Which ap2: `which allpix`"
echo "Directory: `pwd`"
echo "These are the run options: $@"
allpix -c /path/to/allpix/squared/examples/example.conf $@
echo "Done."
In addition, a file like condorParameters.cfg is recommended:
Executable = runAllpixSquared.sh
Requirements = (OpSysAndVer == "CentOS7")
transfer_output_files = output/histo.root
output = condor_job_$(cluster).out
log = jobsub.log
queue
Not all of the parameters are required. You can extend this file with more parameters (see https://batchdocs.web.cern.ch/local/submit.html)
Finally, submit a job with a command like this:
condor_submit -batch-name "allpix_job" arguments="-o root_file=histo.root" condorParameters.cfg
I hope I could help you with these explanations and hints - let me know if you have further questions.
Cheers
Paul
EDIT: My apologies, lxplus works a bit differently than our DESY based grid, so there seems to be an issue. I’ll come back to you with a solution.
EDIT2: I updated the instructions above. Changes are: Providing the absolute filename to the config file in the run script and explcitly stating the name of the file to be transferred back in condorParameters.cfg.