Skip to content

Commit

Permalink
change default vector to zeros as additional safety measure for vecto…
Browse files Browse the repository at this point in the history
…r combinations
  • Loading branch information
nshadskiy authored and harrypuuter committed Jul 26, 2024
1 parent 51a34c2 commit 92b2187
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/defaults.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ const int default_pdgid = -999;
const float default_float = -10.0;
const UChar_t default_uchar = -10;
const bool default_bool = false;
const auto default_lorentzvector = ROOT::Math::PtEtaPhiMVector(
default_float, default_float, default_float, default_float);
const auto default_lorentzvector = ROOT::Math::PtEtaPhiMVector(0.,0.,0.,0.);

template <typename T> const T default_value() {
if (std::is_same<T, int>::value) {
Expand Down

0 comments on commit 92b2187

Please sign in to comment.