7#include <GaudiKernel/MsgStream.h>
15 MsgStream log(Athena::getMessageSvc(),
"RtRelationLookUp");
16 log << MSG::WARNING <<
"<to few parameters>" << endmsg;
20 if (m_bin_size == 0) {
21 MsgStream log(Athena::getMessageSvc(),
"RtRelationLookUp");
22 log << MSG::WARNING <<
"<bin size=0>" << endmsg;
31 double t_minus_tmin{t -
m_t_min};
33 if (rel <
static_cast<double>(INT_MIN))
return INT_MIN;
34 if (rel >
static_cast<double>(INT_MAX))
return INT_MAX;
35 return static_cast<int>(rel);
52 double r = r1 + dr * scale;
54 return r >= 0 ?
r : 0;
std::vector< size_t > vec
int getBin(double x, double min, double step, int clamp_max)
unsigned int nPar() const
std::vector< double > ParVec
generic interface for a rt-relation
int binInRtRange(double t) const
RtRelationLookUp(const ParVec &vec)
virtual double tBinWidth() const override final
Returns the step-size for the sampling.
virtual double radius(double t) const override final
returns drift radius for a given time
int getBin(double t) const
virtual double driftVelocity(double t) const override final
returns drift velocity for a given time
virtual double driftAcceleration(double t) const override final
returns the acceleration for a given time
virtual unsigned nDoF() const override final
Returns the number of degrees of freedom of the relation function.
double getRadius(int bin) const
virtual double tLower() const override final
return rt range
virtual double tUpper() const override final
Returns the upper time covered by the r-t.
singleton-like access to IMessageSvc via open function and helper
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.