Skip to content

Commit 1c83de9

Browse files
committed
fixed bugs
1 parent e30cf78 commit 1c83de9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Ecal/src/Ecal/EcalWABRecProcessor.cxx

+5-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ void EcalWABRecProcessor::produce(framework::Event& event) {
125125
// Save rec hit info to rec_hit_list
126126
for (const ldmx::EcalHit& hit : ecal_rec_hits) {
127127
ldmx::EcalID id(hit.getID());
128-
auto [x, y, z] = geometry_->getPosition(id);
128+
auto pos = geometry_->getPosition(id);
129+
auto [x, y, z] = std::apply([](double a, double b, double c) {
130+
return std::make_tuple(static_cast<float>(a),
131+
static_cast<float>(b),
132+
static_cast<float>(c));}, pos);
129133
float energy = hit.getEnergy();
130134
float layer_num = id.layer();
131135
rec_hit_list.push_back({x, y, z, layer_num, 0, energy});

0 commit comments

Comments
 (0)