Skip to content

Commit

Permalink
CHange double to float in TracksterPCA
Browse files Browse the repository at this point in the history
  • Loading branch information
tcuisset committed Apr 8, 2024
1 parent 101bf14 commit ef89765
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions RecoHGCal/TICL/plugins/TrackstersPCA.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void ticl::assignPCAtoTracksters(std::vector<Trackster> &tracksters,
sigmasEigen << 0., 0., 0.;
Eigen::Matrix3f covM = Eigen::Matrix3f::Zero();

std::vector<double> layerClusterEnergies;
std::vector<float> layerClusterEnergies;

for (size_t i = 0; i < N; ++i) {
auto fraction = 1.f / trackster.vertex_multiplicity(i);
Expand All @@ -78,7 +78,7 @@ void ticl::assignPCAtoTracksters(std::vector<Trackster> &tracksters,
LogDebug("TrackstersPCA_Eigen") << "cleaning is :" << clean << std::endl;

std::vector<unsigned> filtered_idx;
double filtered_energy = 0;
float filtered_energy = 0;
if (clean) {
// Filter layerclusters for the cleaned PCA
auto maxE_vertex = std::distance(layerClusterEnergies.begin(),
Expand All @@ -92,7 +92,7 @@ void ticl::assignPCAtoTracksters(std::vector<Trackster> &tracksters,
if (vertices_in_layer.empty())
continue;

std::vector<double> energies_in_layer;
std::vector<float> energies_in_layer;
for (auto vrt : vertices_in_layer)
energies_in_layer.push_back(layerClusters[trackster.vertices(vrt)].energy());

Expand Down
2 changes: 0 additions & 2 deletions RecoHGCal/TICL/plugins/TrackstersPCA.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
#include <vector>
#include "RecoLocalCalo/HGCalRecAlgos/interface/RecHitTools.h"

typedef math::XYZVector Vector;

namespace ticl {
void assignPCAtoTracksters(std::vector<Trackster> &,
const std::vector<reco::CaloCluster> &,
Expand Down

0 comments on commit ef89765

Please sign in to comment.