36 assert(gGeoManager != NULL);
38 TObjArray* nodes = gGeoManager->GetTopNode()->GetNodes();
39 for (Int_t iNode = 0; iNode < nodes->GetEntriesFast(); iNode++) {
40 TGeoNode* node = (TGeoNode*) nodes->At(iNode);
41 if (TString(node->GetName()).Contains(name.c_str())) {
47 TGeoNode* node1 = gGeoManager->GetTopVolume()->FindNode(
"pipevac1_0");
49 if (node1->GetVolume()->FindNode(
"mvdstation01_0")) {
54 TObjArray* nodes = gGeoManager->GetTopNode()->GetNodes();
55 for (Int_t iNode = 0; iNode < nodes->GetEntriesFast(); iNode++) {
56 TGeoNode* node = (TGeoNode*) nodes->At(iNode);
57 TString nodeName = node->GetName();
59 if (nodeName.Contains(
"pipe")) {
60 TObjArray* nodes2 = node->GetNodes();
61 for (Int_t iiNode = 0; iiNode < nodes2->GetEntriesFast(); iiNode++) {
62 TGeoNode* node2 = (TGeoNode*) nodes2->At(iiNode);
63 TString nodeName2 = node2->GetName();
65 if (nodeName2.Contains(
"pipevac1")) {
68 TObjArray* nodes3 = node2->GetNodes();
69 if (!nodes3)
return false;
70 for (Int_t iiiNode = 0; iiiNode < nodes3->GetEntriesFast(); iiiNode++) {
71 TGeoNode* node3 = (TGeoNode*) nodes3->At(iiiNode);
72 TString nodeName3 = node3->GetName();
74 if (nodeName3.Contains(
"mvd")) {