Commit in projects/lcdd/trunk/src/lcdd/detectors on MAIN
OpticalCalorimeterHitProcessor.cc+4-63037 -> 3038
Last commit was erroneous.  Do this the right way by seperating the regular edep processor via LCDD rather than calling it from the optical hit processor.  (As suggested by Alex.)

projects/lcdd/trunk/src/lcdd/detectors
OpticalCalorimeterHitProcessor.cc 3037 -> 3038
--- projects/lcdd/trunk/src/lcdd/detectors/OpticalCalorimeterHitProcessor.cc	2014-03-03 19:20:27 UTC (rev 3037)
+++ projects/lcdd/trunk/src/lcdd/detectors/OpticalCalorimeterHitProcessor.cc	2014-03-03 19:24:05 UTC (rev 3038)
@@ -24,9 +24,6 @@
 
 bool OpticalCalorimeterHitProcessor::processHits(G4Step* step) {
 
-    /* Activate hit processing for standard edep collection. */    
-    LegacyCalorimeterHitProcessor::processHits(step);
-
     // FIXME: This should not be here.  Unfortunately, it appears that instantiating
     //        it in the constructor does not work due to unintialized Geant4 data structures.
     //        The HitProcessor may need an initialize method called in start of run.
@@ -85,9 +82,10 @@
                         theEdep*GeV,
                         theTrack->GetParticleDefinition()->GetAntiPDGEncoding(),
                         theTrack->GetGlobalTime()));
-    }  // end Cerenkov photon treatment
- 
-    return true;
+        return true;
+    } else { 
+        return false;
+    }
 }
 
 G4ThreeVector OpticalCalorimeterHitProcessor::getGlobalHitPosition(const G4StepPoint* aPreStepPoint) {
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