5 gSystem->Load(
"libGeom");
6 TGeoManager::Import(
"ALICE_ITS_tgeo.root");
9 std::vector<TGeoNode*>
path;
16 dfs(gGeoManager->GetTopNode(),
name);
18 cout <<
"Node path: ";
19 for(
int i = 0;
i < path.size(); ++
i)
21 cout << path[
i]->GetName() <<
" ";
31 if(node->GetName() ==
name)
37 for(
int i = 0;
i < node->GetNdaughters(); ++
i)
58 for(
int i = 0;
i < path.size(); ++
i)
60 if(path[
i]->GetName() == mothername)
70 for(
int i = idx_mother+1;
i < path.size(); ++
i)
72 mat *= (*path[
i]->GetMatrix());
75 cout <<
"Translation from " << name <<
" to " << mothername << endl;