6#include "GaudiKernel/MsgStream.h"
22 log << MSG::ERROR <<
" Different Values of n_bins and vector size!!!" <<
endmsg;
25 for (
float value : values){
49 log << MSG::ERROR <<
" StorePIDinfo: No bins in the DB!! Gas: " << gas <<
" detpart " << detpart <<
endmsg;
50 return StatusCode::FAILURE;
54 log << MSG::ERROR <<
" Different number of PID numbers!!!!! " <<
endmsg;
55 return StatusCode::FAILURE;
59 log << MSG::ERROR <<
" Max is smaller or equal than min!!!" <<
endmsg;
60 return StatusCode::FAILURE;
62 return StatusCode::SUCCESS;
70 else if (input >=
m_max){
74 unsigned int bin = int((input -
m_min) / dr);
int GetBin(float input) const
void push_back(float value)
void update(int nbins, float min, float max, const std::vector< float > &values)
StatusCode check(int gas, int detpart) const
std::vector< float > m_values
singleton-like access to IMessageSvc via open function and helper
IMessageSvc * getMessageSvc(bool quiet=false)