////////////////////////////////////////////////////////////////////////
//
// $Id: InterCompoundFunc.h,v 1.1 2001/11/13 23:33:12 bviren Exp $
//
// InterCompoundFunc
//
// Package: elbo
//
// Create compound interpolation functions.
//
// Contact: bv@bnl.gov
//
// Created on: Tue Nov 13 14:17:08 2001
//
////////////////////////////////////////////////////////////////////////

#ifndef INTERCOMPOUNDFUNC_H
#define INTERCOMPOUNDFUNC_H

#include "InterFunc.h"
#include <vector>

class InterAddedFunc : public InterFunc
{

public:

    InterAddedFunc();
    virtual ~InterAddedFunc();

    virtual double operator()(double x);
    virtual void Init(vector<double>& vx, vector<double>& vy);
    void Add(InterFunc* func, double weight=1.0);

private:
    vector<InterFunc*> fFunc;
    vector<double> fWeight;
};    


#endif  // INTERCOMPOUNDFUNC_H
