Skip to content
Snippets Groups Projects
THcParmList.h 929 B
Newer Older
#ifndef ROOT_THcParmList
#define ROOT_THcParmList

//////////////////////////////////////////////////////////////////////////
//
// THcParmList
//
//////////////////////////////////////////////////////////////////////////

#include "THaVarList.h"
#include "THaTextvars.h"

using namespace std;

class THcParmList : public THaVarList {

public:
 
  THcParmList();
  virtual ~THcParmList() { Clear(); delete TextList; }

  virtual void Load( const char *fname);

  virtual void PrintFull(Option_t *opt="") const;

  const char* GetString(const std::string& name) const {
    return(TextList->Get(name, 0));
  }

  Int_t AddString(const std::string& name, const std::string& value) {
    return(TextList->Add(name, value));
  }
  void RemoveString(const std::string& name) {
    TextList->Remove(name);
  }

private:

  THaTextvars* TextList;

protected:

  ClassDef(THcParmList,0) // List of analyzer global parameters

};
#endif