Skip to content

Commit

Permalink
update weight type to double
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuanlcern committed Apr 22, 2024
1 parent 6bc3166 commit 0e7b1e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scalefactors.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ tau_trigger_sf(ROOT::RDF::RNode df, const std::string &decaymode,
Logger::get("tau_trigger_sf")->info("WP {} - type {}", wp, type);
auto trigger_sf_calculator = [evaluator, wp, type, correctionset](
const UChar_t &decaymode, const float &pt) {
float sf = 1.;
double sf = 1.;
Logger::get("tau_trigger_sf")
->info("ID {} - decaymode {}, wp {} "
"pt {}, type {}, ",
Expand Down Expand Up @@ -896,7 +896,7 @@ btagSF(ROOT::RDF::RNode df, const std::string &pt, const std::string &eta,
const ROOT::RVec<int> &bjet_mask,
const ROOT::RVec<int> &jet_veto_mask) {
Logger::get("btagSF")->debug("Vatiation - Name {}", variation);
float sf = 1.;
double sf = 1.;
for (int i = 0; i < pt_values.size(); i++) {
Logger::get("btagSF")->debug(
"jet masks - jet {}, bjet {}, jet veto {}", jet_mask.at(i),
Expand All @@ -908,7 +908,7 @@ btagSF(ROOT::RDF::RNode df, const std::string &pt, const std::string &eta,
"SF - pt {}, eta {}, btag value {}, flavor {}",
pt_values.at(i), eta_values.at(i), btag_values.at(i),
flavors.at(i));
float jet_sf = 1.;
double jet_sf = 1.;
// considering only phase space where the scale factors are
// defined
float btag_tmp_values = btag_values.at(i);
Expand Down Expand Up @@ -1188,7 +1188,7 @@ ditau_trigger_sf(ROOT::RDF::RNode df, const std::string &pt,
Logger::get("ditau_trigger")->debug("WP {} - trigger type {}, systematic {}", wp, type, syst);
auto trigger_sf_calculator = [evaluator, wp, type, corrtype,
syst](const float &pt, const UChar_t &decaymode) {
float sf = 1.;
double sf = 1.;
float pt_threshold = 24.6;
if (type == "ditau") pt_threshold = 39.598;
else if (type == "etau") pt_threshold = 24.6;
Expand Down

0 comments on commit 0e7b1e0

Please sign in to comment.