|
10 | 10 | // or submit itself to any jurisdiction. |
11 | 11 |
|
12 | 12 | /// |
13 | | -/// \file QualitiesToTRFCollectionConverter.h |
| 13 | +/// \file QualitiesToFlagCollectionConverter.h |
14 | 14 | /// \author Piotr Konopka |
15 | 15 | /// |
16 | 16 |
|
17 | | -#ifndef QUALITYCONTROL_QUALITIESTOTRFCOLLECTIONCONVERTER_H |
18 | | -#define QUALITYCONTROL_QUALITIESTOTRFCOLLECTIONCONVERTER_H |
| 17 | +#ifndef QUALITYCONTROL_QUALITIESTOQCFCOLLECTIONCONVERTER_H |
| 18 | +#define QUALITYCONTROL_QUALITIESTOQCFCOLLECTIONCONVERTER_H |
19 | 19 |
|
20 | | -#include <DataFormatsQualityControl/TimeRangeFlag.h> |
| 20 | +#include <DataFormatsQualityControl/QualityControlFlag.h> |
| 21 | +#include <DataFormatsQualityControl/QualityControlFlagCollection.h> |
21 | 22 | #include <memory> |
22 | 23 | #include <vector> |
23 | 24 |
|
24 | | -namespace o2::quality_control |
25 | | -{ |
26 | | -class TimeRangeFlagCollection; |
27 | | -} |
28 | | - |
29 | 25 | namespace o2::quality_control::core |
30 | 26 | { |
31 | 27 |
|
32 | 28 | class QualityObject; |
33 | 29 |
|
34 | | -/// \brief Converts a set of chronologically provided Qualities from the same path into a TRFCollection. |
35 | | -class QualitiesToTRFCollectionConverter |
| 30 | +/// \brief Converts a set of chronologically provided Qualities from the same path into a QualityControlFlagCollection. |
| 31 | +class QualitiesToFlagCollectionConverter |
36 | 32 | { |
37 | 33 | public: |
38 | | - QualitiesToTRFCollectionConverter(std::unique_ptr<TimeRangeFlagCollection> trfc, std::string qoPath); |
| 34 | + QualitiesToFlagCollectionConverter(std::unique_ptr<QualityControlFlagCollection> qcfc, std::string qoPath); |
39 | 35 |
|
40 | | - ~QualitiesToTRFCollectionConverter() = default; |
| 36 | + ~QualitiesToFlagCollectionConverter() = default; |
41 | 37 |
|
42 | | - /// \brief Converts a Quality into TRFCollection. The converter should get Qualities in chronological order. |
| 38 | + /// \brief Converts a Quality into FlagCollection. The converter should get Qualities in chronological order. |
43 | 39 | void operator()(const QualityObject&); |
44 | 40 |
|
45 | | - /// \brief Moves the final TRFCollection out and resets the converter. |
46 | | - std::unique_ptr<TimeRangeFlagCollection> getResult(); |
| 41 | + /// \brief Moves the final FlagCollection out and resets the converter. |
| 42 | + std::unique_ptr<QualityControlFlagCollection> getResult(); |
47 | 43 |
|
48 | 44 | size_t getQOsIncluded() const; |
49 | 45 | size_t getWorseThanGoodQOs() const; |
50 | 46 |
|
51 | 47 | private: |
52 | | - std::string mQOPath; // this is only to indicate what is the missing Quality in TRF |
| 48 | + std::string mQOPath; // this is only to indicate what is the missing Quality in QC Flag |
53 | 49 |
|
54 | | - std::unique_ptr<TimeRangeFlagCollection> mConverted; |
| 50 | + std::unique_ptr<QualityControlFlagCollection> mConverted; |
55 | 51 |
|
56 | 52 | uint64_t mCurrentStartTime = 0; |
57 | 53 | uint64_t mCurrentEndTime; |
58 | | - std::vector<TimeRangeFlag> mCurrentTRFs; |
| 54 | + std::vector<QualityControlFlag> mCurrentFlags; |
59 | 55 | size_t mQOsIncluded = 0; |
60 | 56 | size_t mWorseThanGoodQOs = 0; |
61 | 57 | }; |
62 | 58 |
|
63 | 59 | } // namespace o2::quality_control::core |
64 | 60 |
|
65 | | -#endif //QUALITYCONTROL_QUALITIESTOTRFCOLLECTIONCONVERTER_H |
| 61 | +#endif // QUALITYCONTROL_QUALITIESTOQCFCOLLECTIONCONVERTER_H |
0 commit comments