Backward compatibility: old v11Hybrid geometries are treated as v11 geometries
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Dec 2011 09:59:18 +0000 (09:59 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Dec 2011 09:59:18 +0000 (09:59 +0000)
ITS/AliITSInitGeometry.cxx

index 5bdbc05..6cfc294 100644 (file)
@@ -956,6 +956,10 @@ Bool_t AliITSInitGeometry::ReadVersionString(const Char_t *str,Int_t length,
     if(n<35) return kFALSE; // not enough space for numbers
     m = sscanf(str,"Major Version= %d  Minor Version= %d Revision: %9s "
                "Date: %10s %8s",&i,&min,cvsRevision,cvsDate,cvsTime);
+
+    // v11Hybrid geometry is treated as a v11 geometry
+    if(i == 110)i=11;
+
     ok = m==5;
     if(!ok) return !ok;
     m = sscanf(cvsDate,"%d/%d/%d",&year,&month,&day);