@@ -143,95 +143,3 @@ int ioutils::loadROFrameData(const o2::itsmft::ROFRecord& rof, ROframe& event, g
143143 }
144144 return (int )clusters_in_frame.size ();
145145}
146-
147- // std::vector<std::unordered_map<int, Label>> ioutils::loadLabels(const int eventsNum, const std::string& fileName)
148- // {
149- // std::vector<std::unordered_map<int, Label>> labelsMap{};
150- // std::unordered_map<int, Label> currentEventLabelsMap{};
151- // std::ifstream inputStream{};
152- // std::string line{};
153- // int monteCarloId{}, pdgCode{}, numberOfClusters{};
154- // float transverseMomentum{}, phi{}, pseudorapidity{};
155-
156- // labelsMap.reserve(eventsNum);
157-
158- // inputStream.open(fileName);
159- // std::getline(inputStream, line);
160-
161- // while (std::getline(inputStream, line)) {
162-
163- // std::istringstream inputStringStream(line);
164-
165- // if (inputStringStream >> monteCarloId) {
166-
167- // if (monteCarloId == EventLabelsSeparator) {
168-
169- // labelsMap.emplace_back(currentEventLabelsMap);
170- // currentEventLabelsMap.clear();
171-
172- // } else {
173-
174- // if (inputStringStream >> transverseMomentum >> phi >> pseudorapidity >> pdgCode >> numberOfClusters) {
175-
176- // if (std::abs(pdgCode) == constants::pdgcodes::PionCode && numberOfClusters == 7) {
177-
178- // currentEventLabelsMap.emplace(std::piecewise_construct, std::forward_as_tuple(monteCarloId),
179- // std::forward_as_tuple(monteCarloId, transverseMomentum, phi,
180- // pseudorapidity, pdgCode, numberOfClusters));
181- // }
182- // }
183- // }
184- // }
185- // }
186-
187- // labelsMap.emplace_back(currentEventLabelsMap);
188-
189- // return labelsMap;
190- // }
191-
192- // void ioutils::writeRoadsReport(std::ofstream& correctRoadsOutputStream, std::ofstream& duplicateRoadsOutputStream,
193- // std::ofstream& fakeRoadsOutputStream, const std::vector<std::vector<Road<5>>>& roads,
194- // const std::unordered_map<int, Label>& labelsMap)
195- // {
196- // const int numVertices{static_cast<int>(roads.size())};
197- // std::unordered_set<int> foundMonteCarloIds{};
198-
199- // correctRoadsOutputStream << EventLabelsSeparator << std::endl;
200- // fakeRoadsOutputStream << EventLabelsSeparator << std::endl;
201-
202- // for (int iVertex{0}; iVertex < numVertices; ++iVertex) {
203-
204- // const std::vector<Road<5>>& currentVertexRoads{roads[iVertex]};
205- // const int numRoads{static_cast<int>(currentVertexRoads.size())};
206-
207- // for (int iRoad{0}; iRoad < numRoads; ++iRoad) {
208-
209- // const Road<5>& currentRoad{currentVertexRoads[iRoad]};
210- // const int currentRoadLabel{currentRoad.getLabel()};
211-
212- // if (!labelsMap.count(currentRoadLabel)) {
213-
214- // continue;
215- // }
216-
217- // const Label& currentLabel{labelsMap.at(currentRoadLabel)};
218-
219- // if (currentRoad.isFakeRoad()) {
220-
221- // fakeRoadsOutputStream << currentLabel << std::endl;
222-
223- // } else {
224-
225- // if (foundMonteCarloIds.count(currentLabel.monteCarloId)) {
226-
227- // duplicateRoadsOutputStream << currentLabel << std::endl;
228-
229- // } else {
230-
231- // correctRoadsOutputStream << currentLabel << std::endl;
232- // foundMonteCarloIds.emplace(currentLabel.monteCarloId);
233- // }
234- // }
235- // }
236- // }
237- // }
0 commit comments