12#ifndef ALICEO2_TPC_UTILS_H_
13#define ALICEO2_TPC_UTILS_H_
45const std::vector<std::string>
tokenize(
const std::string_view input,
const std::string_view
pattern);
46TH1*
getBinInfoXY(
int& binx,
int& biny,
float& bincx,
float& bincy);
48void saveCanvases(TObjArray& arr, std::string_view outDir, std::string_view
types =
"png,pdf", std::string_view rootFileName =
"", std::string nameAdd =
"");
49void saveCanvases(std::vector<TCanvas*>& canvases, std::string_view outDir, std::string_view
types =
"png,pdf", std::string_view rootFileName =
"", std::string nameAdd =
"");
50void saveCanvas(TCanvas&
c, std::string_view outDir, std::string_view
types, std::string nameAdd =
"");
51std::vector<CalPad*>
readCalPads(
const std::string_view fileName,
const std::vector<std::string>& calPadNames);
52std::vector<CalPad*>
readCalPads(
const std::string_view fileName,
const std::string_view calPadNames);
61void mergeCalPads(std::string_view outputFileName, std::string_view inputFileNames, std::string_view calPadNames,
bool average =
false);
71TChain*
buildChain(std::string_view command, std::string_view treeName, std::string_view treeTitle =
"",
bool checkSubDir =
false);
73template <
typename Iterator>
77 [&separator](
auto s,
auto f) {
return std::move(s) + separator +
std::to_string(
f); });
GLsizei GLenum GLenum * types
const std::vector< std::string > tokenize(const std::string_view input, const std::string_view pattern)
std::vector< CalPad * > readCalPads(const std::string_view fileName, const std::vector< std::string > &calPadNames)
TH1 * getBinInfoXY(int &binx, int &biny, float &bincx, float &bincy)
std::string elementsToString(Iterator begin, Iterator end, const std::string separator=", ")
void mergeCalPads(std::string_view outputFileName, std::string_view inputFileNames, std::string_view calPadNames, bool average=false)
void saveCanvases(TObjArray &arr, std::string_view outDir, std::string_view types="png,pdf", std::string_view rootFileName="", std::string nameAdd="")
TChain * buildChain(std::string_view command, std::string_view treeName, std::string_view treeTitle="", bool checkSubDir=false)
void saveCanvas(TCanvas &c, std::string_view outDir, std::string_view types, std::string nameAdd="")
Global TPC definitions and constants.
Enum< T >::Iterator begin(Enum< T >)
std::string to_string(gsl::span< T, Size > span)
Common utility functions.
std::array< uint16_t, 5 > pattern