#include <LArTemperatureCorrectionTool.h>
Classes | |
struct | AllValues |
Public Member Functions | |
LArTemperatureCorrectionTool (std::string filename) | |
AllValues | get_corrections (int run) const |
double | get_correction_barrel (int run) const |
double | get_correction_endcapA (int run) const |
double | get_correction_endcapC (int run) const |
int | get_cache_size () const |
int | get_first_run () const |
int | get_last_run () const |
Public Attributes | |
AllValues | base_temperature |
AllValues | sensitivity_temperature |
Correction on the energy for temperature fluctuations authors: Ruggero Turra 2015
Compute the relative correction to the energy due to temperature fluctuations for barrel / endcap A / C, where endcap = EMEC + HEC. This is not a CP tool, and it should not be used alone. The correction K is run-dependent and should be applied as E -> E (1 + K) on the raw energy (for example on the layer energies). The correction is relative to a reference temperature, different for every partition.
If a run is in the future (with respect to the runs known by the tool) the correction is based on the temperature of the last run. Similarly if it is in the past (but it should not happen).
Temperature values are from oracle, and averaged for every run.
LArTemperatureCorrectionTool::AllValues LArTemperatureCorrectionTool::get_corrections | ( | int | run | ) | const |
correction should be applied on MC as a multiplication: E = E * correction