Skip to content

Commit

Permalink
Merge pull request #6647 from slava77/CMSSW_7_3_0_pre3/fixHCALOOTcrash
Browse files Browse the repository at this point in the history
 fix occasional crash in PulseShapeFitOOTPileupCorrection for zero processed events in a job (as in #6646 )
  • Loading branch information
cmsbuild committed Nov 27, 2014
2 parents 63bf2bd + cce5d3a commit 5ad259e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -170,7 +170,12 @@ namespace FitterFuncs{

}

PulseShapeFitOOTPileupCorrection::PulseShapeFitOOTPileupCorrection() : cntsetPulseShape(0), chargeThreshold_(6.) {
PulseShapeFitOOTPileupCorrection::PulseShapeFitOOTPileupCorrection() : cntsetPulseShape(0), chargeThreshold_(6.),
psfPtr_(nullptr), spfunctor_(nullptr), dpfunctor_(nullptr), tpfunctor_(nullptr),
TSMin_(0), TSMax_(0), ts4Chi2_(0), ts3Chi2_(0), ts345Chi2_(0), pedestalConstraint_(0),
timeConstraint_(0), addPulseJitter_(0), unConstrainedFit_(0), applyTimeSlew_(0),
ts4Min_(0), ts4Max_(0), pulseJitter_(0), timeMean_(0), timeSig_(0), pedMean_(0), pedSig_(0),
noise_(0) {
hybridfitter = new PSFitter::HybridMinimizer(PSFitter::HybridMinimizer::kMigrad);
iniTimesArr = { {-100,-75,-50,-25,0,25,50,75,100,125} };
}
Expand Down
2 changes: 1 addition & 1 deletion RecoLocalCalo/HcalRecProducers/src/HcalHitReconstructor.cc
Expand Up @@ -237,7 +237,7 @@ HcalHitReconstructor::HcalHitReconstructor(edm::ParameterSet const& conf):
subdetOther_=HcalCalibration;
produces<HcalCalibRecHitCollection>();
} else {
std::cout << "HcalHitReconstructor is not associated with a specific subdetector!" << std::endl;
edm::LogWarning("Configuration") << "HcalHitReconstructor is not associated with a specific subdetector!" << std::endl;
}

// If no valid OOT pileup correction name specified,
Expand Down

0 comments on commit 5ad259e

Please sign in to comment.