Skip to content

Commit 92b2187

Browse files
nshadskiyharrypuuter
authored andcommitted
change default vector to zeros as additional safety measure for vector combinations
1 parent 51a34c2 commit 92b2187

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/defaults.hxx

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ const int default_pdgid = -999;
1111
const float default_float = -10.0;
1212
const UChar_t default_uchar = -10;
1313
const bool default_bool = false;
14-
const auto default_lorentzvector = ROOT::Math::PtEtaPhiMVector(
15-
default_float, default_float, default_float, default_float);
14+
const auto default_lorentzvector = ROOT::Math::PtEtaPhiMVector(0.,0.,0.,0.);
1615

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

0 commit comments

Comments
 (0)