Skip to content
Snippets Groups Projects
Commit d2283f42 authored by Eoin Clerkin's avatar Eoin Clerkin Committed by Florian Uhlig
Browse files

Remove CorrectMediaId function

Found to be mixing geometry material. See redmine #2885.
parent 27f699f5
No related branches found
No related tags found
1 merge request!1189Remove CorrectMediaId function
Pipeline #22867 passed
...@@ -58,17 +58,6 @@ namespace Cbm ...@@ -58,17 +58,6 @@ namespace Cbm
LOG(info) << "****"; LOG(info) << "****";
} }
void CorrectMediaId()
{
TList* media = gGeoManager->GetListOfMedia();
TIter next(media);
TGeoMedium* med;
Int_t counter {0};
while ((med = static_cast<TGeoMedium*>(next()))) {
med->SetId(counter++);
}
}
void RemoveDuplicateMaterials() void RemoveDuplicateMaterials()
{ {
// Revove duplicate materials // Revove duplicate materials
...@@ -177,7 +166,6 @@ namespace Cbm ...@@ -177,7 +166,6 @@ namespace Cbm
} }
} }
Cbm::GeometryUtils::CorrectMediaId();
Cbm::GeometryUtils::RemoveDuplicateMaterials(); Cbm::GeometryUtils::RemoveDuplicateMaterials();
Cbm::GeometryUtils::RemoveDuplicateMedia(); Cbm::GeometryUtils::RemoveDuplicateMedia();
......
...@@ -13,7 +13,6 @@ namespace Cbm ...@@ -13,7 +13,6 @@ namespace Cbm
{ {
void PrintMedia(); void PrintMedia();
void PrintMaterials(); void PrintMaterials();
void CorrectMediaId();
void ReAssignMediaId(); void ReAssignMediaId();
void RemoveDuplicateMaterials(); void RemoveDuplicateMaterials();
void RemoveDuplicateMedia(); void RemoveDuplicateMedia();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment