Print

Print


Commit in lcdd/src on MAIN
G4UnsegmentedCalorimeterSD.cc+8-21.2 -> 1.3
add segmentation setup for writing out id

lcdd/src
G4UnsegmentedCalorimeterSD.cc 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- G4UnsegmentedCalorimeterSD.cc	8 Dec 2010 21:06:24 -0000	1.2
+++ G4UnsegmentedCalorimeterSD.cc	8 Dec 2010 23:03:51 -0000	1.3
@@ -1,4 +1,4 @@
-// $Id: G4UnsegmentedCalorimeterSD.cc,v 1.2 2010/12/08 21:06:24 jeremy Exp $
+// $Id: G4UnsegmentedCalorimeterSD.cc,v 1.3 2010/12/08 23:03:51 jeremy Exp $
 #include "G4UnsegmentedCalorimeterSD.hh"
 
 G4UnsegmentedCalorimeterSD::G4UnsegmentedCalorimeterSD(
@@ -15,7 +15,7 @@
 #ifdef G4VERBOSE
     if ( getVerbose() > 0 )
     {
-        std::cout << "G4UnsegmentedCalorimeterSD::ProcessHits - " << this->GetName() << std::endl;
+    std::cout << "G4UnsegmentedCalorimeterSD::ProcessHits - " << this->GetName() << std::endl;
     }
 #endif
 
@@ -45,6 +45,12 @@
 
     //std::cout << "hit at " << hitPos << std::endl;
 
+    /* Reset the segmentation bins. */
+    m_segmentation->resetBins();
+    
+    /* Set the segmentation bins. */
+    m_segmentation->setBins( aStep );
+
     /* Create a 64-bit ID. */
     Id64bit id64 = makeId();
 
CVSspam 0.2.8