Project
Loading...
Searching...
No Matches
DCSAliases.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 O2_MCH_CONDITIONS_DCS_ALIASES_H
13#define O2_MCH_CONDITIONS_DCS_ALIASES_H
14
20#include "MCHConditions/Plane.h"
21#include "MCHConditions/Side.h"
22#include <string>
23#include <vector>
24
25namespace o2::mch::dcs
26{
27
28/* aliases gets a list of MCH DCS aliases for the given measurement type(s).
29 * @param types a vector of the measurement types for which the aliases should
30 * be returned.
31 * @returns a list of MCH DCS alias names.
32 */
33std::vector<std::string> aliases(std::vector<MeasurementType> types = {
34 MeasurementType::HV_V,
35 MeasurementType::HV_I,
36 MeasurementType::LV_V_FEE_ANALOG,
37 MeasurementType::LV_V_FEE_DIGITAL,
38 MeasurementType::LV_V_SOLAR});
39
40/* check if alias is a valid alias */
41bool isValid(std::string_view dcsAlias);
42
43template <typename T>
44std::ostream& operator<<(std::ostream& os, T& object)
45{
46 os << name(object);
47 return os;
48}
49
50} // namespace o2::mch::dcs
51
52#endif
GLsizei GLenum GLenum * types
Definition glcorearb.h:2516
GLuint const GLchar * name
Definition glcorearb.h:781
std::vector< std::string > aliases(std::vector< MeasurementType > types={ MeasurementType::HV_V, MeasurementType::HV_I, MeasurementType::LV_V_FEE_ANALOG, MeasurementType::LV_V_FEE_DIGITAL, MeasurementType::LV_V_SOLAR})
bool isValid(std::string_view dcsAlias)
std::ostream & operator<<(std::ostream &stream, o2::InteractionRecord const &ir)