Project
Loading...
Searching...
No Matches
DetectorNameConf.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#include <fmt/format.h>
14#include <memory>
15
16using namespace o2::base;
17
18// Filename to store ITSMFT cluster dictionary
19std::string DetectorNameConf::getAlpideClusterDictionaryFileName(DetectorNameConf::DId det, const std::string_view prefix, const std::string_view ext)
20{
21 return buildFileName(prefix, "", det.getName(), ALPIDECLUSDICTFILENAME, ext);
22}
23
24// Filename to store detector specific noise maps
25std::string DetectorNameConf::getNoiseFileName(DetectorNameConf::DId det, const std::string_view prefix, const std::string_view ext)
26{
27 return buildFileName(prefix, "", det.getName(), NOISEFILENAME, ext);
28}
Definition of the Names Generator class.
static std::string getAlpideClusterDictionaryFileName(DId det, const std::string_view prefix="", const std::string_view ext="bin")
static std::string getNoiseFileName(DId det, const std::string_view prefix="", const std::string_view ext="")
static constexpr std::string_view NOISEFILENAME
Definition NameConf.h:128
static std::string buildFileName(const std::string_view prefix, const std::string_view delimiter, const std::string_view defPrefix, const std::string_view defName, const std::string_view extension, const std::string_view optDir="")
Definition NameConf.cxx:20
static constexpr std::string_view ALPIDECLUSDICTFILENAME
Definition NameConf.h:127
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