Print

Print


Commit in slicPandora/src on MAIN
SimCalorimeterHitProcessor.cpp+6-21.6 -> 1.7
fix hits not showing in clusters in Wired4 within JAS3; flag was not being set

slicPandora/src
SimCalorimeterHitProcessor.cpp 1.6 -> 1.7
diff -u -r1.6 -r1.7
--- SimCalorimeterHitProcessor.cpp	11 Mar 2010 19:04:24 -0000	1.6
+++ SimCalorimeterHitProcessor.cpp	16 Mar 2010 17:16:14 -0000	1.7
@@ -69,9 +69,13 @@
 
         LCCollection* simCalHits = event->getCollection(collectionName);
         LCCollection* calHits = new LCCollectionVec(EVENT::LCIO::CALORIMETERHIT);
-        LCFlagImpl chFlag(0);
-        chFlag.setBit(EVENT::LCIO::CHBIT_LONG);
 
+        // Set flag for output collection.  
+        LCFlagImpl chFlag(0);        
+        chFlag.setBit(EVENT::LCIO::RCHBIT_LONG); // Must set this for hit positions to be stored.
+        calHits->setFlag(chFlag.getFlag());
+        
+        // Convert input SimCalorimeterHits into CalorimeterHits.
         int nSimHits = simCalHits->getNumberOfElements();
         for (int i = 0; i < nSimHits; i++)
         {
CVSspam 0.2.8