#include <DTTime2DriftParametrization.h>
Classes | |
struct | drift_distance |
Structure used to return output values. More... | |
Public Member Functions | |
bool | computeDriftDistance_mean (double time, double alpha, double by, double bz, short interpolate, drift_distance *dx) const |
bool | computeDriftDistance_mode (double time, double alpha, double by, double bz, short interpolate, drift_distance *dx) const |
DTTime2DriftParametrization () | |
Constructor. More... | |
virtual | ~DTTime2DriftParametrization () |
Destructor. More... | |
Private Member Functions | |
unsigned short | MB_DT_Check_boundaries (double distime, double alpha, double by, double bz, short ifl) const |
double | MB_DT_delta_x (double, double *) const |
double | MB_DT_dist (double, double *) const |
unsigned short | MB_DT_drift_distance (double time, double alpha, double by, double bz, drift_distance *DX, short interpolate) const |
Calculate drift distance and spread. More... | |
void | MB_DT_Get_grid_points (double alpha, double by, double bz, unsigned short *p_alpha, unsigned short *p_By, unsigned short *p_Bz, unsigned short *q_alpha, unsigned short *q_By, unsigned short *q_Bz) const |
void | MB_DT_Get_grid_values (double Var, unsigned short *pi, unsigned short *pj, short Initial, unsigned short N, const double *Values) const |
double | MB_DT_MLInterpolation (double *al, double *by, double *bz, double *f) const |
double | MB_DT_sigma_t_m (double, double *) const |
double | MB_DT_sigma_t_p (double, double *) const |
Static Private Attributes | |
static const double | alpha_value [11] |
static const double | By_value [5] |
static const double | Bz_value [5] |
static const double | fun_sigma_t [11][5][5][7] |
static const double | fun_x [11][5][5][15] |
static const double | velocitySkew |
This class access the cell parametrization by Pablo Garcia-Abia and Jesus Puerta (CIEMAT). The two public methods act as an interface for the parametrization converting the reference frame and the units accordingly to CMSSW convention.
Definition at line 18 of file DTTime2DriftParametrization.h.
DTTime2DriftParametrization::DTTime2DriftParametrization | ( | ) |
|
virtual |
bool DTTime2DriftParametrization::computeDriftDistance_mean | ( | double | time, |
double | alpha, | ||
double | by, | ||
double | bz, | ||
short | interpolate, | ||
drift_distance * | dx | ||
) | const |
Compute the drift distance and relative errors (cm). The drift distance is computed as the MEAN value of the distance distribution for this particular time. This method takes care of the conversions of units and reference frame used by CMSSW and the parametrization. time is in ns, alpha (=atan(x/-z)) in rad, by and bz are the magnetic field in the layer RF. False is returned if the parametrization fails
Definition at line 52 of file DTTime2DriftParametrization.cc.
References simBeamSpotPI::alpha, PVValHelper::dx, RemoveAddSevLevel::flag, HiCaloJetParameters_cff::interpolate, SiStripPI::max, MB_DT_drift_distance(), Geom::pi(), mathSSE::sqrt(), and hcalRecHitTable_cff::time.
Referenced by DTParametrizedDriftAlgo::compute().
bool DTTime2DriftParametrization::computeDriftDistance_mode | ( | double | time, |
double | alpha, | ||
double | by, | ||
double | bz, | ||
short | interpolate, | ||
drift_distance * | dx | ||
) | const |
Compute the drift distance and relative errors (cm). The drift distance is computed as the MODE value of the distance distribution for this particular time. This method takes care of the conversions of units and reference frame used by CMSSW and the parametrization. time is in ns, alpha (=atan(x/-z)) in rad, by and bz are the magnetic field in the layer RF. False is returned if the parametrization fails
Definition at line 22 of file DTTime2DriftParametrization.cc.
References simBeamSpotPI::alpha, PVValHelper::dx, RemoveAddSevLevel::flag, HiCaloJetParameters_cff::interpolate, MB_DT_drift_distance(), Geom::pi(), and hcalRecHitTable_cff::time.
|
private |
Referenced by MB_DT_drift_distance().
|
private |
Definition at line 252 of file DTTime2DriftParametrization.cc.
References submitPVValidationJobs::t, and RandomServiceHelper::t2.
Referenced by MB_DT_drift_distance().
|
private |
Definition at line 271 of file DTTime2DriftParametrization.cc.
References hcalRecHitTable_cff::time.
Referenced by MB_DT_drift_distance().
|
private |
Calculate drift distance and spread.
Definition at line 85 of file DTTime2DriftParametrization.cc.
References simBeamSpotPI::alpha, alpha_value, By_value, Bz_value, DTTime2DriftParametrization::drift_distance::delta_x, fun_sigma_t, fun_x, mps_fire::i, HiCaloJetParameters_cff::interpolate, dqmiolumiharvest::j, MB_DT_Check_boundaries(), MB_DT_delta_x(), MB_DT_dist(), MB_DT_Get_grid_points(), MB_DT_MLInterpolation(), MB_DT_sigma_t_m(), MB_DT_sigma_t_p(), N_Par_x, N_Sigma_t, hcalRecHitTable_cff::time, DTTime2DriftParametrization::drift_distance::v_drift, DTTime2DriftParametrization::drift_distance::x_drift, DTTime2DriftParametrization::drift_distance::x_width_m, and DTTime2DriftParametrization::drift_distance::x_width_p.
Referenced by computeDriftDistance_mean(), and computeDriftDistance_mode().
|
private |
Referenced by MB_DT_drift_distance().
|
private |
|
private |
Referenced by MB_DT_drift_distance().
|
private |
Referenced by MB_DT_drift_distance().
|
private |
Referenced by MB_DT_drift_distance().
|
staticprivate |
Definition at line 79 of file DTTime2DriftParametrization.h.
Referenced by MB_DT_drift_distance().
|
staticprivate |
Definition at line 80 of file DTTime2DriftParametrization.h.
Referenced by MB_DT_drift_distance().
|
staticprivate |
Definition at line 81 of file DTTime2DriftParametrization.h.
Referenced by MB_DT_drift_distance().
|
staticprivate |
Definition at line 85 of file DTTime2DriftParametrization.h.
Referenced by MB_DT_drift_distance().
|
staticprivate |
Definition at line 84 of file DTTime2DriftParametrization.h.
Referenced by MB_DT_drift_distance().
|
staticprivate |
Definition at line 88 of file DTTime2DriftParametrization.h.