Project
Loading...
Searching...
No Matches
DetectorNameConf.h
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#ifndef ALICEO2_DETECTOR_NAME_GENERATOR_H_
13#define ALICEO2_DETECTOR_NAME_GENERATOR_H_
14
17
20namespace o2
21{
22namespace base
23{
24
25// Class for standardization of the names for output files and trees
27{
29
30 public:
31 // The Hits file name are generated by hardcoded schema, only prefix is mutable to allow the embedding
32 static std::string getHitsFileName(DId d, const std::string_view prefix = STANDARDSIMPREFIX)
33 {
34 return o2::utils::Str::concat_string(prefix, "_", HITS_STRING, d.getName(), ".root");
35 }
36
37 // The Digits file name are generated by hardcoded schema, only prefix is mutable to allow the embedding
38 static std::string getDigitsFileName(DId d, const std::string_view prefix = STANDARDSIMPREFIX)
39 {
40 return o2::utils::Str::concat_string(prefix, "_", DIGITS_STRING, d.getName(), ".root");
41 }
42
43 // Filename to for decoding dictionaries
44 static std::string getAlpideClusterDictionaryFileName(DId det, const std::string_view prefix = "", const std::string_view ext = "bin");
45
46 // Filename to for noise maps
47 static std::string getNoiseFileName(DId det, const std::string_view prefix = "", const std::string_view ext = "");
48
49 // The alignment object path in CCDB
50 static std::string getAlignmentPath(DId d)
51 {
53 }
54
56};
57
58} // namespace base
59} // namespace o2
60
61#endif
Definition of the Names Generator class.
static std::string getHitsFileName(DId d, const std::string_view prefix=STANDARDSIMPREFIX)
static std::string getAlignmentPath(DId d)
ClassDefNV(DetectorNameConf, 0)
static std::string getAlpideClusterDictionaryFileName(DId det, const std::string_view prefix="", const std::string_view ext="bin")
static std::string getDigitsFileName(DId d, const std::string_view prefix=STANDARDSIMPREFIX)
static std::string getNoiseFileName(DId det, const std::string_view prefix="", const std::string_view ext="")
static constexpr std::string_view ALIGNPATH
Definition NameConf.h:131
static constexpr std::string_view DIGITS_STRING
Definition NameConf.h:114
static constexpr std::string_view STANDARDSIMPREFIX
Definition NameConf.h:112
static constexpr std::string_view HITS_STRING
Definition NameConf.h:113
Static class with identifiers, bitmasks and names for ALICE detectors.
Definition DetID.h:58
static constexpr const char * getName(ID id)
names of defined detectors
Definition DetID.h:145
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
static std::string concat_string(Ts const &... ts)