//
// Get the Module numeric ID
Int_t id = gAlice->GetModuleID(name);
- if (id < 0) {
- // Unknown Module !
- Warning("AliRun::Ctor","ERROR Unknown Module: %s\n",name);
+ if (id>=0) {
+ // Module already added !
+ Warning("Ctor","Module: %s already present at %d\n",name,id);
return;
}
//
// Add this Module to the list of Modules
- gAlice->Modules()->AddAtAndExpand(this,id);
+ gAlice->Modules()->Add(this);
//
//
SetMarkerColor(3);
// nwbuf number of user words
//
Int_t kmat;
- AliMC::GetMC()->Material(kmat, name, a, z, dens, radl, absl, buf, nwbuf);
+ gMC->Material(kmat, name, a, z, dens, radl, absl, buf, nwbuf);
(*fIdmate)[imat]=kmat;
}
// wmat array of concentrations
//
Int_t kmat;
- AliMC::GetMC()->Mixture(kmat, name, a, z, dens, nlmat, wmat);
+ gMC->Mixture(kmat, name, a, z, dens, nlmat, wmat);
(*fIdmate)[imat]=kmat;
}
// = 3 constant magnetic field along z
//
Int_t kmed;
- Int_t *idtmed = gAlice->Idtmed();
- AliMC::GetMC()->Medium(kmed,name, (*fIdmate)[nmat], isvol, ifield, fieldm,
+ gMC->Medium(kmed,name, (*fIdmate)[nmat], isvol, ifield, fieldm,
tmaxfd, stemax, deemax, epsil, stmin, ubuf, nbuf);
- idtmed[numed-1]=kmed;
+ (*fIdtmed)[numed]=kmed;
}
//_____________________________________________________________________________
// theta3 polar angle for axis III
// phi3 azimuthal angle for axis III
//
- AliMC::GetMC()->Matrix(nmat, theta1, phi1, theta2, phi2, theta3, phi3);
+ gMC->Matrix(nmat, theta1, phi1, theta2, phi2, theta3, phi3);
}
//_____________________________________________________________________________