]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMD2.cxx
Bugfix.
[u/mrichter/AliRoot.git] / FMD / AliFMD2.cxx
index 0e72c477b65ef3b08dec6bb8c1caf7a6bf71d9ea..7f89b67b14ffb4e8a050643fb366b3ab3f2486e6 100644 (file)
@@ -22,9 +22,9 @@
 // This implements the geometry for FMD2
 //
 #include "AliFMD2.h"           // ALIFMD2_H 
-#include "TVirtualMC.h"                // ROOT_TVirtualMC
-#include "AliLog.h"            // ALILOG_H
 #include "AliFMDRing.h"                // ALIFMDRING_H 
+#include <AliLog.h>            // ALILOG_H
+#include <TVirtualMC.h>                // ROOT_TVirtualMC
 
 //____________________________________________________________________
 ClassImp(AliFMD2);
@@ -45,15 +45,16 @@ AliFMD2::~AliFMD2()
 
 //____________________________________________________________________
 void 
-AliFMD2::SetupGeometry(Int_t airId, Int_t kaptionId) 
+AliFMD2::SetupGeometry(Int_t airId, Int_t alId, Int_t cId) 
 {
   // Setup the FMD2 sub-detector geometry 
   // 
   // Parameters:
   // 
   //     airId         Id # of the Air medium 
-  //     kaptionId     Id # of the Aluminium medium 
+  //     alId     Id # of the Aluminium medium 
   // 
+  AliDebug(10, "\tDefining the geometry for FMD1");
   fInnerHoneyLowR  = fInner->GetLowR() + 1;
   fInnerHoneyHighR = fOuter->GetHighR() + 1;
   fOuterHoneyLowR  = fOuter->GetLowR() + 1;
@@ -73,7 +74,7 @@ AliFMD2::SetupGeometry(Int_t airId, Int_t kaptionId)
   // Rotate the full sub-detector 
   gMC->Matrix(fRotationId, 270, 180, 90, 90, 180, 0); 
 
-  AliFMDSubDetector::SetupGeometry(airId, kaptionId);
+  AliFMDSubDetector::SetupGeometry(airId, alId, cId);
 }
 
 //____________________________________________________________________
@@ -91,6 +92,7 @@ AliFMD2::Geometry(const char* mother, Int_t pbRotId,
   //     z          Z position (not really used here, but passed down)
   //
   z = fDz + fOuterZ;
+  AliDebug(10, Form("\tPutting FMD2 in %s at z=%lf cm", mother, z));
   AliFMDSubDetector::Geometry("FMD2", pbRotId, idRotId, z);
   gMC->Gspos("FMD2", 1, mother, 0, 0, z, fRotationId);  
 }