Commit in projects/lcdd/trunk/src/lcdd/detectors on MAIN
LegacyCalorimeterHitProcessor.cc+3-12999 -> 3000
Fix stupid bug causing massive runtime performance hit.

projects/lcdd/trunk/src/lcdd/detectors
LegacyCalorimeterHitProcessor.cc 2999 -> 3000
--- projects/lcdd/trunk/src/lcdd/detectors/LegacyCalorimeterHitProcessor.cc	2014-02-14 22:23:02 UTC (rev 2999)
+++ projects/lcdd/trunk/src/lcdd/detectors/LegacyCalorimeterHitProcessor.cc	2014-02-14 22:58:13 UTC (rev 3000)
@@ -15,6 +15,7 @@
 }
 
 bool LegacyCalorimeterHitProcessor::processHits(G4Step* step) {
+
     // Get the energy deposition.
     G4double edep = step->GetTotalEnergyDeposit();
 
@@ -37,6 +38,7 @@
     G4ThreeVector globalCellPosition = segmentation->getGlobalHitPosition(step);
 
     // Set the segmentation bin values from the step.
+    segmentation->resetBins();
     segmentation->setBins(step);
 
     // Create a 64-bit ID from the step information.
@@ -46,7 +48,7 @@
     CalorimeterHit* hit = _calorimeter->findHit(id);
 
     // Was there a hit found with this identifier?
-    if (hit == 0) {
+    if (hit == NULL) {
 
         // No hit was found, so a new one is created.
         hit = new CalorimeterHit(id, edep, globalCellPosition);
SVNspam 0.1


Use REPLY-ALL to reply to list

To unsubscribe from the LCDET-SVN list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCDET-SVN&A=1