-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TPC: Multiple fixes and extensions (#13533)
* fix completion policy * Add possibility for a common file name extension saving canvases * Extend FW parameter file creation * Allow for different thresholds for each ROC Type in pedestal file creation * Add common mode k-values in float precision and inverse k-factors with truncated precision * Digit class extension for simple drawing * Extend TPC refitter * possibility to dump ITS-TPC * Tsallis downsampling * MB sampling * shared flag added to native clusters * Charge info now via native clusters * Write full native clusters * add occupancy info * add cosmics refitting with TOF cluster time * Extend time gain calibration * Undo previous timeGain corrections to allow for residual calibration * slot length in seconds * slot extension for CCDB (for residual calibration) * simple looper cut * settable debug output name * dumping of calibration histograms per slot * debug output on track level * average entries for calibration * Update event display - Pad vs time view for a single row * visualisation of hovered time bin in ADC vs. time - cluster overlay in pad vs. time view * selection of cluster flags - Pad vs. row view for a single time bin * visualisation of hovered time bin in ADC vs. time
- Loading branch information
Showing
31 changed files
with
1,571 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
/// \author Jens Wiechula, [email protected] | ||
/// | ||
|
||
#include <string> | ||
#include <vector> | ||
#include <string_view> | ||
|
||
|
@@ -44,9 +45,9 @@ namespace utils | |
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 = ""); | ||
void saveCanvases(std::vector<TCanvas*>& canvases, std::string_view outDir, std::string_view types = "png,pdf", std::string_view rootFileName = ""); | ||
void saveCanvas(TCanvas& c, std::string_view outDir, std::string_view types); | ||
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); | ||
|
||
|
@@ -69,6 +70,19 @@ void mergeCalPads(std::string_view outputFileName, std::string_view inputFileNam | |
/// \param treeTitle title of the tree | ||
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 = ", ") | ||
{ | ||
return std::accumulate(std::next(begin), end, std::to_string(*begin), | ||
[&separator](auto s, auto f) { return std::move(s) + separator + std::to_string(f); }); | ||
} | ||
|
||
template <typename T> | ||
std::string elementsToString(const T& val, const std::string separator = ", ") | ||
{ | ||
return elementsToString(val.begin(), val.end(), separator); | ||
} | ||
|
||
} // namespace utils | ||
} // namespace o2::tpc | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.