ATLAS Offline Software
Loading...
Searching...
No Matches
PixelDigitizationUtilities.h
Go to the documentation of this file.
1/*
2
3 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4
5 */
6
7#ifndef PIXELDIGITIZATION_UTILITIES_H
8#define PIXELDIGITIZATION_UTILITIES_H
9
10#include <string>
11#include <tuple>
12#include <vector>
13#include <utility>
14
15namespace PixelChargeCalib{
16 struct Thresholds;
17}
18
19namespace CLHEP{
20 class HepRandomEngine;
21}
22struct BichselData;
23
24namespace PixelDigitization{
25 std::string
26 formBichselDataFileName(int particleType, unsigned int nCols);
27
28 BichselData
29 getBichselDataFromFile(const std::string & fullFilename);
30
31 std::tuple<double, double, double>
32 parseThreeDoubles(const std::string & line);
33
34 std::pair<int, int>
35 fastSearch(const std::vector<double> & vec, double item);
36
37 double
38 randomThreshold(const PixelChargeCalib::Thresholds & thresholds, CLHEP::HepRandomEngine* pEngine);
39
40
41}
42
43
44
45#endif
std::vector< size_t > vec
std::tuple< double, double, double > parseThreeDoubles(const std::string &line)
std::string formBichselDataFileName(int particleType, unsigned int nCols)
BichselData getBichselDataFromFile(const std::string &fullFilename)
std::pair< int, int > fastSearch(const std::vector< double > &vec, double item)
double randomThreshold(const PixelChargeCalib::Thresholds &t, CLHEP::HepRandomEngine *pEngine)