1 #ifndef __SCREGRESSIONCALCULATOR_H__
2 #define __SCREGRESSIONCALCULATOR_H__
20 template <
class VarCalc>
38 template <
class VarCalc>
49 template <
class VarCalc>
53 if (!gbr_record || gbrfrom_es.
cacheIdentifier() != gbr_record->cacheIdentifier()) {
54 gbr_record = &gbrfrom_es;
55 gbr_record->
get(eb_corr_name.c_str(), eb_corr);
56 gbr_record->get(ee_corr_name.c_str(), ee_corr);
57 if (eb_err_name.size()) {
58 gbr_record->get(eb_err_name.c_str(), eb_err);
60 if (ee_err_name.size()) {
61 gbr_record->get(ee_err_name.c_str(), ee_err);
66 template <
class VarCalc>
70 switch (sc.
seed()->seed().subdetId()) {
72 return eb_corr->GetResponse(
inputs.data());
75 return ee_corr->GetResponse(
inputs.data());
81 template <
class VarCalc>
85 switch (sc.
seed()->seed().subdetId()) {
87 return std::make_pair(eb_corr->GetResponse(
inputs.data()), eb_err->GetResponse(
inputs.data()));
90 return std::make_pair(ee_corr->GetResponse(
inputs.data()), ee_err->GetResponse(
inputs.data()));
93 return std::make_pair(-1.0
f, -1.0
f);