Project
Loading...
Searching...
No Matches
o2::mid::ChamberResponse Class Reference

#include <ChamberResponse.h>

Public Member Functions

 ChamberResponse (const ChamberResponseParams &params, 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.
 

Detailed Description

Definition at line 31 of file ChamberResponse.h.

Constructor & Destructor Documentation

◆ ChamberResponse()

o2::mid::ChamberResponse::ChamberResponse ( const ChamberResponseParams params,
const ChamberHV hv 
)

Constructor.

Parameters
paramsChamber response parameters
hvChamber high-voltage values

Constructor

Definition at line 35 of file ChamberResponse.cxx.

◆ ~ChamberResponse()

virtual o2::mid::ChamberResponse::~ChamberResponse ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ firedProbabilityFunction()

double o2::mid::ChamberResponse::firedProbabilityFunction ( double *  var,
double *  par 
)

Fired probability distribution.

Parameters
varPointer with function variables
parPointer with function parameters
Returns
Fired probability

Member function that can be used to tune the parameters

Parameters
varVariables
parParameters 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.

◆ getFiredProbability()

double o2::mid::ChamberResponse::getFiredProbability ( double  distance,
int  cathode,
int  deId,
double  theta = 0. 
) const

Returns the fired probability.

Parameters
distanceDistance between the hit and the current strip
cathodeAnode or cathode
deIdDetection element ID
thetaParticle impact angle
Returns
The probability that the strip is fired

Get fired probability

Definition at line 41 of file ChamberResponse.cxx.

◆ getResponseParams()

ChamberResponseParams o2::mid::ChamberResponse::getResponseParams ( ) const
inline

Gets the response parameters.

Returns
Response function parameters

Definition at line 69 of file ChamberResponse.h.

◆ isFired()

bool o2::mid::ChamberResponse::isFired ( double  prob,
double  distance,
int  cathode,
int  deId,
double  theta = 0. 
) const
inline

Checks if the strip at a certain distance from the impact point is fired given a probability prob.

Parameters
probProbability to be fired
distanceDistance between the hit and the current strip
cathodeAnode or cathode
deIdDetection element ID
thetaParticle impact angle
Returns
true if the strip is fired

Definition at line 48 of file ChamberResponse.h.

◆ setHV()

void o2::mid::ChamberResponse::setHV ( const std::unordered_map< o2::dcs::DataPointIdentifier, std::vector< o2::dcs::DataPointValue > > &  dpMap)
inline

Sets the HV from the DCS data points.

Parameters
dpMapMap with DCS data points

Definition at line 73 of file ChamberResponse.h.


The documentation for this class was generated from the following files: