Project
Loading...
Searching...
No Matches
DetectorLists.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_DETECTORLISTS_H_
13#define O2_DETECTORLISTS_H_
14
15#include <string>
16#include <unordered_map>
17#include <vector>
18
19#include "Framework/Logger.h"
20
21namespace o2::conf
22{
23// Container defining different general evolutions of the ALICE experiment. Each
24// evolution is given a name and a list defining the names of the detectors and
25// passive elements present.
26using DetectorList_t = std::vector<std::string>;
27using DetectorMap_t = std::unordered_map<std::string, DetectorList_t>;
28
29// Parse the detector map from a JSON file.
30// Return false if parsing failed.
31bool parseDetectorMapfromJSON(const std::string& path, DetectorMap_t& map);
32
33// Print the DetetectorMap
34void printDetMap(const DetectorMap_t& map, const std::string& list = "");
35} // namespace o2::conf
36
37#endif // O2_DETECTORLISTS_H_
GLsizei const GLchar *const * path
Definition glcorearb.h:3591
std::vector< std::string > DetectorList_t
void printDetMap(const DetectorMap_t &map, const std::string &list="")
std::unordered_map< std::string, DetectorList_t > DetectorMap_t
bool parseDetectorMapfromJSON(const std::string &path, DetectorMap_t &map)
Definition list.h:40