lcdd/src
diff -u -r1.29 -r1.30
--- G4CalorimeterSD.cc 20 Dec 2006 00:03:41 -0000 1.29
+++ G4CalorimeterSD.cc 7 Feb 2007 05:17:12 -0000 1.30
@@ -1,4 +1,4 @@
-// $Header: /cvs/lcd/lcdd/src/G4CalorimeterSD.cc,v 1.29 2006/12/20 00:03:41 jeremy Exp $
+// $Header: /cvs/lcd/lcdd/src/G4CalorimeterSD.cc,v 1.30 2007/02/07 05:17:12 jeremy Exp $
#include "G4CalorimeterSD.hh"
// lcdd
@@ -88,6 +88,11 @@
// This needs to be a <= comparison for cutting on 0.
if ( theEdep <= getEcut() ) {
+#ifdef G4VERBOSE
+ if ( getVerbose() > 2 ) {
+ std::cout << "G4CalorimeterSD::ProcessHits - cut on edep " << theEdep << std::endl;
+ }
+#endif
return false;
}
@@ -105,7 +110,7 @@
// DEBUG: Compute step midpoint and compare to the cell pos
#ifdef G4VERBOSE
- if ( getVerbose() > 1 ) {
+ if ( getVerbose() > 2 ) {
G4ThreeVector globalMidPos = midPosition();
std::cout << "globalMidPos " << globalMidPos << std::endl;
std::cout << "globalCellPos - globalMidPos = " << globalCellPos - globalMidPos << std::endl;
@@ -120,6 +125,12 @@
// hit is not found?
if ( !( fndHit = findHit( thisHit ) ) ) {
+#ifdef G4VERBOSE
+ if ( getVerbose() > 1 ) {
+ std::cout << "G4CalorimeterSD::ProcessHits - new hit" << std::endl;
+ }
+#endif
+
// add it to lkp map
m_hits.push_back(thisHit);
@@ -129,6 +140,12 @@
// found a hit
else {
+#ifdef G4VERBOSE
+ if ( getVerbose() > 2 ) {
+ std::cout << "G4CalorimeterSD::ProcessHits - existing hit" << std::endl;
+ }
+#endif
+
// don't need to insert thisHit, so delete it
delete thisHit;
thisHit = 0;