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
13
14namespace o2::its
15{
17{
18 switch (mode) {
20 return "sync";
22 return "async";
24 return "cosmics";
26 return "unset";
27 }
28 return "unknown";
29}
30
32{
33 std::string str = fmt::format("NZb:{} NPhB:{} NROFIt:{} PerVtx:{} DropFail:{} ClSh:{} TtklMinPt:{:.2f} MinCl:{}",
35 bool first = true;
36 for (int il = NLayers; il >= MinTrackLength; il--) {
37 int slot = NLayers - il;
38 if (slot < (int)MinPt.size() && MinPt[slot] > 0) {
39 if (first) {
40 first = false;
41 str += " MinPt: ";
42 }
43 str += fmt::format("L{}:{:.2f} ", il, MinPt[slot]);
44 }
45 }
46 str += " SystErrY/Z:";
47 for (size_t i = 0; i < SystErrorY2.size(); i++) {
48 str += fmt::format("{:.2e}/{:.2e} ", SystErrorY2[i], SystErrorZ2[i]);
49 }
50 return str;
51}
52
53std::ostream& operator<<(std::ostream& os, TrackingMode v)
54{
55 os << asString(v);
56 return os;
57}
58} // namespace o2::its
int32_t i
GLenum mode
Definition glcorearb.h:266
const GLdouble * v
Definition glcorearb.h:832
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
const std::string str