ATLAS Offline Software
Loading...
Searching...
No Matches
LArTemperatureCorrectionTool.cxx File Reference
#include <ElectronPhotonFourMomentumCorrection/LArTemperatureCorrectionTool.h>
#include <TParameter.h>
#include <exception>
Include dependency graph for LArTemperatureCorrectionTool.cxx:

Go to the source code of this file.

Functions

template<typename T>
get_value_parameter (TFile &f, const std::string &name)

Function Documentation

◆ get_value_parameter()

template<typename T>
T get_value_parameter ( TFile & f,
const std::string & name )

Definition at line 11 of file LArTemperatureCorrectionTool.cxx.

11 {
12 TParameter<T>* p = dynamic_cast<TParameter<T>*>(f.Get(name.c_str()));
13 if (not p) {
14 return 0;
15 }
16 return p->GetVal();
17}