forked from cernopendata/data-curation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·44 lines (27 loc) · 1.91 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
40
41
42
43
44
#!/bin/sh
## 1) prepare inputs for EOS file indexes
# simko@aiadm> export EOS_MGM_URL=root://eospublic.cern.ch
# simko@aiadm> mkdir -p inputs/eos-file-indexes
# simko@aiadm> python2 ./code/create_eos_file_indexes.py
# simko@laptop> scp -r [email protected]:/<remote-path>/eos-file-indexes/ ./inputs/eos-file-indexes
## 2) prepare inputs for dataset file and size information
# cernapcms@lxplus> ./code/create-das-json-store.sh
# simko@laptop> sscp -r [email protected]:tibor/data-curation/cms-2011-collision-datasets-runb-update/inputs/das-json-store ./inputs/das-json-store
## 3) prepare inputs for dataset RECO configuration file information
# cernapcms@lxplus> ./code/create-das-json-config-store.sh
# simko@laptop> scp -r [email protected]:tibor/data-curation/cms-2015-collision-datasets/inputs/das-json-config-store ./inputs/das-json-config-store
# simko@laptop> scp -r [email protected]:tibor/data-curation/cms-2015-collision-datasets/inputs/config-store ./inputs/config-store
## 4) create HLT config files and trigger paths
python ./code/create_hlt_config_file_records.py > ./outputs/cms-hlt-configuration-files-2015.json
python ./code/create_hlt_trigger_path_records.py > ./outputs/cms-hlt-trigger-paths-2015.json
## 5) create RECO config files
python ./code/create_reco_config_file_records.py > ./outputs/cms-reco-configuration-files-2015.json
## 6) now you can create collision data
python ./code/create_cms_2015_collision_datasets.py > ./outputs/cms-primary-datasets-Run2015D.json
## 7) prepare trigger information record snippet
python ./code/create_hlt_trigger_information_record.py > ./outputs/cms-trigger-information-2015.json
## 8) check the validity of resulting JSON files
for file in outputs/*.json; do jsonlint -q "$file"; done
## 9) now you can copy outputs to OPENDATA fixtures working directory
#
\cp outputs/*.json ../../opendata.cern.ch/cernopendata/modules/fixtures/data/records