Skip to content

Commit

Permalink
Bugfix in pixel detector's cluster charge re-weighting:
Browse files Browse the repository at this point in the history
In case no matching template is found, the cluster is stored without re-weighting (was removed before)
  • Loading branch information
schuetzepaul committed Jun 14, 2018
1 parent e6ba533 commit a8ba6e4
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 @@ -2245,7 +2245,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 @@ -2336,7 +2339,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 a8ba6e4

Please sign in to comment.