Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing initialization in CaloCluster (same as #13506 ) #13507

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions DataFormats/CaloRecHit/interface/CaloCluster.h
Expand Up @@ -60,15 +60,15 @@ namespace reco {
/// constructor from values
CaloCluster( double energy,
const math::XYZPoint& position ) :
energy_ (energy), correctedEnergy_(-1.0), position_ (position),algoID_( undefined ), flags_(0) {}
energy_ (energy), correctedEnergy_(-1.0), correctedEnergyUncertainty_(-1.0), position_ (position),algoID_( undefined ), flags_(0) {}


CaloCluster( double energy,
const math::XYZPoint& position,
const CaloID& caloID,
const AlgoID& algoID,
uint32_t flags = 0) :
energy_ (energy), correctedEnergy_(-1.0), position_ (position),
energy_ (energy), correctedEnergy_(-1.0), correctedEnergyUncertainty_(-1.0), position_ (position),
caloID_(caloID), algoID_(algoID) {
flags_=flags&flagsMask_;
}
Expand All @@ -80,7 +80,7 @@ namespace reco {
const AlgoId algoId,
const DetId seedId = DetId(0),
uint32_t flags = 0) :
energy_ (energy), correctedEnergy_(-1.0), position_ (position), caloID_(caloID),
energy_ (energy), correctedEnergy_(-1.0), correctedEnergyUncertainty_(-1.0), position_ (position), caloID_(caloID),
hitsAndFractions_(usedHitsAndFractions), algoID_(algoId),seedId_(seedId){
flags_=flags&flagsMask_;
}
Expand All @@ -93,7 +93,7 @@ namespace reco {
const std::vector<DetId > &usedHits,
const AlgoId algoId,
uint32_t flags = 0) :
energy_(energy), correctedEnergy_(-1.0), position_ (position), algoID_(algoId)
energy_(energy), correctedEnergy_(-1.0), correctedEnergyUncertainty_(-1.0), position_ (position), algoID_(algoId)
{
hitsAndFractions_.reserve(usedHits.size());
for(size_t i = 0; i < usedHits.size(); i++) hitsAndFractions_.push_back(std::pair< DetId, float > ( usedHits[i],1.));
Expand Down