File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -271,9 +271,16 @@ struct HfFilter { // Main struct for HF triggers
271271 if (device.name .compare (" hf-track-index-skim-creator" ) == 0 ) {
272272 for (const auto & option : device.options ) {
273273 if (option.name .compare (" binsPtDsToKKPi" ) == 0 ) {
274- auto ptBinsDsSkimCreator = option.defaultValue .get <std::vector<double >>();
274+ auto ptBins = option.defaultValue .get <double *>();
275+ double lastEl{-1 .e6 };
276+ int iPt{0 };
277+ while (ptBins[iPt] > lastEl) {
278+ ptBinsDsSkimCreator.push_back (ptBins[iPt]);
279+ iPt++;
280+ lastEl = ptBins[iPt];
281+ }
275282 } else if (option.name .compare (" cutsDsToKKPi" ) == 0 ) {
276- auto cutsDsSkimCreator = option.defaultValue .get <LabeledArray<double >>();
283+ cutsDsSkimCreator = option.defaultValue .get <LabeledArray<double >>();
277284 }
278285 }
279286 }
You can’t perform that action at this time.
0 commit comments