Warning, /analysis/EMCal-position-dependent-calibration/README.org is written in an unsupported language. File is not indexed.
0001 #+title: EMCal Position Dependent Calibration
0002
0003 * Description
0004 This analysis allows for the recalibration of the cluster energy by specifying the recalibration constant for each position within a sector.
0005
0006 The correction factor is applied inversly. For example, if the energy of a cluster is 3 GeV and the recalibration constant is 0.5, then the recalibrated cluster energy will be 6 GeV.
0007
0008 ** EMCal Geometry
0009 Sector consists of 96 blocks arranged in (4 blocks x 24 blocks). Each block consists of 4 towers arranged in (2 towers x 2 towers). The corrections are to be specified in 8x8 per tower.
0010
0011 * Usage
0012 1) Create a text file that consists of (384x64) recalibration constants.
0013 2) Ensure that $CALIBRATIONROOT is local. This can be done as follows:
0014 #+begin_src sh
0015 cp -r $CALIBRATIONROOT <local path>
0016 export CALIBRATIONROOT=<local path>
0017 #+end_src
0018 Note: ensure that you provide absolute path in specifying <local path>
0019 3) Use [[file:macro/Construct_Recalibs_Files.C][Construct_Recalibs_Files.C]] to generate the xml recalibration file from the text file.
0020 #+begin_src sh
0021 cd macro
0022 mkdir -p $CALIBRATIONROOT/CEMC/PositionRecalibrationFull
0023 root -b -l -q 'Construct_Recalibs_Files("<path/to/textfile>")'
0024 #+end_src
0025 4) You will need to generate a corresponding xml file (required by ecore) by copying the generated xml file and renaming it to begin with "cemc_ecore_recalib_geoparams".
0026 5) Building the libraries can be done as follows:
0027 #+begin_src sh
0028 mkdir -p bin
0029 cd bin
0030 <source>/autogen.sh --prefix=$MYINSTALL
0031 make -j 8
0032 make -j 8 install
0033 #+end_src
0034 Note: you will need to have $MYINSTALL local area set.
0035 6) Include [[file:macro/CEmc_Spacal.C][CEmc_Spacal.C]] in your specific analysis to use the library within your simulation.
0036
0037 * Examples
0038 A sample recalibration text file is provided [[file:example/LO_positiondependent_calibs_phot.txt][LO_positiondependent_calibs_phot.txt]]. Additionally, a sample simulation that uses this library is given in [[file:example/macro/Fun4All_G4_sPHENIX.C][Fun4All_G4_sPHENIX.C]].