Commit in slic/src on MAIN
LcioHitsCollectionBuilder.cc+5-11.7 -> 1.8
JM: Set the id description field in the hits collections.

slic/src
LcioHitsCollectionBuilder.cc 1.7 -> 1.8
diff -u -r1.7 -r1.8
--- LcioHitsCollectionBuilder.cc	10 Mar 2006 07:41:25 -0000	1.7
+++ LcioHitsCollectionBuilder.cc	20 Jul 2006 21:08:30 -0000	1.8
@@ -1,4 +1,4 @@
-// $Header: /cvs/lcd/slic/src/LcioHitsCollectionBuilder.cc,v 1.7 2006/03/10 07:41:25 jeremy Exp $
+// $Header: /cvs/lcd/slic/src/LcioHitsCollectionBuilder.cc,v 1.8 2006/07/20 21:08:30 jeremy Exp $
 #include "LcioHitsCollectionBuilder.hh"
 
 // slic
@@ -98,6 +98,10 @@
 	// create collection vector based on type of SD
 	collVect = createCollectionVec( HC, SD->getType() );
 
+	// Store the cellID description into the LCIO::cellIDEncoding parameter in the collection.
+	std::string id = SD->getIdSpec()->getFieldDescription();
+	collVect->parameters().setValue(LCIO::CellIDEncoding, id) ;
+
 	// add collection vector to LCEvent
 	m_currentLCEvent->addCollection( collVect, HC->GetName() );
       }
CVSspam 0.2.8