User Tools

Site Tools


brunel:retrievetool

Differences

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

Link to this comparison view

Next revision
Previous revision
brunel:retrievetool [2010/01/22 16:53] – created decianmbrunel:retrievetool [2010/12/20 11:07] (current) bursche
Line 5: Line 5:
 ImyTool myTool = tool<ImyTool>("myTool", this); ImyTool myTool = tool<ImyTool>("myTool", this);
 </code> </code>
 +Most of the time you'll want to do this in the ''initialize()'' of your algorithm, i.e. you declare your tool as a member variable.
 +  * Note: The ''this'' in the above code is not absolutely necessary, but by leaving it away, you won't be able to change properties of the tool in the options-file.
  
 +If the tool is included using the explicit syntax for namepaces a name must be specified. 
 +<code> 
 +IJetMaker jetMaker = tool<IJetMaker>( "LoKi::FastJetMaker","LoKi__FastJetMaker", this ); 
 +</code> 
 +Otherwise It can't be configured in python.
brunel/retrievetool.1264175597.txt.gz · Last modified: by decianm