-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:sarahgaiser/hps-mc into new_molle…
…r_generator
- Loading branch information
Showing
32 changed files
with
660,556 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[HPSTR] | ||
hpstr_install_dir = /work/hallb/hps/bravo/sw/hpstr/install | ||
hpstr_base = /work/hallb/hps/bravo/sw/hpstr | ||
|
||
[EvioToLcio] | ||
hps_java_bin_jar = /work/hallb/hps/bravo/sw/hps-java/distribution/target/hps-distribution-5.2.2-SNAPSHOT-bin.jar | ||
java_args = -Xmx1g -XX:+UseSerialGC | ||
|
||
[Job] | ||
dry_run = False | ||
check_output_files = False | ||
enable_copy_output_files = False | ||
enable_file_chaining = True | ||
delete_rundir = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Data conversion/reco -- evio to lcio {#ana1921pass0} | ||
=============================== | ||
|
||
This is the job configuration used for pass1 of the 2021 data. | ||
hps2021goldRuns.csv is from the [run spreadsheets](https://wiki.jlab.org/hps-run/index.php/The_HPS_Run_Wiki). | ||
build2021filenames.py reads these csv files and produce a txt file with full path to each file selected via glob. | ||
|
||
The configuration for all the jobs to be submitted is generated via mkjobs.sh, which | ||
utilizes the .tmpl files as a template for all the jobs. | ||
|
||
The configuration for the jobs to be run are in jobs2021.json, where for | ||
instance you can find the output location for the files, the hps-java steering file, etc. | ||
These files are in a human readable format. | ||
|
||
The jobs are submitted to the swif2 system at jlab via run_swif2.sh | ||
The specfic location of the installations used are configured in .hpsmc | ||
hpstr master branch at commit 4cb8342 was used | ||
|
||
Using hps-java master at commit 2771eb8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import ROOT as r | ||
import os | ||
import glob | ||
|
||
myT = r.TTree("myT","myT") | ||
myT.ReadFile("hps2021goldRuns.csv") | ||
nPartsTot = 0 | ||
|
||
outF = open('run2021pass0.txt','w') | ||
|
||
for run in myT: | ||
nfiles = run.evio_files_count | ||
RN = run.number | ||
fullpath = f'/mss/hallb/hps/physrun2021/data/hps_0{RN}/hps_0{RN}.evio.00000' | ||
pin = "" | ||
if not os.path.isfile(fullpath): | ||
pin = "pin" | ||
fullpath = f'/mss/hallb/hps/physrun2021/data/hpspin_0{RN}/hpspin_0{RN}.evio.00000' | ||
print("") | ||
print("Run number: ", RN) | ||
print("N partitions: ", nfiles) | ||
passList = glob.glob(f'/mss/hallb/hps/physrun2021/data/hps{pin}_0{RN}/hps{pin}_0{RN}.evio.0[1230]03[1234567890]') | ||
print(passList) | ||
print(len(passList)) | ||
nPartsTot += len(passList) | ||
for fileLine in passList: | ||
outF.write(fileLine+'\n') | ||
pass | ||
pass | ||
|
||
outF.close() | ||
print("Total parts in pass: ", nPartsTot) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rm -rf output scratch &> /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[HPSTR] | ||
hpstr_install_dir = /work/hallb/hps/bravo/sw/hpstr/install | ||
hpstr_base = /work/hallb/hps/bravo/sw/hpstr | ||
|
||
[EvioToLcio] | ||
hps_java_bin_jar = /work/hallb/hps/bravo/sw/hps-java/distribution/target/hps-distribution-5.2.2-SNAPSHOT-bin.jar | ||
java_args = -Xmx1g -XX:+UseSerialGC | ||
|
||
[Job] | ||
dry_run = False | ||
check_output_files = False | ||
enable_copy_output_files = False | ||
enable_file_chaining = True | ||
delete_rundir = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Data conversion/reco -- evio to lcio {#ana1921pass0} | ||
=============================== | ||
|
||
This is the job configuration used for pass1 of the 2021 data. | ||
hps2021goldRuns.csv is from the [run spreadsheets](https://wiki.jlab.org/hps-run/index.php/The_HPS_Run_Wiki). | ||
build2021filenames.py reads these csv files and produce a txt file with full path to each file selected via glob. | ||
|
||
The configuration for all the jobs to be submitted is generated via mkjobs.sh, which | ||
utilizes the .tmpl files as a template for all the jobs. | ||
|
||
The configuration for the jobs to be run are in jobs2021.json, where for | ||
instance you can find the output location for the files, the hps-java steering file, etc. | ||
These files are in a human readable format. | ||
|
||
The jobs are submitted to the swif2 system at jlab via run_swif2.sh | ||
The specfic location of the installations used are configured in .hpsmc | ||
hpstr master branch at commit 4cb8342 was used | ||
|
||
Using hps-java master at commit 2771eb8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import ROOT as r | ||
import os | ||
import glob | ||
|
||
myT = r.TTree("myT","myT") | ||
myT.ReadFile("hps2021goldRuns.csv") | ||
nPartsTot = 0 | ||
|
||
outF = open('run2021pass1bfee.txt','w') | ||
|
||
for run in myT: | ||
nfiles = run.evio_files_count | ||
RN = run.number | ||
fullpath = f'/mss/hallb/hps/physrun2021/data/hps_0{RN}/hps_0{RN}.evio.00000' | ||
pin = "" | ||
if not os.path.isfile(fullpath): | ||
pin = "pin" | ||
fullpath = f'/mss/hallb/hps/physrun2021/data/hpspin_0{RN}/hpspin_0{RN}.evio.00000' | ||
print("") | ||
print("Run number: ", RN) | ||
print("N partitions: ", nfiles) | ||
passList = glob.glob(f'/mss/hallb/hps/physrun2021/production/evio-skims/fee/0{RN}/hps_fee_*') | ||
print(passList) | ||
print(len(passList)) | ||
nPartsTot += len(passList) | ||
for fileLine in passList: | ||
outF.write(fileLine+'\n') | ||
pass | ||
pass | ||
|
||
outF.close() | ||
print("Total parts in pass: ", nPartsTot) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rm -rf output scratch &> /dev/null |
Oops, something went wrong.