Skip to content

Commit d746880

Browse files
committed
ITS: IOUtils remove obsolte functions
1 parent f52e1ad commit d746880

File tree

2 files changed

+0
-96
lines changed

2 files changed

+0
-96
lines changed

Detectors/ITSMFT/ITS/tracking/include/ITStracking/IOUtils.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ inline static const o2::itsmft::ChipMappingITS& getChipMappingITS()
7272
return MP;
7373
}
7474

75-
// std::vector<std::unordered_map<int, Label>> loadLabels(const int, const std::string&);
76-
// void writeRoadsReport(std::ofstream&, std::ofstream&, std::ofstream&, const std::vector<std::vector<Road<5>>>&,
77-
// const std::unordered_map<int, Label>&);
78-
7975
template <class iterator, typename T>
8076
o2::math_utils::Point3D<T> extractClusterData(const itsmft::CompClusterExt& c, iterator& iter, const itsmft::TopologyDictionary* dict, T& sig2y, T& sig2z)
8177
{

Detectors/ITSMFT/ITS/tracking/src/IOUtils.cxx

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)