Commit 9d07b6af authored by Eoin Clerkin's avatar Eoin Clerkin
Browse files

MVD with 2 and 3 stations

Based upon mvd_v20c_tr
mvd_v20f has first station removed,
mvd_v20g has first two stations removed,
The top and bottom plate are also removed.

Added a missing HexPly material in media.geo.
parent 41b97faa
......@@ -79,6 +79,10 @@ BP_carbonfiber 4 12.011 1.0079 35.453 15.999 6.0 1.0 17. 8.0 1.5 0.892
0 1 20. .001
0
BP_HexPly 4 12.011 1.0079 35.453 15.999 6.0 1.0 17. 8.0 1.5 0.8926 0.0192 0.0271 0.0611
0 1 20. .001
0
// ---------------------------------------------------------------------------
......
TFile* ofile
TFile* nfile
ofile = TFile::Open("mvd_v20c_tr.geo.root")
nfile = TFile::Open("mvd_v20g_tr.geo.root","RECREATE")
TGeoVolume* top = (TGeoVolume *) ofile->Get("Top")
TGeoNode* node = top->GetNode("MVDscripted_1")
TGeoNodeMatrix* nm
TGeoVolume* ntop
ntop = new TGeoVolume("Top", top->GetShape(), top->GetMedium())
int id=0
nm = (TGeoNodeMatrix *) node->GetDaughter(1)
ntop->AddNode(nm->GetVolume(),id++,nm->GetMatrix())
nm = (TGeoNodeMatrix *) node->GetDaughter(2)
ntop->AddNode(nm->GetVolume(),id++,nm->GetMatrix())
nm = (TGeoNodeMatrix *) node->GetDaughter(3)
ntop->AddNode(nm->GetVolume(),id++,nm->GetMatrix())
ntop->GetNodes()->Print()
ntop->GetName()
ntop->GetMedium()->Print()
ntop->SetAsTopVolume()
nfile->WriteTObject(ntop)
nfile->Close()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment