How to use tools directly:

Once you have done this, you should be able to use m_myPublicTool similarly to the way you would use a pointer to the parent class IMyTool. The convenient part of this is that if you have several tools that do similar jobs, you can have the correct tool called based on the job options that are used. If you ever need to access a pointer to the tool itself, you can use

IMyTool* ptr = dynamic_cast<MyTool*>(&*m_myToolHandle);

Substructure code in: Reconstruction/Jet/JetSubStructureMomentTools and Reconstruction/Jet/JetSubStructureUtils Charge.cxx Charge(double k = 1.0); virtual double result(const xAOD::Jet &jet) const; also Pull

-- NicoloDeGroot - 07 Aug 2014

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2014-08-07 - NicoloDeGroot
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback