slicPandora/src
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++)
{