![]() |
ATLAS Offline Software
|
#include <TString.h>#include <TObjArray.h>#include <TH1.h>#include <TObjString.h>#include <TTreeReader.h>#include <TTreeReaderValue.h>#include "FPGATrackSimObjects/FPGATrackSimTypes.h"#include "FPGATrackSimObjects/FPGATrackSimHit.h"#include <cmath>#include <vector>#include <sstream>Go to the source code of this file.
Functions | |
| std::vector< uint32_t > | splitSetBits32 (uint32_t x) |
| int | firstSetBit32 (uint32_t x) |
| unsigned | divUp (unsigned x, unsigned y) |
| uint32_t | binaryToGray (uint32_t num) |
| uint32_t | grayToBinary32 (uint32_t num) |
| std::vector< std::vector< int > > | getComboIndices (std::vector< size_t > const &sizes) |
| Given a vector of sizes (of arrays), generates a vector of all combinations of indices to index one element from each array. More... | |
| double | rms95 (TH1 const *h) |
| This function is used to calculate RMS95 value for 1D histograms. More... | |
| double | fieldCorrection (unsigned region, double qoverpt, double r) |
| std::vector< float > | computeIdealCoords (const FPGATrackSimHit &hit, const double hough_x, const double hough_y, const double target_r, const bool doDeltaGPhis, const TrackCorrType trackCorrType) |
|
inline |
Definition at line 80 of file FPGATrackSimFunctions.h.
| std::vector<float> computeIdealCoords | ( | const FPGATrackSimHit & | hit, |
| const double | hough_x, | ||
| const double | hough_y, | ||
| const double | target_r, | ||
| const bool | doDeltaGPhis, | ||
| const TrackCorrType | trackCorrType | ||
| ) |
Definition at line 116 of file FPGATrackSimFunctions.cxx.
|
inline |
Definition at line 72 of file FPGATrackSimFunctions.h.
| double fieldCorrection | ( | unsigned | region, |
| double | qoverpt, | ||
| double | r | ||
| ) |
Definition at line 163 of file FPGATrackSimFunctions.cxx.
|
inline |
Definition at line 58 of file FPGATrackSimFunctions.h.
| std::vector<std::vector<int> > getComboIndices | ( | std::vector< size_t > const & | sizes | ) |
Given a vector of sizes (of arrays), generates a vector of all combinations of indices to index one element from each array.
For example, given [2 3], generates [(0 0) (1 0) (0 1) (1 1) (0 2) (1 2)].
Given a vector of sizes (of arrays), generates a vector of all combinations of indices to index one element from each array.
For example, given [2 3], generates [(0 0) (1 0) (0 1) (1 1) (0 2) (1 2)].
This basically amounts to a positional number system of where each digit has its own base. The number of digits is sizes.size(), and the base of digit i is sizes[i]. Then all combinations can be uniquely represented just by counting from [0, nCombs).
For a decimal number like 1357, you get the thousands digit with n / 1000 = n / (10 * 10 * 10). So here, you get the 0th digit with n / (base_1 * base_2 * base_3);
Definition at line 21 of file FPGATrackSimFunctions.cxx.
|
inline |
| double rms95 | ( | TH1 const * | h | ) |
This function is used to calculate RMS95 value for 1D histograms.
It was ported from https://gitlab.cern.ch:8443/fpastore/l1tracksim/-/blob/master/PatRec/macros/FraMacros/Functions.cxx#L253 See more details there.
Definition at line 60 of file FPGATrackSimFunctions.cxx.
|
inline |
1.8.18