Print

Print


Commit in lcsim/src/org/lcsim/recon/util on MAIN
McTruthLinker.java+1-41.2 -> 1.3
Made skimmed mc particles subset.

lcsim/src/org/lcsim/recon/util
McTruthLinker.java 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- McTruthLinker.java	14 Apr 2011 05:15:16 -0000	1.2
+++ McTruthLinker.java	14 Apr 2011 08:24:15 -0000	1.3
@@ -72,10 +72,6 @@
  * reduced list point to their closest ancestor which is in this list instead.
  * Again, this behavior can be switched off, by setting the name of the 
  * skimmed mc particle collection to an empty String.
- * <p>
- * Do not forget to make the skimmed mc particle collection a subset, if an
- * output file is created and the original MCParticle collection should be
- * kept as well.
  * 
  * @author <a href="mailto:[log in to unmask]">Christian Grefe</a>
  */
@@ -137,6 +133,7 @@
 				mcParticlesSkimmed = createSkimmedMcParticleList(mcParticles);
 				mcParticleToSkimmed = fillMcParticleToSkimmedMap(mcParticles, mcParticlesSkimmed);
 				int flags = event.getMetaData(mcParticles).getFlags();
+				flags = LCIOUtil.bitSet(flags, LCIOConstants.BITSubset, true );
 				event.put(mcParticlesSkimmedName, mcParticlesSkimmed, MCParticle.class, flags);
 				print(HLEVEL_NORMAL, "Added skimmed mc particles \""+mcParticlesSkimmedName+"\" to the event.");
 			} catch (IllegalArgumentException e) {
CVSspam 0.2.8