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 {
52 return o2::utils::Str::concat_string(d.getName(), "/", ALIGNPATH);
53 }
54
56};
57
58} // namespace base
59} // namespace o2
60
61#endif
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events d
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:137
static constexpr std::string_view DIGITS_STRING
Definition NameConf.h:120
static constexpr std::string_view STANDARDSIMPREFIX
Definition NameConf.h:118
static constexpr std::string_view HITS_STRING
Definition NameConf.h:119
Static class with identifiers, bitmasks and names for ALICE detectors.
Definition DetID.h:60
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
static std::string concat_string(Ts const &... ts)