17#ifndef O2_MID_CHAMBERRESPONSE_H
18#define O2_MID_CHAMBERRESPONSE_H
20#include <unordered_map>
48 inline bool isFired(
double prob,
double distance,
int cathode,
int deId,
double theta = 0.)
const
Parameters for MID RPC response.
void setHV(int deId, double hv)
Sets the HV for detection element.
virtual ~ChamberResponse()=default
Default destructor.
double getFiredProbability(double distance, int cathode, int deId, double theta=0.) const
Returns the fired probability.
void setHV(const std::unordered_map< o2::dcs::DataPointIdentifier, std::vector< o2::dcs::DataPointValue > > &dpMap)
Sets the HV from the DCS data points.
double firedProbabilityFunction(double *var, double *par)
Fired probability distribution.
bool isFired(double prob, double distance, int cathode, int deId, double theta=0.) const
Checks if the strip at a certain distance from the impact point is fired given a probability prob.
ChamberResponseParams getResponseParams() const
Gets the response parameters.
GLsizei GLsizei GLfloat distance
GLenum const GLfloat * params
ChamberResponse createDefaultChamberResponse()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...