forked from cernopendata/data-curation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·35 lines (26 loc) · 1.69 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
## 1) create EOS file indexes:
#
# simko@lxplus8> export EOS_MGM_URL=root://eospublic.cern.ch
# simko@lxplus8> mkdir -p inputs/eos-file-indexes
# simko@lxplus8> python2 ./code/create_eos_file_indexes.py
# simko@laptop> rsync -av [email protected]:/<remote-path>/inputs/eos-file-indexes/ ./inputs/eos-file-indexes
## 2) populate inputs/das-json-store/*.json by running code/create-das-json-store.sh as CERNAPCMS on lxplus8
#
# cernapcms@lxplus8> ./code/create-das-json-store.sh
# simko@laptop> rsync -av [email protected]:tibor/data-curation/cms-2013-collision-datasets-hi/inputs/das-json-store/ ./inputs/das-json-store
## 3) populate inputs/das-json-config-store/*.json by running code/create-das-json-config-store.sh as CERNAPCMS on lxplus8
#
# cernapcms@lxplus8> ./code/create-das-json-config-store.sh
# simko@laptop> rsync -av [email protected]:tibor/data-curation/cms-2013-collision-datasets-hi/inputs/das-json-config-store/ ./inputs/das-json-config-store
# simko@laptop> rsync -av [email protected]:tibor/data-curation/cms-2013-collision-datasets-hi/inputs/config-store/ ./inputs/config-store
## 4) create HLT trigger path records
mkdir -p outputs
# commented out because HLT triggers are handled by `cms-2013-hlt-triggers` for this batch
#python ./code/create_hlt_trigger_path_records.py > ./outputs/cms-hlt-trigger-paths-HIRun2013A.json
## 5) create collision data records
python ./code/create_dataset_records.py > ./outputs/cms-primary-datasets-HIRun2013A.json
## 6) check the validity of resulting JSON files
jsonlint -q ./outputs/*.json
## 7) copy them to CERN Open Data fixtures directory
\cp outputs/*.json ../../opendata.cern.ch/cernopendata/modules/fixtures/data/records