-
Notifications
You must be signed in to change notification settings - Fork 22
/
run.sh
executable file
·39 lines (30 loc) · 1.73 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
36
37
38
39
#!/bin/sh
## 1) create EOS file indexes:
#
# simko@aiadm> export EOS_MGM_URL=root://eospublic.cern.ch
# simko@aiadm> mkdir -p inputs/eos-file-indexes
# simko@aiadm> python ./code/create_eos_file_indexes.py
# simko@laptop> scp -r simko@lxplus-cloud.cern.ch:/<remote-path>/eos-file-indexes/ ./inputs/eos-file-indexes
## 2) prepare inputs
#
# populate inputs/das-json-store/*.json by running code/create-das-json-store.sh as CERNAPCMS on LXPLUS
#
# cernapcms@lxplus> ./code/create-das-json-store.sh
# simko@laptop> sscp -r cernapcms@lxplus.cern.ch:tibor/data-curation/cms-2011-collision-datasets-runb-update/inputs/das-json-store ./inputs/das-json-store
#
# populate inputs/das-json-config-store/*.json and inputs/config-store by running code/create-das-json-config-store.sh as CERNAPCMS on LXPLUS
# cernapcms@lxplus> ./code/create-das-json-config-store.sh
# simko@laptop> sscp -r cernapcms@lxplus.cern.ch:tibor/data-curation/cms-2011-collision-datasets-runb-update/inputs/das-json-config-store ./inputs/das-json-config-store
# simko@laptop> sscp -r cernapcms@lxplus.cern.ch:tibor/data-curation/cms-2011-collision-datasets-runb-update/inputs/config-store ./inputs/config-store
#
# $ wget -O inputs/fwyzard-hlt-2011-dataset.txt https://fwyzard.web.cern.ch/fwyzard/hlt/2011/dataset
## 3) compare RECO files to verify that we don't need to create any:
#
# ./code/compare-2011A-2011b-config-files.sh
## 5) now you can create collision data
mkdir -p outputs
python ./code/create_dataset_records.py > ./outputs/cms-primary-datasets-Run2011B.json
## 6) check the validity of resulting JSON files
jsonlint -q ./outputs/*.json
## 7) now you can copy them to COD3 fixtures working directory
\cp outputs/*.json ../../opendata.cern.ch/cernopendata/modules/fixtures/data/records