]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSvBeamTestITS04.cxx
Updated SDD compression algorithm (simulation and reconstruction). Code clean-up...
[u/mrichter/AliRoot.git] / ITS / AliITSvBeamTestITS04.cxx
index 387115c2f81cb156f8f36dafe4fc2ab5122b10c6..729ae3a4422c1c10f1846c5e6c64a46aa56e70e0 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <TGeoManager.h>
 #include <TGeoVolume.h>
+#include <TGeoMatrix.h>
 #include <TGeoPcon.h>
 #include "AliRun.h"
 #include "AliITSvBeamTestITS04.h"
@@ -416,12 +417,12 @@ void AliITSvBeamTestITS04::SetDefaults()
       seg1->SetDetSize(s1->GetDx()*kconv, // base this on AliITSgeomSDD
                       s1->GetDz()*4.*kconv, // for now.
                       s1->GetDy()*4.*kconv); // x,z,y full width in microns.
-      seg1->SetDriftSpeed(resp1->GetDriftSpeed());
+      seg1->SetDriftSpeed(AliITSresponseSDD::DefaultDriftSpeed());
       seg1->SetNPads(256,256);// Use AliITSgeomSDD for now
       SetSegmentationModel(kSDD,seg1);
       const char *kData1=(fDetTypeSim->GetCalibrationModel(kSDD))->DataType();
       const char *kopt=resp1->GetZeroSuppOption();
-      if((!strstr(kopt,"2D")) && (!strstr(kopt,"1D")) || strstr(kData1,"real") ){
+      if((!strstr(kopt,"ZS")) || strstr(kData1,"real") ){
        fDetTypeSim->SetDigitClassName(kSDD,"AliITSdigit");
        } else fDetTypeSim->SetDigitClassName(kSDD,"AliITSdigitSDD");
     }