Project
Loading...
Searching...
No Matches
Configuration.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#include <format>
14
16
17namespace o2::its
18{
19
21{
22 switch (mode) {
24 return "sync";
26 return "async";
28 return "cosmics";
30 return "unset";
31 }
32 return "unknown";
33}
34
35std::ostream& operator<<(std::ostream& os, TrackingMode v)
36{
37 os << asString(v);
38 return os;
39}
40
42{
43 std::string str = std::format("NZb:{} NPhB:{} NROFIt:{} PerVtx:{} DropFail:{} ClSh:{} TtklMinPt:{:.2f} MinCl:{}",
45 bool first = true;
46 for (int il = NLayers; il >= MinTrackLength; il--) {
47 int slot = NLayers - il;
48 if (slot < (int)MinPt.size() && MinPt[slot] > 0) {
49 if (first) {
50 first = false;
51 str += " MinPt: ";
52 }
53 str += std::format("L{}:{:.2f} ", il, MinPt[slot]);
54 }
55 }
56 str += " SystErrY/Z:";
57 for (size_t i = 0; i < SystErrorY2.size(); i++) {
58 str += std::format("{:.2e}/{:.2e} ", SystErrorY2[i], SystErrorZ2[i]);
59 }
60 str += std::format(" MemLimit {:.2f} GB", double(MaxMemory) / constants::GB);
61 return str;
62}
63
65{
66 std::string str = std::format("NZb:{} NPhB:{} DRof:{} ClsCont:{} MaxTrkltCls:{} ZCut:{} PhCut:{}", ZBins, PhiBins, deltaRof, clusterContributorsCut, maxTrackletsPerCluster, zCut, phiCut);
67 str += std::format(" MemLimit {:.2f} GB", double(MaxMemory) / constants::GB);
68 return str;
69}
70
71} // namespace o2::its
int32_t i
GLenum mode
Definition glcorearb.h:266
const GLdouble * v
Definition glcorearb.h:832
constexpr float GB
Definition Constants.h:39
std::string asString(TrackingMode mode)
std::ostream & operator<<(std::ostream &os, Detector &source)
std::vector< float > SystErrorY2
std::vector< float > SystErrorZ2
float TrackletMinPt
Trackleting cuts.
int ClusterSharing
General parameters.
std::vector< float > MinPt
std::string asString() const
std::string asString() const
const std::string str