Skip to content

Commit

Permalink
add missing correctedEnergyUncertainty_ initialization in a few const…
Browse files Browse the repository at this point in the history
…ructors
  • Loading branch information
slava77devel committed Feb 26, 2016
1 parent ecdb8f5 commit e9a80c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DataFormats/CaloRecHit/interface/CaloCluster.h
Original file line number Diff line number Diff line change
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

0 comments on commit e9a80c0

Please sign in to comment.