Creating a vector of ROOT::Fit::ParameterSettings

Hello,

I would like to create a std vector of ParameterSettings, something like that:

[code]In [0]: import ROOT

In [1]: vpars = ROOT.std.vector(‘ROOT::Fit::ParameterSettings’)

In [2]: vpars.push_back(ROOT.Fit.ParameterSettings())

TypeError Traceback (most recent call last)
/home/jiri/work/tmp/ in ()
----> 1 vpars.push_back(ROOT.Fit.ParameterSettings())

TypeError: void vector<ROOT::Fit::ParameterSettings,allocatorROOT::Fit::ParameterSettings >::push_back(const ROOT::Fit::ParameterSettings& x) =>
unbound method vector<ROOT::Fit::ParameterSettings,allocatorROOT::Fit::ParameterSettings >::push_back must be called with a vector<ROOT::Fit::ParameterSettings,allocatorROOT::Fit::ParameterSettings > instance as first argument
[/code]

but unfortunately there is an error… It is probably very easy to fix it but I can’t find a solution #-o. Do you have any ideas?

Many thanks for your help.

Cheers,
Jiri

Hi,

instead of

do

for more details see root.cern.ch/root/roottalk/roottalk10/1475.html (thanks Wim for the explenation there!)

Cheers,
Jiri