QualityControl  1.5.1
O2 Data Quality Control Framework
InputUtils.h
1 // Copyright CERN and copyright holders of ALICE O2. This software is
2 // distributed under the terms of the GNU General Public License v3 (GPL
3 // Version 3), copied verbatim in the file "COPYING".
4 //
5 // See http://alice-o2.web.cern.ch/license for full licensing information.
6 //
7 // In applying this license CERN does not waive the privileges and immunities
8 // granted to it by virtue of its status as an Intergovernmental Organization
9 // or submit itself to any jurisdiction.
10 
11 #ifndef QC_INPUT_UTILS_H
12 #define QC_INPUT_UTILS_H
13 
14 // std
15 #include <utility>
16 #include <vector>
17 #include <string>
18 //o2
19 #include <Framework/DataProcessorSpec.h>
20 #include <Framework/DataSpecUtils.h>
21 
22 inline std::vector<std::string> stringifyInput(o2::framework::Inputs& inputs)
23 {
24  std::vector<std::string> vec;
25  for (auto& input : inputs) {
26  vec.push_back(o2::framework::DataSpecUtils::describe(input));
27  }
28  return vec;
29 }
30 
31 #endif