MCDB automatic uploading client - Perl script to upload and describe event samples in MCDB automatically
This script is the client for automatic uploading of LHEF MadGraph and LHEF/HepML samples to MCDB. The MCDB article creates automatically from the LHEF header of the first uploaded file (MadGraph header works fine, HepML header is in progress). This client provides main functionality for four different tasks:
Upload LHEF MadGraph/HepML samples and describe it in the new MCDB article, sample description creates automatically from the header of the first sample. The samples upload directly to CASTOR via SRM access.
Upload additional samples to the exist MCDB article and do not change the description. It is possible to upload all kind of files with this option, not only LHEF samples.
Replace the description of the samples in the exist MCDB article and upload new files
Describe LHEF sample in new article, but do not upload any file.
Authorization for MCDB and CASTOR uploading is performing by grid-proxy-init with exist LCG DN of MCDB author (This particular LCG DN have to be registered as an MCDB author before the uploading). For the last option several additional authorization methods are available (without uploading of any file, only describe automatically the sample in new article). Identification of the article in MCDB has been realized with two options. The first option is Article ID and the second option is Data Set Name. Additional information is available with -h (short help) and --help (long help) options of this client.
In additional to the uploading client script, we provide standalone script to test compatibility of the header of your
MadGraph sample with the parser on MCDB server side. You can run tester script on your local computer: ./test_mg.pl
MadGraph_events.lhe and see the set of the parameters which the parser has extracted from the static MadGraph header
of LHEF file. Currently, we support MadGraph 4.1 and 4.2 formats. Let us remind, if the header format is not supported on
MCDB side, you still able to upload the sample automatically to the exist article (option -uploadonly) but not
automatically document it. The tester script is available here: test_mg.pl for MadGraph header and development version for HepML header test_hepml.pl.
Latest upload2mcdb.pl version is available for download:
libhepml - library to write, read or modify HepML header in LHEF
Provides a way to write HepML header by means of simple API.
HepML header can be easily formed by calling of just a few functions from libhepml API.
Installation instructions and
use examples are in the distribution archive.
Latest libhepml version is available for download.
If you need previous versions you can get it here.