Skip to content

Commit

Permalink
Merge pull request #23583 from schuetzepaul/pixelClusterChargeReweigh…
Browse files Browse the repository at this point in the history
…tingBugfix

Bugfix in pixel detector's cluster charge re-weighting
  • Loading branch information
cmsbuild committed Jun 15, 2018
2 parents 59bec15 + a8ba6e4 commit c064038
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions SimTracker/SiPixelDigitizer/plugins/SiPixelDigitizerAlgorithm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,10 @@ bool SiPixelDigitizerAlgorithm::hitSignalReweight(const PSimHit& hit,
ierr = PixelTempRewgt2D(IDden, IDden, pixrewgt);
}
if (ierr!=0){
LogInfo ("PixelDigitizer ") << "Cluster Charge Reweighting did not work properly.";
#ifdef TP_DEBUG
LogDebug ("PixelDigitizer ") << "Cluster Charge Reweighting did not work properly.";
#endif
return false;
}

if(PrintClusters){
Expand Down Expand Up @@ -2371,7 +2374,10 @@ int SiPixelDigitizerAlgorithm::PixelTempRewgt2D(int id_in, int id_rewgt, array_2

if(!templ2D.xytemp(id_in, cotalpha, cotbeta, xhit2D, yhit2D, ydouble, xdouble, xy_in)) {success = 1;}
if(success != 0){
LogWarning ("Pixel Digitizer") << "No matching template found" << std::endl;
#ifdef TP_DEBUG
LogDebug("Pixel Digitizer") << "No matching template found" << std::endl;
#endif
return 2;
}

if(PrintTemplates){
Expand Down

0 comments on commit c064038

Please sign in to comment.