|
16 | 16 | #ifndef TRACKINGITSU_INCLUDE_EVENTLOADER_H_ |
17 | 17 | #define TRACKINGITSU_INCLUDE_EVENTLOADER_H_ |
18 | 18 |
|
19 | | -#include <iosfwd> |
20 | | -#include <string> |
21 | | -#include <unordered_map> |
22 | 19 | #include <vector> |
23 | 20 |
|
24 | | -#include "DataFormatsITSMFT/ROFRecord.h" |
25 | | -#include "ITStracking/Configuration.h" |
26 | | -#include "ITStracking/ROframe.h" |
27 | | -#include "ITStracking/Label.h" |
28 | | -#include "ITStracking/Road.h" |
29 | | -#include "ITStracking/TrackingConfigParam.h" |
30 | 21 | #include "ITSMFTBase/SegmentationAlpide.h" |
31 | 22 | #include "ReconstructionDataFormats/BaseCluster.h" |
32 | | -#include "ITSMFTReconstruction/ChipMappingITS.h" |
33 | 23 | #include "DataFormatsITSMFT/CompCluster.h" |
34 | 24 | #include "DataFormatsITSMFT/TopologyDictionary.h" |
| 25 | +#include "DataFormatsITSMFT/ROFRecord.h" // TODO this is just included since the alignment code include it now |
35 | 26 |
|
36 | | -namespace o2 |
| 27 | +namespace o2::its::ioutils |
37 | 28 | { |
38 | 29 |
|
39 | | -class MCCompLabel; |
40 | | - |
41 | | -namespace dataformats |
42 | | -{ |
43 | | -template <typename T> |
44 | | -class MCTruthContainer; |
45 | | -} |
46 | | - |
47 | | -namespace its |
48 | | -{ |
49 | | - |
50 | | -namespace ioutils |
51 | | -{ |
52 | 30 | constexpr float DefClusErrorRow = o2::itsmft::SegmentationAlpide::PitchRow * 0.5; |
53 | 31 | constexpr float DefClusErrorCol = o2::itsmft::SegmentationAlpide::PitchCol * 0.5; |
54 | 32 | constexpr float DefClusError2Row = DefClusErrorRow * DefClusErrorRow; |
55 | 33 | constexpr float DefClusError2Col = DefClusErrorCol * DefClusErrorCol; |
56 | 34 |
|
57 | | -void loadEventData(ROframe& events, gsl::span<const itsmft::CompClusterExt> clusters, |
58 | | - gsl::span<const unsigned char>::iterator& pattIt, const itsmft::TopologyDictionary* dict, |
59 | | - const dataformats::MCTruthContainer<MCCompLabel>* clsLabels = nullptr); |
60 | | -int loadROFrameData(const o2::itsmft::ROFRecord& rof, ROframe& events, gsl::span<const itsmft::CompClusterExt> clusters, |
61 | | - gsl::span<const unsigned char>::iterator& pattIt, const itsmft::TopologyDictionary* dict, |
62 | | - const dataformats::MCTruthContainer<MCCompLabel>* mClsLabels = nullptr); |
63 | | - |
64 | 35 | void convertCompactClusters(gsl::span<const itsmft::CompClusterExt> clusters, |
65 | 36 | gsl::span<const unsigned char>::iterator& pattIt, |
66 | 37 | std::vector<o2::BaseCluster<float>>& output, |
67 | 38 | const itsmft::TopologyDictionary* dict); |
68 | 39 |
|
69 | | -inline static const o2::itsmft::ChipMappingITS& getChipMappingITS() |
70 | | -{ |
71 | | - static const o2::itsmft::ChipMappingITS MP; |
72 | | - return MP; |
73 | | -} |
74 | | - |
75 | 40 | template <class iterator, typename T> |
76 | 41 | o2::math_utils::Point3D<T> extractClusterData(const itsmft::CompClusterExt& c, iterator& iter, const itsmft::TopologyDictionary* dict, T& sig2y, T& sig2z) |
77 | 42 | { |
@@ -115,8 +80,6 @@ std::array<T, 3> extractClusterDataA(const itsmft::CompClusterExt& c, iterator& |
115 | 80 | } |
116 | 81 | } |
117 | 82 |
|
118 | | -} // namespace ioutils |
119 | | -} // namespace its |
120 | | -} // namespace o2 |
| 83 | +} // namespace o2::its::ioutils |
121 | 84 |
|
122 | 85 | #endif /* TRACKINGITSU_INCLUDE_EVENTLOADER_H_ */ |
0 commit comments