![]() |
Project
|
#include <ChamberResponse.h>
Public Member Functions | |
ChamberResponse (const ChamberResponseParams ¶ms, const ChamberHV &hv) | |
Constructor. | |
virtual | ~ChamberResponse ()=default |
Default destructor. | |
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. | |
double | getFiredProbability (double distance, int cathode, int deId, double theta=0.) const |
Returns the fired probability. | |
double | firedProbabilityFunction (double *var, double *par) |
Fired probability distribution. | |
ChamberResponseParams | getResponseParams () const |
Gets the response parameters. | |
void | setHV (const std::unordered_map< o2::dcs::DataPointIdentifier, std::vector< o2::dcs::DataPointValue > > &dpMap) |
Sets the HV from the DCS data points. | |
Definition at line 31 of file ChamberResponse.h.
o2::mid::ChamberResponse::ChamberResponse | ( | const ChamberResponseParams & | params, |
const ChamberHV & | hv | ||
) |
Constructor.
params | Chamber response parameters |
hv | Chamber high-voltage values |
Constructor
Definition at line 35 of file ChamberResponse.cxx.
|
virtualdefault |
Default destructor.
double o2::mid::ChamberResponse::firedProbabilityFunction | ( | double * | var, |
double * | par | ||
) |
Fired probability distribution.
var | Pointer with function variables |
par | Pointer with function parameters |
Member function that can be used to tune the parameters
var | Variables |
par | Parameters The variables are: var[0] -> distance from impact point (in cm) The parameters are: par[0] -> cathode par[1] -> deId par[2] -> impact angle (set to 0.) par[3] -> parameter B par[4] -> parameter A0 par[5] -> parameter A1 par[6] -> parameter C0 par[7] -> parameter C1 |
Definition at line 55 of file ChamberResponse.cxx.
double o2::mid::ChamberResponse::getFiredProbability | ( | double | distance, |
int | cathode, | ||
int | deId, | ||
double | theta = 0. |
||
) | const |
Returns the fired probability.
distance | Distance between the hit and the current strip |
cathode | Anode or cathode |
deId | Detection element ID |
theta | Particle impact angle |
Get fired probability
Definition at line 41 of file ChamberResponse.cxx.
|
inline |
Gets the response parameters.
Definition at line 69 of file ChamberResponse.h.
|
inline |
Checks if the strip at a certain distance from the impact point is fired given a probability prob.
prob | Probability to be fired |
distance | Distance between the hit and the current strip |
cathode | Anode or cathode |
deId | Detection element ID |
theta | Particle impact angle |
Definition at line 48 of file ChamberResponse.h.
|
inline |
Sets the HV from the DCS data points.
dpMap | Map with DCS data points |
Definition at line 73 of file ChamberResponse.h.