![]() |
|
|||
File indexing completed on 2024-04-06 12:30:44
0001 #ifndef Utils_H 0002 #define Utils_H 0003 0004 /* 0005 * Parametrization function and related utilities, for testing purposes. 0006 * 0007 * Coordinates are 0008 * x in cm; theta in degrees, B in T, t in ns 0009 * Bwire = By in ORCA r.f. 0010 * Bnorm = Bz in ORCA r.f. 0011 * 0012 * \author N. Amapane - INFN Torino 0013 */ 0014 0015 // Drift space-time parametrization after J. Puerta, P. Garcia-Abia 0016 void *driftTime(double x, double theta, double Bwire, double Bnorm, short interpolate); 0017 0018 // Inverse time-space parametrization after J. Puerta, P. Garcia-Abia 0019 void *trackDistance(double x, double theta, double Bwire, double Bnorm, short interpolate); 0020 0021 // Drift time parametrization after T. Rovelli, A. Gresele 0022 float oldParametrization(float x, float theta, float Bwire, float Bnorm); 0023 0024 double smearedTime(double x, double theta, double Bwire, double Bnorm, short interpolate); 0025 0026 // Smearing of an asymmetric distribution which results from combining two 0027 // gaussians with the same peak and different sigmas. 0028 double asymGausSample(double mean, double sigma1, double sigma2); 0029 0030 #include "TString.h" 0031 // Convert a double to a TString with a given precision. 0032 TString dToTString(double f, int precision = 6); 0033 0034 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |