]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - CRT/AliCRTv1.cxx
Example macro for the creation of tags (P.Christakoglou)
[u/mrichter/AliRoot.git] / CRT / AliCRTv1.cxx
index 6020341247e52b997439474bde209fe7bc8af652..390483b8f1bc82afea330ac8b5de2fbbe56ad9a6 100644 (file)
@@ -59,6 +59,7 @@
 #include "AliCRTModule.h"
 #include "AliCRTConstants.h"
 #include "AliMC.h"
+#include "AliLog.h"
 
 ClassImp(AliCRTv1)
  
@@ -169,7 +170,7 @@ void AliCRTv1::CreateGeometry()
   box[0] = crtConstants->MagMinRadius()*TMath::Sin(kDegrad*22.5);
   box[1] = crtConstants->MagMaxRadius() - crtConstants->MagMinRadius();
   box[2] = crtConstants->MagnetLenght()/2;
-  gMC->Gsvolu("CRT1", "BOX", idtmed[1112], box, 3);
+  gMC->Gsvolu("CRT1", "BOX", idtmed[1134], box, 3);
 
   // Check if the AliCRTModule instance have been set, otherwise
   // use the default values
@@ -237,7 +238,7 @@ void AliCRTv1::CreateGeometry()
   // In the left side side of the magnet
   AliMatrix(idrotm[232], 90, 315, 90, 45, 0, 0);
 
-  Float_t x = crtConstants->MagMinRadius()+10;
+  Float_t x = crtConstants->MagMaxRadius();
   gMC->Gspos("CRT1", 1, "ALIC", 0, x, 0, 0, "MANY");
   gMC->Gspos("CRT1", 2, "ALIC", -x*TMath::Sin(kDegrad*45), x*TMath::Cos(kDegrad*45), 0, idrotm[231], "MANY");
   gMC->Gspos("CRT1", 3, "ALIC",  x*TMath::Sin(kDegrad*45), x*TMath::Cos(kDegrad*45), 0, idrotm[232], "MANY");
@@ -597,7 +598,7 @@ void AliCRTv1::Init()
   // Initialise L3 magnet after it has been built
   Int_t i;
   //
-  if(fDebug) {
+  if(AliLog::GetGlobalDebugLevel()>0) {
     printf("\n%s: ",ClassName());
     for(i=0;i<35;i++) printf("*");
     printf(" CRTv1_INIT ");