Belle II Software development
|
A class that holds functions for 3D tracking. More...
#include <Fitter3DUtility.h>
Static Public Member Functions | |
static int | findSign (double *phi2) |
2D fitter functions | |
static void | rPhiFit (double *rr, double *phi2, double *phierror, double &rho, double &myphi0) |
A circle fitter. | |
static void | rPhiFitter (double *rr, double *phi2, double *invphierror, double &rho, double &myphi0) |
A circle fitter with invPhiError without fit chi2 output. | |
static void | rPhiFitter (double *rr, double *phi2, double *invphierror, double &rho, double &myphi0, double &chi2) |
A circle fitter with invPhiError with fit chi2 output. | |
static void | chargeFinder (double *nTSs, double *tsIds, double *tsHitmap, double phi0, double inCharge, double &outCharge) |
Charge finder using circle fitter output and axial TSs. | |
static void | rPhiFit2 (double *rr, double *phi2, double *phierror, double &rho, double &myphi0, int nTS) |
A circle fitter. | |
static unsigned | toUnsignedTdc (int tdc, int nBits) |
Changes tdc and event time to unsigned value that has # bits. | |
static double | calPhi (double wirePhi, double driftLength, double rr, int lr) |
Pre 3D fitter functions. rr is in cm scale. driftLength is in cm scale. | |
static double | calPhi (double wirePhi, double driftTime, double eventTime, double rr, int lr) |
Pre 3D fitter functions. | |
static double | calPhi (int localId, int nWires, double driftTime, double eventTime, double rr, int lr) |
Pre 3D fitter functions. | |
static void | calPhi (std::map< std::string, double > const &mConstD, std::map< std::string, std::vector< double > > const &mConstV, std::map< std::string, Belle2::TRGCDCJSignal > &mSignalStorage, std::map< std::string, Belle2::TRGCDCJLUT * > &mLutStorage) |
Calculates phi. | |
static void | saveStereoXt (std::vector< std::vector< double > > &stXts, std::string const &filePrefix) |
Saves stereo Xt to file. | |
static void | loadStereoXt (std::string const &filePrefix, int nFiles, std::vector< std::vector< double > > &stXts) |
Load stereo Xt file. | |
static double | stereoIdToPhi (std::vector< double > &stNWires, int iSt, int id) |
Converts stereo ts id to phi. | |
static void | calPhiFast (std::map< std::string, std::vector< double > > &stGeometry, std::vector< std::vector< double > > const &stXts, int eventTimeValid, int eventTime, std::vector< std::vector< int > > const &rawStTSs, std::vector< double > &stTSs) |
Calculates phi with fast simulation. | |
static double | rotatePhi (double value, double refPhi) |
Rotates to range [-pi, pi]. | |
static double | rotatePhi (double value, int refId, int nTSs) |
Rotates to range [-pi, pi]. Use tsId as reference. | |
static int | rotateTsId (int value, int refId, int nTSs) |
Rotates to range [0, nTSs-1]. | |
static int | findQuadrant (double value) |
Finds quadrant of angle. Angle is in rad. | |
static void | setErrorFast (std::vector< std::vector< int > > const &rawStTSs, int eventTimeValid, std::vector< double > &invZError2) |
Sets error for fitting. | |
static void | setError (std::map< std::string, double > const &mConstD, std::map< std::string, std::vector< double > > const &mConstV, std::map< std::string, Belle2::TRGCDCJSignal > &mSignalStorage) |
Sets error using JSignal class. | |
static double | calStAxPhi (int charge, double anglest, double ztostraw, double rr, double rho, double phi0) |
Calculates the fitted axial phi for the stereo super layer. | |
static double | calDeltaPhi (int charge, double anglest, double ztostraw, double rr, double phi, double rho, double phi0) |
Calculates the phi difference between fitted axial phi and stereo phi. | |
static void | constrainRPerStSl (std::map< std::string, std::vector< double > > const &mConstV, std::map< std::string, Belle2::TRGCDCJSignal > &mSignalStorage) |
Constrains R for each SL differently using JSignal and multiple constants. | |
static double | calZ (int charge, double anglest, double ztostraw, double rr, double phi, double rho, double phi0) |
Calculates z. | |
static void | calZ (std::map< std::string, double > const &mConstD, std::map< std::string, std::vector< double > > const &mConstV, std::map< std::string, Belle2::TRGCDCJSignal > &mSignalStorage, std::map< std::string, Belle2::TRGCDCJLUT * > &mLutStorage) |
Calculates z using JSignal and multiple constants. | |
static double | calS (double rho, double rr) |
Calculates arc length. | |
static void | calS (std::map< std::string, double > const &mConstD, std::map< std::string, std::vector< double > > const &mConstV, std::map< std::string, Belle2::TRGCDCJSignal > &mSignalStorage, std::map< std::string, Belle2::TRGCDCJLUT * > &mLutStorage) |
Calculates arc length using JSignal and multiple constants. | |
static double | calIZError2 (int lr, double driftZError, double wireZError) |
Chooses and calculates inverse z error. | |
static double | calDen (double *arcS, double *zError) |
Calculates the denominator for fitting z and arc s. | |
static double | calDenWithIZError (double *arcS, double *iZError) |
Calculates the denominator for fitting z and arc s. | |
static void | rSFit (double *iezz2, double *arcS, double *zz, double &z0, double &cot, double &zchi2) |
3D fitter functions Fits z and arc S. | |
static void | rSFit2 (double *iezz21, double *iezz22, double *arcS, double *zz, int *lutv, double &z0, double &cot, double &zchi2) |
Fits z and arc S. (Will be deprecated.) | |
static void | rSFit (std::map< std::string, double > const &mConstD, std::map< std::string, std::vector< double > > const &mConstV, std::map< std::string, Belle2::TRGCDCJSignal > &mSignalStorage, std::map< std::string, Belle2::TRGCDCJLUT * > &mLutStorage) |
Fits z and arc S using JSingal with multiple constants. | |
static void | fitter3D (std::map< std::string, std::vector< double > > &stGeometry, std::vector< std::vector< double > > const &stXts, int eventTimeValid, int eventTime, std::vector< std::vector< int > > const &rawStTSs, int charge, double radius, double phi_c, double &z0, double &cot, double &chi2) |
Combines several functions for fitter3D. | |
static void | fitter3D (std::map< std::string, std::vector< double > > &stGeometry, std::vector< std::vector< double > > const &stXts, int eventTimeValid, int eventTime, std::vector< std::vector< int > > const &rawStTSs, int charge, double radius, double phi_c, double &z0, double &cot, double &chi2, std::vector< double > &arcS, std::vector< double > &zz, std::vector< double > &invZError2) |
Combines several functions for fitter3D. Also outputs arcS, zz and invZError2. | |
static void | fitter3DFirm (std::map< std::string, double > &mConstD, const std::map< std::string, std::vector< double > > &mConstV, int eventTimeValid, int eventTime, std::vector< std::vector< int > > const &rawStTSs, int charge, double radius, double phi_c, Belle2::TRGCDCJSignalData *commonData, std::map< std::string, Belle2::TRGCDCJSignal > &mSignalStorage, std::map< std::string, Belle2::TRGCDCJLUT * > &mLutStorage) |
Combines several functions for fitter3D firmware. | |
static void | findImpactPosition (ROOT::Math::XYZVector *mcPosition, ROOT::Math::PxPyPzEVector *mcMomentum, int charge, ROOT::Math::XYVector &helixCenter, ROOT::Math::XYZVector &impactPosition) |
MC calculation functions Calculates the impact position of track. | |
static void | calHelixParameters (ROOT::Math::XYZVector position, ROOT::Math::XYZVector momentum, int charge, TVectorD &helixParameters) |
HelixParameters: dR, phi0, keppa, dz, tanLambda Calculates the helix parameters of track. | |
static void | calVectorsAtR (const TVectorD &helixParameters, int charge, double radius, ROOT::Math::XYZVector &position, ROOT::Math::XYZVector &momentum) |
Calculates position and momentum at a certain radius. | |
static int | bitSize (int numberBits, int mode) |
Firmware convert functions. | |
static void | changeInteger (int &integer, double real, double minValue, double maxValue, int bitSize) |
Changes float to integer value. | |
static void | changeReal (double &real, int integer, double minValue, double maxValue, int bitSize) |
Changes integer to float value. | |
static void | findExtreme (double &m_max, double &m_min, double value) |
Finds maximum and minium values. | |
A class that holds functions for 3D tracking.
Definition at line 32 of file Fitter3DUtility.h.
|
static |
Firmware convert functions.
Old firmware functions. Currently used in Hough3DFinder. Calculates maximum for a given number of bits. (Will be deprecated.)
Definition at line 1986 of file Fitter3DUtility.cc.
|
static |
Calculates the phi difference between fitted axial phi and stereo phi.
Definition at line 805 of file Fitter3DUtility.cc.
|
static |
Calculates the denominator for fitting z and arc s.
Definition at line 1276 of file Fitter3DUtility.cc.
|
static |
Calculates the denominator for fitting z and arc s.
Definition at line 1289 of file Fitter3DUtility.cc.
|
static |
HelixParameters: dR, phi0, keppa, dz, tanLambda Calculates the helix parameters of track.
Definition at line 1949 of file Fitter3DUtility.cc.
|
static |
Pre 3D fitter functions. rr is in cm scale. driftLength is in cm scale.
Definition at line 239 of file Fitter3DUtility.cc.
|
static |
Pre 3D fitter functions.
Definition at line 258 of file Fitter3DUtility.cc.
|
static |
Pre 3D fitter functions.
Definition at line 265 of file Fitter3DUtility.cc.
|
static |
Calculates phi.
Definition at line 271 of file Fitter3DUtility.cc.
|
static |
Calculates phi with fast simulation.
Definition at line 583 of file Fitter3DUtility.cc.
|
static |
Calculates arc length.
Definition at line 1204 of file Fitter3DUtility.cc.
|
static |
Calculates arc length using JSignal and multiple constants.
Definition at line 1211 of file Fitter3DUtility.cc.
|
static |
Calculates the fitted axial phi for the stereo super layer.
Definition at line 785 of file Fitter3DUtility.cc.
|
static |
Calculates position and momentum at a certain radius.
Definition at line 1967 of file Fitter3DUtility.cc.
|
static |
Calculates z.
Definition at line 892 of file Fitter3DUtility.cc.
|
static |
Calculates z using JSignal and multiple constants.
Definition at line 911 of file Fitter3DUtility.cc.
|
static |
Changes float to integer value.
Definition at line 2002 of file Fitter3DUtility.cc.
|
static |
Changes integer to float value.
Definition at line 2015 of file Fitter3DUtility.cc.
|
static |
Charge finder using circle fitter output and axial TSs.
Definition at line 142 of file Fitter3DUtility.cc.
|
static |
Constrains R for each SL differently using JSignal and multiple constants.
Definition at line 825 of file Fitter3DUtility.cc.
|
static |
Finds maximum and minium values.
Definition at line 2028 of file Fitter3DUtility.cc.
|
static |
MC calculation functions Calculates the impact position of track.
Definition at line 1922 of file Fitter3DUtility.cc.
|
static |
Finds quadrant of angle. Angle is in rad.
Definition at line 641 of file Fitter3DUtility.cc.
|
static |
2D fitter functions
Definition at line 40 of file Fitter3DUtility.cc.
|
static |
Combines several functions for fitter3D.
Definition at line 1842 of file Fitter3DUtility.cc.
|
static |
Combines several functions for fitter3D. Also outputs arcS, zz and invZError2.
Definition at line 1854 of file Fitter3DUtility.cc.
|
static |
Combines several functions for fitter3D firmware.
Definition at line 1876 of file Fitter3DUtility.cc.
|
static |
Load stereo Xt file.
Definition at line 557 of file Fitter3DUtility.cc.
|
static |
Rotates to range [-pi, pi].
Definition at line 609 of file Fitter3DUtility.cc.
|
static |
Rotates to range [-pi, pi]. Use tsId as reference.
Definition at line 623 of file Fitter3DUtility.cc.
|
static |
Rotates to range [0, nTSs-1].
Definition at line 629 of file Fitter3DUtility.cc.
|
static |
A circle fitter.
Definition at line 60 of file Fitter3DUtility.cc.
|
static |
A circle fitter.
Definition at line 179 of file Fitter3DUtility.cc.
|
static |
A circle fitter with invPhiError without fit chi2 output.
Definition at line 72 of file Fitter3DUtility.cc.
|
static |
A circle fitter with invPhiError with fit chi2 output.
Definition at line 80 of file Fitter3DUtility.cc.
|
static |
3D fitter functions Fits z and arc S.
Definition at line 1303 of file Fitter3DUtility.cc.
|
static |
Fits z and arc S using JSingal with multiple constants.
Definition at line 1396 of file Fitter3DUtility.cc.
|
static |
Fits z and arc S. (Will be deprecated.)
Definition at line 1343 of file Fitter3DUtility.cc.
|
static |
Saves stereo Xt to file.
Definition at line 543 of file Fitter3DUtility.cc.
|
static |
Sets error using JSignal class.
Definition at line 681 of file Fitter3DUtility.cc.
|
static |
Sets error for fitting.
Definition at line 663 of file Fitter3DUtility.cc.
|
static |
Converts stereo ts id to phi.
Definition at line 576 of file Fitter3DUtility.cc.
|
static |
Changes tdc and event time to unsigned value that has # bits.
Definition at line 226 of file Fitter3DUtility.cc.