5#ifndef PANTAUALGS_TOOL_HELPERFUNCTIONS
6#define PANTAUALGS_TOOL_HELPERFUNCTIONS
40 virtual int getBinIndex(
const std::vector<double>& binEdges,
double value)
const;
42 virtual double stddev(
double sumOfSquares,
double sumOfValues,
int numConsts)
const;
46 static StatusCode
bindToolHandle( ToolHandle<T>& handle, std::string tool_name){
48 if(!tool->isInitialized())
49 if (tool->initialize().isFailure())
50 return StatusCode::FAILURE;
51 handle = ToolHandle<T>(tool);
52 return StatusCode::SUCCESS;
56 static StatusCode
bindToolHandle( ToolHandle<T>& , std::string){
return StatusCode::SUCCESS;}
static StatusCode bindToolHandle(ToolHandle< T > &, std::string)
virtual std::string convertNumberToString(double x) const
virtual ~HelperFunctions()
virtual double stddev(double sumOfSquares, double sumOfValues, int numConsts) const
HelperFunctions(const std::string &name="")
const std::string & getName() const
virtual int getBinIndex(const std::vector< double > &binEdges, double value) const
Class mimicking the AthMessaging class from the offline software.
AsgMessaging(const std::string &name)
Constructor with a name.