User Tools

Site Tools


gaudi:puttingontes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
gaudi:puttingontes [2010/09/03 09:07] – created decianmgaudi:puttingontes [2010/09/03 09:11] (current) decianm
Line 3: Line 3:
 Sometimes it might be useful to make a copy of an existing container (with Particles, Tracks,...) and put it on the TES, to be used for a later algorithm. Sometimes it might be useful to make a copy of an existing container (with Particles, Tracks,...) and put it on the TES, to be used for a later algorithm.
  
-==== Code ====+===== Code (C++) =====
 This can be done the following: This can be done the following:
 <code> <code>
-bla+LHCb::Tracks* tracks = new LHCb::Tracks(); // Create the new container 
 +for(loopOverOldContainer){ 
 +   tracks->insert( trackToCopy ); 
 +
 +put( tracks, "MyOutputLocation" );
 </code> </code>
 +''put'' is a method of GaudiAlgorithm, so it works for every class that derives from it.
  
gaudi/puttingontes.1283497644.txt.gz · Last modified: 2010/09/03 09:07 by decianm