Skip to content

Commit

Permalink
Merge pull request #36868 from Dr15Jones/ubsanHGCalClusterT
Browse files Browse the repository at this point in the history
Initialize variables in HGCalClusterT
  • Loading branch information
cmsbuild authored Feb 3, 2022
2 parents 2a4c7f8 + 88af85b commit e6dbdaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DataFormats/L1THGCal/interface/HGCalClusterT.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ namespace l1t {
bool operator>=(const HGCalClusterT<C>& cl) const { return !(cl < *this); }

private:
bool valid_;
bool valid_ = false;
DetId detId_;

std::unordered_map<uint32_t, edm::Ptr<C>> constituents_;
Expand All @@ -195,9 +195,9 @@ namespace l1t {
GlobalPoint centre_;
GlobalPoint centreProj_; // centre projected onto the first HGCal layer

double mipPt_;
double seedMipPt_;
double sumPt_;
double mipPt_ = 0.;
double seedMipPt_ = 0.;
double sumPt_ = 0.;

//shower shape

Expand Down

0 comments on commit e6dbdaf

Please sign in to comment.