Skip to content

Commit 1719ae1

Browse files
authored
Merge pull request #89 from dbrundu/master
Solving small bugs - issues #87 and #88
2 parents 78fec1d + 99f58cf commit 1719ae1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

hydra/SPlot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class SPlot: public detail::AddPdfBase<PDF1,PDF2,PDFs...>
118118
//fCovMatrix << 0.0, 0.0, 0.0, 0.0;
119119

120120

121-
Eigen::Matrix<double, npdfs, npdfs> init{};
121+
Eigen::Matrix<double, npdfs, npdfs> init = Eigen::Matrix<double, npdfs, npdfs>::Zero();
122122
//init << 0.0, 0.0, 0.0, 0.0;
123123

124124
fCovMatrix = hydra_thrust::transform_reduce(system_type(), first, last,

hydra/detail/functors/DecayMother.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ struct DecayMother
180180
GReal_t process(size_t evt, Vector4R (&daugters)[N])
181181
{
182182

183-
GRND randEng;//( );
183+
GRND randEng(fSeed);
184184
randEng.discard(evt+3*N);
185185
hydra_thrust::uniform_real_distribution<GReal_t> uniDist(0.0, 1.0);
186186

hydra/detail/functors/ProcessSPlot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ struct SWeights
203203
Eigen::Matrix<double, nfunctors,1> values_vector(Eigen::Map<Eigen::Matrix<double, nfunctors,1> >(values).eval());
204204
Eigen::Matrix<double, nfunctors,1> sweights(fICovMatrix*values_vector.eval());
205205
auto wfvalues = detail::multiply_array_tuple(fCoeficients, fvalues);
206-
GReal_t denominator = 1;
206+
GReal_t denominator = 0.0;
207207
detail::add_tuple_values(denominator, wfvalues);
208208
sweights /=denominator;
209209

0 commit comments

Comments
 (0)