![]() |
Project
|
Functions | |
const std::vector< std::string > | tokenize (const std::string_view input, const std::string_view pattern) |
TH1 * | getBinInfoXY (int &binx, int &biny, float &bincx, float &bincy) |
void | addFECInfo () |
void | saveCanvases (TObjArray &arr, std::string_view outDir, std::string_view types="png,pdf", std::string_view rootFileName="", std::string nameAdd="") |
void | saveCanvases (std::vector< TCanvas * > &canvases, std::string_view outDir, std::string_view types="png,pdf", std::string_view rootFileName="", std::string nameAdd="") |
void | saveCanvas (TCanvas &c, std::string_view outDir, std::string_view types, std::string nameAdd="") |
std::vector< CalPad * > | readCalPads (const std::string_view fileName, const std::vector< std::string > &calPadNames) |
std::vector< CalPad * > | readCalPads (const std::string_view fileName, const std::string_view calPadNames) |
void | mergeCalPads (std::string_view outputFileName, std::string_view inputFileNames, std::string_view calPadNames, bool average=false) |
TChain * | buildChain (std::string_view command, std::string_view treeName, std::string_view treeTitle="", bool checkSubDir=false) |
template<typename Iterator > | |
std::string | elementsToString (Iterator begin, Iterator end, const std::string separator=", ") |
template<typename T > | |
std::string | elementsToString (const T &val, const std::string separator=", ") |
TChain * o2::tpc::utils::buildChain | ( | std::string_view | command, |
std::string_view | treeName, | ||
std::string_view | treeTitle = "" , |
||
bool | checkSubDir = false |
||
) |
std::string o2::tpc::utils::elementsToString | ( | const T & | val, |
const std::string | separator = ", " |
||
) |
std::string o2::tpc::utils::elementsToString | ( | Iterator | begin, |
Iterator | end, | ||
const std::string | separator = ", " |
||
) |
void o2::tpc::utils::mergeCalPads | ( | std::string_view | outputFileName, |
std::string_view | inputFileNames, | ||
std::string_view | calPadNames, | ||
bool | average = false |
||
) |
Merge cal pad objects from different files
Requires that all objects have the same name in the differnet files. Objects are simply added.
outputFileName | name of the output file |
inputFileNames | input file names. Perforams file system 'ls' in case the string includes '.root'. Otherwise it assumes a text input file with line by line file names. |
calPadNames | comma separated list of names of the CalPad objects as stored in the file. |
std::vector< CalPad * > o2::tpc::utils::readCalPads | ( | const std::string_view | fileName, |
const std::string_view | calPadNames | ||
) |
std::vector< CalPad * > o2::tpc::utils::readCalPads | ( | const std::string_view | fileName, |
const std::vector< std::string > & | calPadNames | ||
) |
void o2::tpc::utils::saveCanvas | ( | TCanvas & | c, |
std::string_view | outDir, | ||
std::string_view | types, | ||
std::string | nameAdd = "" |
||
) |
void o2::tpc::utils::saveCanvases | ( | std::vector< TCanvas * > & | canvases, |
std::string_view | outDir, | ||
std::string_view | types = "png,pdf" , |
||
std::string_view | rootFileName = "" , |
||
std::string | nameAdd = "" |
||
) |
void o2::tpc::utils::saveCanvases | ( | TObjArray & | arr, |
std::string_view | outDir, | ||
std::string_view | types = "png,pdf" , |
||
std::string_view | rootFileName = "" , |
||
std::string | nameAdd = "" |
||
) |
const std::vector< std::string > o2::tpc::utils::tokenize | ( | const std::string_view | input, |
const std::string_view | pattern | ||
) |
Inspired by https://stackoverflow.com/questions/9435385/split-a-string-using-c11 could be optimized for speed, see e.g. https://stackoverflow.com/questions/14205096/c11-regex-slower-than-python