Warning, /analysis/tracal/prodscripts/README.md is written in an unsupported language. File is not indexed.
0001 prodscripts - just a couple of basic bash scripts.
0002
0003 ------------------------------------------------------
0004 Usage:
0005
0006 Once you have a local copy,
0007 ```
0008 cd prodscripts
0009 ```
0010 then you can make a file list:
0011 ```
0012 ./makelist_Catalog.bash
0013 ```
0014 this will create and populate a subdirectory called ./LISTS/. The file ./LISTS/catlist_[date].list will be created.
0015
0016 If you want to see what production tags actually have useful
0017 data in them (and which DSTs are there in each one), you can:
0018 ```
0019 ./findprod.bash
0020 ```
0021 This script is keyed on run 53877. if there is a CLUSTERS, SEED, TRACKS, or CALO
0022 DST with some production tag for which rootfiles exist for run 53877, this script
0023 will find the production tags.
0024
0025 Now here's some details on the two scripts.
0026
0027 ------------------------------------------------------
0028
0029 makelist_Catalog.bash - build list of 4-DSTs across all run2pp data for use in FFA
0030 - the latest production tags are used, or you can change what combination of tags you want to use in the user-parameter section near the top of the script.
0031 - loop over QM40 runs list, create 4 separate single-DST-type filelists for DST-types CALO, TRKR_CLUSTER, TRKR_SEED, TRKR_TRACKS
0032 - loop through runs, then each of these 4 filelists, and find matching sets of 4 DST file names (over all runs & segments)
0033 - write these DST filename quartets to ./LISTS/catlist_[date].list. This list can be used directly in condor. Each line of this file has the following format:
0034 ```
0035 0, TRACKS-dst-file-name, SEED-dst-file-name, CLUSTER-dst-file-name, CALO-dst-file-name
0036 ```
0037 ------------------------------------------------------
0038
0039 findprod.bash - find out what productions are available for a given DST-type. Search keyed on run 53877.
0040 - use CreateDstList.pl to list all available production tag names
0041 - loop through all production tags and the 4 DST-types, and call CreateDstList.pl for each tag and type to count the number of segment rootfiles available for run 53877.
0042 - write to the screen the production name, the DST-type, and number of run 53877 segment rootfiles available.
0043
0044 ------------------------------------------------------
0045
0046 Notes:
0047 - the scripts actually use myCreateDstList.pl in repo, which is the same as the library
0048 version except with two fewer printf to the terminal (which aren't needed).
0049 - At present: findprod.bash finds the following productions (the columns are prod tag, dst
0050 type, and number of 53877 segment rootfiles found. Run 53877 has ~2600 tracking segments.
0051 Note that the number of events in DST_CALO is either 5:1 or 10:1 w.r.t. the number of
0052 events in the associated tracking DSTs.
0053 - ana468_2024p012_v001 CALO:TRACKS is 5:1 (525 CALO dsts for 53877)
0054 - ana492_2024p020_v005 CALO:TRACKS is 10:1 (259 CALO dsts for 53877)
0055 - ana502_2024p022_v001 CALO:TRACKS is 10:1 (259 CALO dsts for 53877)
0056
0057 ```
0058 wllope@sphnxuser02 ~/gitwrk/analysis/tracal/prodscripts $ findprod.bash
0059 Starting...
0060 ana464_2024p011_v001 DST_TRKR_CLUSTER 216
0061 ana466_2024p012_v001 DST_TRKR_CLUSTER 2628
0062 ana468_2024p012_v001 DST_CALO 525
0063 ana468_2024p012_v002 DST_TRKR_SEED 2533
0064 ana472_2024p014_v002 DST_TRKR_SEED 1
0065 ana472_2024p014_v003 DST_TRKR_SEED 2517
0066 ana472_2024p016_v001 DST_TRKR_TRACKS 2501
0067 ana473_2024p016_v001 DST_TRKR_SEED 2515
0068 ana475_2024p017_v001 DST_TRKR_TRACKS 2495
0069 ana475_2024p018_v001 DST_TRKR_SEED 2628
0070 ana475_2024p018_v001 DST_TRKR_TRACKS 2628
0071 ana492_2024p020_v005 DST_CALO 259
0072 ana494_2024p021_v001 DST_TRKR_CLUSTER 2628
0073 ana494_2024p021_v001 DST_TRKR_SEED 2628
0074 ana494_2024p021_v001 DST_TRKR_TRACKS 2628
0075 ana495_2024p021_v001 DST_TRKR_TRACKS 2628
0076 ana502_2024p022_v001 DST_CALO 259
0077 new_newcdbtag_v007 DST_CALO 257
0078 ```
0079
0080 ------------------------------------------------------