ROOT 5.06 segfaults

From: Michał Dwużnik <michal.dwuznik_at_gmail.com>
Date: Sat, 19 Nov 2005 13:43:49 +0100


Hello Rooters,

running sucha a small macro:

{

	gSystem->Load("libGeom.so");
	if (gGeoManager) delete gGeoManager;
	gROOT->GetListOfCanvases()->Delete();
	//materials and media defs	
	TGeoManager *geometry = new TGeoManager("ID viewer","ID");
	Int_t idx=0; //index of main modules chain
	Int_t irot=0 ; // rot matrix index (0-8)
	
	TGeoMaterial *vac_mat = new  TGeoMaterial("Vacuum",0,0,0);
	TGeoMaterial *si_mat = new

TGeoMaterial("Silicon",geometry->GetElementTable()->FindElement("silicon"),2.3);         
	//si_mat->SetTransparency(30); //translucent silicon
	si_mat->SetTransparency(0); //opaque silicon
	
	TGeoMedium *vac = new TGeoMedium("Vacuum",1,vac_mat);
	TGeoMedium *si = new TGeoMedium("Silicon",1,si_mat);
	TGeoVolume *id_box =  geometry->MakeBox("TopBox",vac,600,600,3000);
	geometry->SetTopVolume(id_box);
	TGeoTranslation *trans = new TGeoTranslation(20,30,50);
	TGeoTranslation *corr = new TGeoTranslation(1,5,10);
	TGeoRotation *rot = new TGeoRotation();
	trans->SetTranslation(2,3,5);
	rot->SetAngles(0,90,0);
	TGeoCombiTrans *combi = new TGeoCombiTrans(*trans,*rot);

	TGeoVolume *testbox = geometry->MakeBox("test1",si,5,10,15);
	TGeoVolume *testbox2 = geometry->MakeBox("test2",si,5,10,15);
	testbox2->SetLineColor(2);
	id_box->AddNode(testbox,1);
	id_box->AddNode(testbox2,2,combi);
	//geometry->GetNode(2)->SetLineColor(1);
	//geometry->CloseGeometry();
	//id_box->Draw("ogl");

}

followed by :
gGeoManager->MakePhysicalNode("/TopBox_1/test1_1")

yields->

If one closes the geometry before adding a physical node adding a physical node is succesful, but trying to add a physical node with incorrect path followed by listing of physical node results in roughly the same error.

Shall it happen ?

Regards
Michal Dwuznik Received on Sat Nov 19 2005 - 13:44:01 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:13 MET