lcdd/src
diff -u -r1.16 -r1.17
--- SensitiveDetectorFactory.cc 10 Dec 2007 21:12:25 -0000 1.16
+++ SensitiveDetectorFactory.cc 10 Dec 2007 23:05:02 -0000 1.17
@@ -1,4 +1,4 @@
-// $Header: /cvs/lcd/lcdd/src/SensitiveDetectorFactory.cc,v 1.16 2007/12/10 21:12:25 wenzel Exp $
+// $Header: /cvs/lcd/lcdd/src/SensitiveDetectorFactory.cc,v 1.17 2007/12/10 23:05:02 wenzel Exp $
#include "SensitiveDetectorFactory.hh"
// lcdd
@@ -138,13 +138,12 @@
}
else if ( sd_type == "optical_calorimeter" ) {
//
- // The code below is only a temporary hack until we can pass more than one detector
- // via the lcdd file.
+ // in case of optical alorimeter there are 2 hit collections
//
int NrofReadouts=2;
G4String hcnames[2];
- hcnames[0] = "Edep_"+sdt->get_hitsCollectionName();
- hcnames[1] = "Ceren_"+sdt->get_hitsCollectionName();
+ hcnames[0] = "Ceren_"+sdt->get_hitsCollectionName();
+ hcnames[1] = "Edep_"+sdt->get_hitsCollectionName();
std::cout<< " now creating optical calorimeter"<<std::endl;
sd = new G4OpticalCalorimeterSD(sdt->get_name(),
hcnames,