Templated functions don’t show up and/or work right in CINT
At least for
ROOT 5.20, you should try explicitly specifying the template type, e.g.
Printer p;
p.set<Double_t>(0,0,1.5);
Unfortunately this depends on the author having explicitly entered every imagined instance (
Printer::set
,
Printer::set
, ...) into
ParangLinkDef.h, and so your favorite instance may just not be there because she has not thought of it.
The most reliable way to use templated functions is just to compile your code (via
ACliC or whatever).
The author has not been able to get dictionaries properly generated for templated classes at all, in particular Proofed and Plotter. You can use them only in compiled code.
Why won’t std::string work in Parang?
The official string type in Parang is the
ROOT TString. It will be a big mess if the author tried to support both types.
Solution: Please use s.data() to convert your std::string s to a const char* type whenever you need to use it in Parang.
Example:
std::string category = "hello";
Polystring taxonomy;
classes += category.data();
--
SueAnnKoay - 15-Jun-2011