Commit e27a41fd authored by Plaszczynski Stephane's avatar Plaszczynski Stephane
Browse files

No commit message

No commit message
parent 514a6bba
......@@ -8,7 +8,7 @@
// Derived classes should build the correct constructor and implement the pure
// virtual methods, which are
// - the object name
// - the list of required **nuisance parameters** (in required(...))
// - the list of required **nuisance parameters** (in requires(...))
// -the chi2(...) function.
//
// the "index" map can be used to retrieve the postion of the nuisance parameter
......@@ -59,7 +59,11 @@ public:
virtual std::string name() const =0;
//names of all nuisance parameters:
virtual std::vector<std::string> requires() =0;
// derived classes may either fill the nuiNames vector or override this method
// returns emply vector otherwise.
virtual std::vector<std::string> requires() const {
return nuiNames;
};
//the chi2 value for a given par vector
// order in par should be assumed to be the same than in the constructor
......@@ -71,6 +75,8 @@ public:
protected: // these should be used by sub-classes:
Engine* engine;
Parameters user_par;
std::vector<std::string> nuiNames;
std::map<std::string,size_t> index;
//to reconstruct the index (you should not need that in most cases)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment