]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - CASTOR/AliCASTOR.cxx
Bug correction
[u/mrichter/AliRoot.git] / CASTOR / AliCASTOR.cxx
index 5d5ba7fe596f1a36b7603938c7b3883711a62412..428c7b511abd03cda4b3e8c6ab56514f6f2710cc 100644 (file)
 
 /*
 $Log$
+Revision 1.9  2000/12/04 08:48:15  alibrary
+Fixing problems in the HEAD
+
+Revision 1.8  2000/10/02 21:28:05  fca
+Removal of useless dependecies via forward declarations
+
 Revision 1.7  2000/01/19 17:16:41  fca
 Introducing a list of lists of hits -- more hits allowed for detector now
 
@@ -53,6 +59,8 @@ Introduction of the Copyright and cvs Log
 #include "AliRun.h"
 #include "AliMC.h"
 #include "AliConst.h"
+#include "TMath.h"
+static const Double_t kPI=TMath::Pi();
 
 ClassImp(AliCASTOR)
  
@@ -222,7 +230,7 @@ void AliCASTORv1::CreateGeometry()
   const Float_t kDiamCladding = 0.045;
 
   Int_t i;
-  static Int_t debugFlag = 0;
+  static Int_t debugFlag = fDebug-1;
   
   Int_t *idtmed = fIdtmed->GetArray()-1499;
 
@@ -921,15 +929,17 @@ void AliCASTORv1::Init()
   //
   Int_t i;
   //
-  printf("\n");
-  for(i=0;i<35;i++) printf("*");
-  printf(" CASTOR_INIT ");
-  for(i=0;i<35;i++) printf("*");
-  printf("\n");
-  //
-  // Here the ABSO initialisation code (if any!)
-  for(i=0;i<80;i++) printf("*");
-  printf("\n");
+  if(fDebug) {
+    printf("\n%s: ",ClassName());
+    for(i=0;i<35;i++) printf("*");
+    printf(" CASTOR_INIT ");
+    for(i=0;i<35;i++) printf("*");
+    printf("\n%s: ",ClassName());
+    //
+    // Here the ABSO initialisation code (if any!)
+    for(i=0;i<80;i++) printf("*");
+    printf("\n");
+  }
 }
 
 ClassImp(AliCASTORhit)