Warning, /analysis/EMCal-Hot-Towers/README.org is written in an unsupported language. File is not indexed.
0001 * Generate run list
0002 #+begin_src bash
0003 ./utils.py gen -t <ana-tag> -n <events> -o <output>
0004 #+end_src
0005 By default the <ana-tag> is ana446 which contains the pp dataset. The <events> parameter controls the minimum number of events for a run to be considered and <output> is the location of the directory where the run list is generated.
0006
0007 Example:
0008 #+begin_src bash
0009 ./utils.py gen
0010 #+end_src
0011
0012 Example output:
0013 #+begin_src text
0014 files/ana446
0015 34k ├── runs-ana446-timestamp.list
0016 7.9k ├── runs-ana446.list
0017 14k ├── runs-hot-maps.list
0018 227k └── runs-timestamp.list
0019 #+end_src
0020
0021 - runs-ana446-timestamp.list contains runs that have at least 500k events from ana446 build as well as their start timestamp
0022 - runs-ana446.list contains just run numbers of the above case
0023 - runs-timestamp.list contains all runs with their timestamp (larger sample for future reference), no minimum event requirement
0024
0025 * Analyze Bad Tower Maps from Run List
0026
0027 Process all runs:
0028 #+begin_src bash
0029 root -b -l -q 'macro/HotTowerAnalysis.C("files/ana446/runs-ana446-timestamp.list","hot.root",0)'
0030 #+end_src
0031
0032 Process fixed number of runs (ex: 20) which is useful in testing:
0033 #+begin_src bash
0034 root -b -l -q 'macro/HotTowerAnalysis.C("files/ana446/runs-ana446-timestamp.list","hot.root",0,20)'
0035 #+end_src
0036
0037 * Generate Frequent Bad Tower List
0038
0039 Pass in the `hot.root` file generated from the HotTowerAnalysis.C macro to the genHotTowerList.C macro as follows:
0040 #+begin_src bash
0041 root -b -l -q 'macro/genHotTowerList.C("hot.root")'
0042 #+end_src
0043 This generates hot.list which contains a list of the frequent bad towers and the reference towers.
0044
0045 * Bad Tower Status
0046 - 1: Dead
0047 - 2: Hot
0048 - 3: Cold
0049
0050 * Fun4All Quick Tests
0051
0052 ** After editing Makefile.am
0053 #+begin_src bash
0054 rm -rf build && mkdir build && cd build && ../src/autogen.sh --prefix=$MYINSTALL && cd .. && make install -j8 --directory build && rm bin/Fun4All_CaloHotTower && make && ./bin/Fun4All_CaloHotTower DST_CALOFITTING_run2pp_ana446_2024p007-00053376-00000.root hot.list test.root 5000 2>/dev/null
0055 #+end_src
0056
0057 #+begin_src
0058 rm -rf build && mkdir build && cd build && ../src/autogen.sh --prefix=$MYINSTALL && cd .. && make install -j8 --directory build && root -b -l -q 'macro/Fun4All_CaloHotTower.C("DST_CALOFITTING_run2pp_ana446_2024p007-00053376-00000.root","hot.list","test.root",5000)'
0059 #+end_src
0060
0061 ** After editing .cc or .h
0062 #+begin_src bash
0063 make install -j8 --directory build && rm bin/Fun4All_CaloHotTower && make && ./bin/Fun4All_CaloHotTower DST_CALOFITTING_run2pp_ana446_2024p007-00053376-00000.root hot.list test.root 5000 2>/dev/null
0064 #+end_src
0065
0066 #+begin_src
0067 make install -j8 --directory build && root -b -l -q 'macro/Fun4All_CaloHotTower.C("DST_CALOFITTING_run2pp_ana446_2024p007-00053376-00000.root","hot.list","test.root",5000)'
0068 #+end_src
0069
0070 * Condor Tips
0071
0072 ** Allocate more memory to an idle job
0073 #+begin_src bash
0074 condor_hold -all && condor_qedit <job id> RequestMemory <Memory (MB)> && condor_release -all
0075 #+end_src