]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STRUCT/AliDIPOv2.cxx
Add a task to a train
[u/mrichter/AliRoot.git] / STRUCT / AliDIPOv2.cxx
index 26801baf1b7fe99aebbb9648d120e86bcf649a49..b6594a3bc260b131306fdaf8e282f09b7c9f6f51 100644 (file)
 //                                                                           //
 //                                                                           //
 
+#include <TGeoManager.h>
 #include <TGeoGlobalMagField.h>
 #include <TGeoVolume.h>
 #include <TVirtualMC.h>
+#include <TArrayI.h>
 
 #include "AliConst.h"
 #include "AliDIPOv2.h"
@@ -615,7 +617,7 @@ void AliDIPOv2::CreateSpectrometerDipole()
   
   AliMatrix(idrotm[1811], 270., 0., 90., 90., 180., 0.);
   gMC->Gspos("DDIP", 1, "ALIC", 0., 0., 0., idrotm[1811], "ONLY");
-  gMC->Gsatt("DDIP", "SEEN", 0);
+  gGeoManager->SetVolumeAttribute("DDIP", "SEEN", 0);
 }