10 #include "util/inc/memorymanager.h"
20 template <
class INTYPE,
class OUTTYPE>
25 typedef OUTTYPE OutType;
26 typedef INTYPE InType;
35 virtual string name()
const =0;
84 void badParameter(std::string Parameter)
86 std::stringstream Msg;
87 Msg << this->
name() <<
" does not have parameter " << Parameter <<
"." << std::endl;
88 Msg <<
"(or parameter was of wrong type)" << std::endl;
89 Msg <<
"Avaliable parameters are:" << std::endl;
91 for (std::vector<std::string>::const_iterator iP = Names.begin();iP != Names.end(); ++iP)
92 Msg << (*iP) << std::endl;
96 throw lcio::Exception(Msg.str());
virtual string name() const =0
Name.
virtual void setPointerParameter(const string &Parameter, void *Value)=0
Set Pointer Parameter.
virtual void setDoubleParameter(const string &Parameter, const double Value)=0
Set Double Parameter.
virtual std::vector< string > parameterValues() const =0
Parameter Values.
virtual void setStringParameter(const string &Parameter, const string &Value)=0
Set String Parameter.
virtual OUTTYPE calculateFor(INTYPE Input) const =0
Run the algorithm on a jet.
virtual std::vector< string > parameterNames() const =0
Parameter Names.