ATLAS Offline Software
|
Correction on the energy for temperature fluctuations authors: Ruggero Turra 2015. More...
#include <LArTemperatureCorrectionTool.h>
Classes | |
struct | AllValues |
Public Member Functions | |
LArTemperatureCorrectionTool (const std::string &filename) | |
AllValues | get_corrections (int run) |
correction should be applied on MC as a multiplication: E = E * correction More... | |
double | get_correction_barrel (int run) |
double | get_correction_endcapA (int run) |
double | get_correction_endcapC (int run) |
int | get_cache_size () const |
int | get_first_run () const |
int | get_last_run () const |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Public Attributes | |
AllValues | base_temperature {} |
AllValues | sensitivity_temperature {} |
Private Member Functions | |
AllValues | search_temperature (int run) |
AllValues | search_correction (int run) |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
std::unique_ptr< TFile > | m_file |
TTree * | m_tree |
std::map< int, AllValues > | m_cache |
int | m_first_run |
int | m_last_run |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
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.
Definition at line 33 of file LArTemperatureCorrectionTool.h.
LArTemperatureCorrectionTool::LArTemperatureCorrectionTool | ( | const std::string & | filename | ) |
Definition at line 19 of file LArTemperatureCorrectionTool.cxx.
|
inline |
Definition at line 51 of file LArTemperatureCorrectionTool.h.
|
inline |
Definition at line 44 of file LArTemperatureCorrectionTool.h.
|
inline |
Definition at line 45 of file LArTemperatureCorrectionTool.h.
|
inline |
Definition at line 48 of file LArTemperatureCorrectionTool.h.
LArTemperatureCorrectionTool::AllValues LArTemperatureCorrectionTool::get_corrections | ( | int | run | ) |
correction should be applied on MC as a multiplication: E = E * correction
Definition at line 119 of file LArTemperatureCorrectionTool.cxx.
|
inline |
Definition at line 52 of file LArTemperatureCorrectionTool.h.
|
inline |
Definition at line 53 of file LArTemperatureCorrectionTool.h.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inherited |
The standard message stream.
Definition at line 49 of file AsgMessaging.cxx.
|
inherited |
The standard message stream.
lvl | The message level to set the stream to |
Definition at line 57 of file AsgMessaging.cxx.
|
inherited |
Test the output level of the object.
lvl | The message level to test against |
true
If messages at level "lvl" will be printed Definition at line 41 of file AsgMessaging.cxx.
|
private |
Definition at line 65 of file LArTemperatureCorrectionTool.cxx.
|
private |
Definition at line 77 of file LArTemperatureCorrectionTool.cxx.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
AllValues LArTemperatureCorrectionTool::base_temperature {} |
Definition at line 54 of file LArTemperatureCorrectionTool.h.
|
private |
Definition at line 62 of file LArTemperatureCorrectionTool.h.
|
private |
Definition at line 58 of file LArTemperatureCorrectionTool.h.
|
private |
Definition at line 63 of file LArTemperatureCorrectionTool.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
private |
Definition at line 63 of file LArTemperatureCorrectionTool.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
Definition at line 59 of file LArTemperatureCorrectionTool.h.
AllValues LArTemperatureCorrectionTool::sensitivity_temperature {} |
Definition at line 55 of file LArTemperatureCorrectionTool.h.