]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSvPPRsymm.cxx
New version with the Bari/Salerno model as default for SPD simulation
[u/mrichter/AliRoot.git] / ITS / AliITSvPPRsymm.cxx
index 1081f36b48be220d0a938f0e2f823cbed91324f7..9e0b0aaeec5aa8c296e88e8bcd3a36815f01ab4d 100644 (file)
 
 /*
 $Log$
+Revision 1.27  2001/05/30 16:15:47  fca
+Correct comparison wiht AliGeant3::Class() introduced. Thanks to I.Hrivnacova
+
+Revision 1.26  2001/05/30 15:55:35  hristov
+Strings compared instead of pointers
+
 Revision 1.25  2001/05/30 14:04:31  hristov
 Dynamic cast replaced (F.Carminati)
 
@@ -199,7 +205,7 @@ Introduction of the Copyright and cvs Log
 #include "AliRun.h"
 #include "AliMagF.h"
 #include "AliConst.h"
-#include "../TGeant3/TGeant3.h"
+#include "AliGeant3.h"
 #include "AliITSGeant3Geometry.h"
 #include "AliITShit.h"
 #include "AliITS.h"
@@ -378,11 +384,11 @@ void AliITSvPPRsymm::CreateGeometry(){
   Float_t di1d3[3], di20a[3], di1d2[3];                      // for layer 2  
   Float_t di108[3], di104[3];                                // for both layers  
 
-  Float_t ddet1=300.;     // total detector thickness on layer 1 (micron)
-  Float_t dchip1=300.;    // total chip thickness on layer 1 (micron)
+  Float_t ddet1=200.;     // total detector thickness on layer 1 (micron)
+  Float_t dchip1=200.;    // total chip thickness on layer 1 (micron)
   
-  Float_t ddet2=300.;     // total detector thickness on layer 2 (micron)                         
-  Float_t dchip2=300.;    // total chip thickness on layer 2 (micron)
+  Float_t ddet2=200.;     // total detector thickness on layer 2 (micron)                         
+  Float_t dchip2=200.;    // total chip thickness on layer 2 (micron)
   
   Float_t dbus=200.;      // total bus thickness on both layers (micron)
 
@@ -393,26 +399,26 @@ void AliITSvPPRsymm::CreateGeometry(){
 
   if(ddet1 < 100. || ddet1 > 300.) {
      cout << "ITS - WARNING: the detector thickness for layer 1 is outside the range of [100,300] microns."
-         " The default value of 300 microns will be used." << endl;
-         ddet1=300.;
+         " The default value of 200 microns will be used." << endl;
+         ddet1=200.;
   }
   
   if(ddet2 < 100. || ddet2 > 300.) {
      cout << "ITS - WARNING: the detector thickness for layer 2 is outside the range of [100,300] microns."
-         " The default value of 300 microns will be used." << endl;
-         ddet2=300.;
+         " The default value of 200 microns will be used." << endl;
+         ddet2=200.;
   }
   
   if(dchip1 < 150. || dchip1 > 300.) {
      cout << "ITS - WARNING: the chip thickness for layer 1 is outside the range of [150,300] microns."
-         " The default value of 300 microns will be used." << endl;
-         dchip1=300.;
+         " The default value of 200 microns will be used." << endl;
+         dchip1=200.;
   }
   
   if(dchip2 < 150. || dchip2 > 300.) {
      cout << "ITS - WARNING: the chip thickness for layer 2 is outside the range of [150,300] microns."
-         " The default value of 300 microns will be used." << endl;
-         dchip2=300.;
+         " The default value of 200 microns will be used." << endl;
+         dchip2=200.;
   }      
 
   Int_t rails = 1;       // flag for rails (1 --> rails in; 0 --> rails out)
@@ -4712,7 +4718,7 @@ void AliITSvPPRsymm::InitAliITSgeom(){
 //     Based on the geometry tree defined in Geant 3.21, this
 // routine initilizes the Class AliITSgeom from the Geant 3.21 ITS geometry
 // sturture.
-    if(strcmp(gMC->GetName(),"TGeant3")) {
+    if(gMC->IsA()!=AliGeant3::Class()) {
        Error("InitAliITSgeom",
                "Wrong Monte Carlo. InitAliITSgeom uses TGeant3 calls");
        return;