|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef FPGATrackSimFUNCTIONS_H
12 #define FPGATrackSimFUNCTIONS_H
16 #include <TObjArray.h>
18 #include <TObjString.h>
19 #include <TTreeReader.h>
20 #include <TTreeReaderValue.h>
44 std::vector<uint32_t>
out;
46 while (setbit != 0 &&
x != 0)
48 if (
x & 1)
out.push_back(setbit);
63 if (
x & 1)
return bit;
72 inline unsigned divUp(
unsigned x,
unsigned y)
75 return 1 + ((
x - 1) /
y);
108 std::vector<std::vector<int>>
getComboIndices(std::vector<size_t>
const & sizes);
122 double rms95(TH1
const *
h);
130 #endif // FPGATrackSimFUNCTIONS_H
uint32_t grayToBinary32(uint32_t num)
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)
double fieldCorrection(unsigned region, double qpt, double r)
std::vector< uint32_t > splitSetBits32(uint32_t x)
int firstSetBit32(uint32_t x)
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 e...
uint32_t binaryToGray(uint32_t num)
unsigned divUp(unsigned x, unsigned y)
: FPGATrackSim-specific class to represent an hit in the detector.
double rms95(TH1 const *h)
This function is used to calculate RMS95 value for 1D histograms.