]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSv3.cxx
The access to several data members was changed from public to protected. The digitisa...
[u/mrichter/AliRoot.git] / ITS / AliITSv3.cxx
index c0f9171da77925e91e493cec1f5ae6580132a975..0900313a5632f2e2abbfe35098ab914442f27058 100644 (file)
 
 /*
 $Log$
-Revision 1.11.4.8  2000/06/12 19:14:40  barbera
-Remove partical transision to new Config.C calling convension. Bug Found.
+Revision 1.21  2000/11/30 11:13:11  barbera
+ Added changes suggested by Federico Carminati on nov, 30, 2000
 
-Revision 1.11.4.7  2000/06/12 18:15:38  barbera
-fixed posible compilation errors on HP unix. Modifided default constructor
-for use with new calling requirements.
+Revision 1.20  2000/10/07 17:29:51  nilsen
+Blank Line added at end of file to remove a warning for hp compilers
+(Give me a Break!).
 
-Revision 1.11.4.6  2000/06/11 20:37:41  barbera
-coding convenstion update.
+Revision 1.19  2000/10/05 20:49:59  nilsen
+Now using root generated streamers.
+
+Revision 1.11.4.10  2000/07/31 13:50:51  barbera
+Updated from the release
+
+Revision 1.17  2000/07/10 16:07:19  fca
+Release version of ITS code
 
 Revision 1.11.4.4  2000/05/19 10:09:51  nilsen
 fix for bug with HP and Sun unix + fix for event display in ITS-working branch
@@ -84,35 +90,33 @@ Introduction of the Copyright and cvs Log
 #include <TFile.h>    // only required for Tracking function?
 #include <TCanvas.h>
 #include <TObjArray.h>
+#include <TObjString.h>
 #include <TClonesArray.h>
+#include <TLorentzVector.h>
+#include <TMath.h>
+
 
 #include "AliMC.h"
 #include "AliConst.h"
+#include "AliMagF.h"
 
 #include "AliITShit.h"
 #include "AliITSv3.h"
 #include "AliRun.h"
 
-#include "AliMC.h"
-#include "AliConst.h"
-
 ClassImp(AliITSv3)
  
 //_____________________________________________________________________________
-  AliITSv3::AliITSv3()/* : AliITS("ITS","TP version")*/{
+AliITSv3::AliITSv3() {
 ////////////////////////////////////////////////////////////////////////
 //    Standard default constructor for the ITS version 3.
 ////////////////////////////////////////////////////////////////////////
-    fId3N = 6;
-    fId3Name = new char*[fId3N];
-    fId3Name[0] = "ITS1";
-    fId3Name[1] = "ITS2";
-    fId3Name[2] = "ITS3";
-    fId3Name[3] = "ITS4";
-    fId3Name[4] = "ITS5";
-    fId3Name[5] = "ITS6";
-    fMinorVersionV3=1;
-    printf("Created ITS TP Detailed version\n");
+
+    fIdN    = 0;
+    fIdName = 0;
+    fIdSens = 0;
+    fMajorVersion = 3;
+    fMinorVersion = -1;
 }
 //____________________________________________________________________________
 AliITSv3::AliITSv3(const AliITSv3 &source){
@@ -120,10 +124,7 @@ AliITSv3::AliITSv3(const AliITSv3 &source){
 //     Copy Constructor for ITS version 3.
 ////////////////////////////////////////////////////////////////////////
     if(&source == this) return;
-    this->fId3N = source.fId3N;
-    this->fId3Name = new char*[fId3N];
-    Int_t i;
-    for(i=0;i<6;i++) strcpy(this->fId3Name[i],source.fId3Name[i]);
+    printf("Not allowed to copy AliITSv3\n");
     return;
 }
 //_____________________________________________________________________________
@@ -131,42 +132,52 @@ AliITSv3& AliITSv3::operator=(const AliITSv3 &source){
 ////////////////////////////////////////////////////////////////////////
 //    Assignment operator for the ITS version 3.
 ////////////////////////////////////////////////////////////////////////
-  if(&source == this) return *this;
-  this->fId3N = source.fId3N;
-  this->fId3Name = new char*[fId3N];
-  Int_t i;
-  for(i=0;i<6;i++) strcpy(this->fId3Name[i],source.fId3Name[i]);
-  return *this;
+    if(&source == this) return *this;
+    printf("Not allowed to copy AliITSv3\n");
+    return *this;
 }
 //_____________________________________________________________________________
 AliITSv3::~AliITSv3() {
 ////////////////////////////////////////////////////////////////////////
 //    Standard destructor for the ITS version 3.
 ////////////////////////////////////////////////////////////////////////
-  delete [] fId3Name;
 }
 //_____________________________________________________________________________
 AliITSv3::AliITSv3(const char *name, const char *title) : AliITS(name, title){
 ////////////////////////////////////////////////////////////////////////
 //    Standard constructor for the ITS version 3.
 ////////////////////////////////////////////////////////////////////////
-    fId3N = 6;
-    fId3Name = new char*[fId3N];
-    fId3Name[0] = "ITS1";
-    fId3Name[1] = "ITS2";
-    fId3Name[2] = "ITS3";
-    fId3Name[3] = "ITS4";
-    fId3Name[4] = "ITS5";
-    fId3Name[5] = "ITS6";
-    fMinorVersionV3=1;
-    printf("Created ITS TP Detailed version\n");
+
+    fIdN    = 6;
+/*
+//  TObjArray of TObjStrings
+    fIdName = new TObjArray(fIdN);
+    fIdName->AddAt(new TObjString("ITS1"),0);
+    fIdName->AddAt(new TObjString("ITS2"),1);
+    fIdName->AddAt(new TObjString("ITS3"),2);
+    fIdName->AddAt(new TObjString("ITS4"),3);
+    fIdName->AddAt(new TObjString("ITS5"),4);
+    fIdName->AddAt(new TObjString("ITS6"),5);
+*/
+//  Array of TStrings.
+    fIdName    = new TString[fIdN];
+    fIdName[0] = "ITS1";
+    fIdName[1] = "ITS2";
+    fIdName[2] = "ITS3";
+    fIdName[3] = "ITS4";
+    fIdName[4] = "ITS5";
+    fIdName[5] = "ITS6";
+    fIdSens    = new Int_t[fIdN];
+    for (Int_t i=0;i<fIdN;i++) fIdSens[i] = 0;
+    fMajorVersion = 3;
+    fMinorVersion = 1;
 }//__________________________________________________________________________
 void AliITSv3::BuildGeometry(){
 ////////////////////////////////////////////////////////////////////////
 //    Geometry builder for the ITS version 3.
 ////////////////////////////////////////////////////////////////////////
     TNode *node, *top;
-    const Int_t kColorITS=kYellow;
+    const int kColorITS=kYellow;
     //
     top = gAlice->GetGeometry()->GetNode("alice");
 
@@ -492,7 +503,7 @@ void AliITSv3::CreateGeometry(){
   jbox2 = 0;
   
   // counter over the number of elements of layer #2 ( 
-  for(i = 1; i <= 10; ++i) {
+  for (i = 1; i <= 10; ++i) {
     
     // --- Place part # 1-2 (see sketch) 
     
@@ -1498,7 +1509,7 @@ void AliITSv3::CreateGeometry(){
   //     (IDV1) 
   
   ypos = 0.;
-  for(j = 1; j <= 5; ++j) {
+  for (j = 1; j <= 5; ++j) {
     // odd elements are up and even elements are down 
     if (j == 1) {
       xpos = dbox1[0] - dpcb[0] * 2. - dcop[0] * 2. - dcer[0] * 2. - dsil[0] * 2. - dits[0];
@@ -1734,7 +1745,7 @@ void AliITSv3::CreateGeometry(){
   //     (IDV2) 
   
   ypos = 0.;
-  for(j = 1; j <= 5; ++j) {
+  for (j = 1; j <= 5; ++j) {
     // odd element are up and even elements are down 
     if (j == 1) {
       xpos = dbox2[0] - dpcb[0] * 2. - dcop[0] * 2. - dcer[0] * 2. - dsil[0] * 2. - dits[0];
@@ -1892,7 +1903,7 @@ void AliITSv3::CreateGeometry(){
   //     mother volume (IT34) 
   //     Odd elements have large ribs and even elements have small ribs 
   
-  for(i = 1; i <= 12; ++i) {
+  for (i = 1; i <= 12; ++i) {
     atheta = (i-1) * 30.;
     AliMatrix(idrotm[i+1299], 90., atheta, 90., atheta + 90., 0.,0.);
     if (i % 2 == 0) {
@@ -2037,7 +2048,7 @@ void AliITSv3::CreateGeometry(){
   //     (IDV3) 
   
   ypos = 0.;
-  for(j = 1; j <= 7; ++j) {
+  for (j = 1; j <= 7; ++j) {
     // odd elements are down and even elements are up 
     if (j == 1) {
       xpos = dbox1[0] - dpcb[0] * 2. - dcop[0] * 2. - dcer[0] * 2. - dsil[0] * 2. - dits[0];
@@ -2283,7 +2294,7 @@ void AliITSv3::CreateGeometry(){
   //     (IDV4) 
   
   ypos = 0.;
-  for(j = 1; j <= 7; ++j) {
+  for (j = 1; j <= 7; ++j) {
     // odd elements are down and even elements are up 
     if (j == 1) {
       xpos = dbox2[0] - dpcb[0] * 2. - dcop[0] * 2. - dcer[0] * 2. - dsil[0] * 2. - dits[0];
@@ -2452,7 +2463,7 @@ void AliITSv3::CreateGeometry(){
   //     mother volume (IT34) 
   //     Odd elements have large ribs and even elements have small ribs 
   
-  for(i = 1; i <= 24; ++i) {
+  for (i = 1; i <= 24; ++i) {
     atheta = (i-1) * 15.;
     AliMatrix(idrotm[i+1399], 90., atheta, 90., atheta + 90., 0.,0.);
     if (i % 2 == 0) {
@@ -2479,7 +2490,7 @@ void AliITSv3::CreateGeometry(){
   
   // --- Define SSD with the 35+39 lay-out 
   
-  if (fMinorVersionV3 < 3) {
+  if (fMinorVersion < 3) {
     
     //--- Define ghost volume containing the Strip Detectors and fill it with air
     //     or vacuum 
@@ -2661,7 +2672,7 @@ void AliITSv3::CreateGeometry(){
     // --- Place the sensitive part of the strips into its mother (ISV1) 
     
     ypos = 0.;
-    for(j = 1; j <= 23; ++j) {
+    for (j = 1; j <= 23; ++j) {
       if (j % 2 == 0) xpos = dbox1[0] - dits[0];
       else            xpos = -dbox1[0] + dits[0];
       zpos = ((j - 1) - 11.) * 3.91;
@@ -2671,7 +2682,7 @@ void AliITSv3::CreateGeometry(){
     // --- Place the electronics of the strips into its mother (SSV1) 
     
     ypos = 0.;
-    for(j = 1; j <= 23; ++j) {
+    for (j = 1; j <= 23; ++j) {
       if (j % 2 == 0) xpos = -dsrv[0] + .28;
       else            xpos = -dsrv[0] + .28 - dits[0] * 2. - .03;
       zpos = ((j - 1) - 11.) * 3.91 + .85;
@@ -2699,7 +2710,7 @@ void AliITSv3::CreateGeometry(){
     
     xpos = -dsrv[0] + .47 + TMath::Sqrt(3.) / 6. * 4.2;
     ypos = 0.;
-    for(j = 1; j <= 23; ++j) { // Loop was to 24. Changed to 23 to fit inside
+    for (j = 1; j <= 23; ++j) { // Loop was to 24. Changed to 23 to fit inside
                                 // volume SSV1. This is the same number of
                                 // elements as SCH5 above. Done Bjorn S. Nilsen
                                 // April 4 2000. Error found by Ivana 
@@ -2740,7 +2751,7 @@ void AliITSv3::CreateGeometry(){
     rzero   = dbox1[0] + 40.;
     runo    = dbox1[0] * 2. + 40. + dsrv[0];
     rtwo    = dbox1[0] * 2. + 40. + dela[0];
-    for(i = 1; i <= 35; ++i) {
+    for (i = 1; i <= 35; ++i) {
       atheta = (i-1) * ktwopi * kraddeg / 35. + offset2;
       AliMatrix(idrotm[i+1499], 90., atheta, 90., atheta + 90., 0., 0.);
       
@@ -2922,7 +2933,7 @@ void AliITSv3::CreateGeometry(){
     // --- Place the sensitive part of the strips into its mother (ISV2) 
     
     ypos = 0.;
-    for(j = 1; j <= 26; ++j) {
+    for (j = 1; j <= 26; ++j) {
       if (j % 2 == 0) xpos = dbox2[0] - dits[0];
       else            xpos = -dbox2[0] + dits[0];
       zpos = ((j - 1) - 12.) * 3.91 - 1.96;
@@ -2932,7 +2943,7 @@ void AliITSv3::CreateGeometry(){
     // --- Place the electronics of the strips into its mother (SSV2) 
     
     ypos = 0.;
-    for(j = 1; j <= 26; ++j) {
+    for (j = 1; j <= 26; ++j) {
       if (j % 2 == 0) xpos = -dsrv[0] + .28;
       else            xpos = -dsrv[0] + .28 - dits[0] * 2. - .03;
       zpos = ((j - 1) - 12.) * 3.91 - 1.96 + .85;
@@ -2960,7 +2971,7 @@ void AliITSv3::CreateGeometry(){
     
     xpos = -dsrv[0] + .47 + TMath::Sqrt(3.) / 6. * 4.2;
     ypos = 0.;
-    for(j = 1; j <= 27; ++j) {
+    for (j = 1; j <= 27; ++j) {
       zpos = ((j - 1) - 12.) * 3.91 - 1.96 - 4.2/2.;
       gMC->Gspos("SFR6", j, "SSV2", xpos, ypos, zpos, 0, "ONLY");
     }
@@ -2997,7 +3008,7 @@ void AliITSv3::CreateGeometry(){
     rzero   = dbox2[0] + 45.;
     runo    = dbox2[0] * 2. + 45. + dsrv[0];
     rtwo    = dbox2[0] * 2. + 45. + dela[0];
-    for(i = 1; i <= 39; ++i) {
+    for (i = 1; i <= 39; ++i) {
       atheta = (i-1) * ktwopi * kraddeg / 39. + offset2;
       AliMatrix(idrotm[i+1599], 90., atheta, 90., atheta + 90., 0., 0.);
       
@@ -3029,7 +3040,7 @@ void AliITSv3::CreateGeometry(){
   
   // --- Define SSD with the 32+36 lay-out 
   
-  if (fMinorVersionV3 >2 && fMinorVersionV3 < 6) {
+  if (fMinorVersion >2 && fMinorVersion < 6) {
     
     //--- Define ghost volume containing the Strip Detectors and fill it with air
     //     or vacuum 
@@ -3211,7 +3222,7 @@ void AliITSv3::CreateGeometry(){
     // --- Place the sensitive part of the strips into its mother (ISV1) 
     
     ypos = 0.;
-    for(j = 1; j <= 22; ++j) {
+    for (j = 1; j <= 22; ++j) {
       if (j % 2 == 0) xpos = dbox1[0] - dits[0];
       else            xpos = -dbox1[0] + dits[0];
       zpos = ((j - 1) - 10.) * 3.91 - 1.96;
@@ -3221,7 +3232,7 @@ void AliITSv3::CreateGeometry(){
     // --- Place the electronics of the strips into its mother (SSV1) 
     
     ypos = 0.;
-    for(j = 1; j <= 22; ++j) {
+    for (j = 1; j <= 22; ++j) {
       if (j % 2 == 0) xpos = -dsrv[0] + .28;
       else            xpos = -dsrv[0] + .28 - dits[0] * 2. - .03;
       zpos = ((j - 1) - 10.) * 3.91 - 1.96 + .85;
@@ -3249,7 +3260,7 @@ void AliITSv3::CreateGeometry(){
     
     xpos = -dsrv[0] + .47 + TMath::Sqrt(3.) / 6. * 4.2;
     ypos = 0.;
-    for(j = 1; j <= 23; ++j) {
+    for (j = 1; j <= 23; ++j) {
       zpos = ((j - 1) - 10.) * 3.91 - 1.96 - 4.2/2.;
       gMC->Gspos("SFR5", j, "SSV1", xpos, ypos, zpos, 0, "ONLY");
     }
@@ -3286,7 +3297,7 @@ void AliITSv3::CreateGeometry(){
     rzero   = dbox1[0] + 36.6;
     runo    = dbox1[0] * 2. + 36.6 + dsrv[0];
     rtwo    = dbox1[0] * 2. + 36.6 + dela[0];
-    for(i = 1; i <= 32; ++i) {
+    for (i = 1; i <= 32; ++i) {
       atheta = (i-1) * ktwopi * kraddeg / 32. + offset2;
       AliMatrix(idrotm[i+1499], 90., atheta, 90., atheta + 90., 0., 0.);
       
@@ -3468,7 +3479,7 @@ void AliITSv3::CreateGeometry(){
     // --- Place the sensitive part of the strips into its mother (ISV2) 
     
     ypos = 0.;
-    for(j = 1; j <= 24; ++j) {
+    for (j = 1; j <= 24; ++j) {
       if (j % 2 == 0) xpos = -dbox2[0] + dits[0];
       else            xpos = dbox2[0] - dits[0];
       zpos = ((j - 1) - 11.) * 3.91 - 1.96;
@@ -3478,7 +3489,7 @@ void AliITSv3::CreateGeometry(){
     // --- Place the electronics of the strips into its mother (SSV2) 
     
     ypos = 0.;
-    for(j = 1; j <= 24; ++j) {
+    for (j = 1; j <= 24; ++j) {
       if (j % 2 == 0) xpos = -dsrv[0] + .28 - dits[0] * 2. - .03;
       else            xpos = -dsrv[0] + .28;
       zpos = ((j - 1) - 11.) * 3.91 - 1.96 + .85;
@@ -3506,7 +3517,7 @@ void AliITSv3::CreateGeometry(){
     
     xpos = -dsrv[0] + .47 + TMath::Sqrt(3.) / 6. * 4.2;
     ypos = 0.;
-    for(j = 1; j <= 25; ++j) {
+    for (j = 1; j <= 25; ++j) {
       zpos = ((j - 1) - 11.) * 3.91 - 1.96 - 4.2/2.;
       gMC->Gspos("SFR6", j, "SSV2", xpos, ypos, zpos, 0, "ONLY");
     }
@@ -3543,7 +3554,7 @@ void AliITSv3::CreateGeometry(){
     rzero   = dbox2[0] + 41.2;
     runo    = dbox2[0] * 2. + 41.2 + dsrv[0];
     rtwo    = dbox2[0] * 2. + 41.2 + dela[0];
-    for(i = 1; i <= 36; ++i) {
+    for (i = 1; i <= 36; ++i) {
       atheta = (i-1) * ktwopi * kraddeg / 36. + offset2;
       AliMatrix(idrotm[i+1599], 90., atheta, 90., atheta + 90., 0., 0.);
       
@@ -3596,7 +3607,7 @@ void AliITSv3::CreateGeometry(){
   
   //      GOTO 8901                                    ! skip outer wall 
   
-  if (fMinorVersionV3 == 0 || fMinorVersionV3 == 3) {
+  if (fMinorVersion == 0 || fMinorVersion == 3) {
     
     dits[0] = 49.9;
     dits[1] = dits[0] + .06926;
@@ -3612,7 +3623,7 @@ void AliITSv3::CreateGeometry(){
   
   //     GOTO 9012                                    ! skip octagonal frame
   
-  if (fMinorVersionV3 == 1) {
+  if (fMinorVersion == 1) {
     
     rzero    = 34.;
     dtra[0]  = .92;
@@ -3623,7 +3634,7 @@ void AliITSv3::CreateGeometry(){
     dtra1[2] = TMath::Sqrt(dtra[2] * dtra[2] + (55.4*55.4-50.5*50.5))/2.;
     angle    = 45.;
     offset   = angle / 2.;
-    for(i = 0; i < 8; ++i) {
+    for (i = 0; i < 8; ++i) {
       xtra[i] = rzero * TMath::Cos(i * angle * kdegrad);
       ytra[i] = rzero * TMath::Sin(i * angle * kdegrad);
       ztra[i] = 0.;
@@ -3776,7 +3787,7 @@ void AliITSv3::CreateGeometry(){
     gMC->Gspos(knatra1[15], 1, "ITSV", xpos, ypos, zpos, idrotm[5115], "ONLY");
     
     
-  } else if (fMinorVersionV3 == 4) {
+  } else if (fMinorVersion == 4) {
     
     
     rzero    = 34.;
@@ -3788,7 +3799,7 @@ void AliITSv3::CreateGeometry(){
     dtra1[2] = TMath::Sqrt(dtra[2] * dtra[2] + (55.4*55.4-50.5*50.5))/2.;
     angle    = 45.;
     offset   = angle / 2.;
-    for(i = 0; i < 8; ++i) {
+    for (i = 0; i < 8; ++i) {
       xtra[i] = rzero * TMath::Cos(i * angle * kdegrad);
       ytra[i] = rzero * TMath::Sin(i * angle * kdegrad);
       ztra[i] = 0.;
@@ -3948,7 +3959,7 @@ void AliITSv3::CreateGeometry(){
   
   //     GOTO 9123                                    ! skip hexagonal frame
   
-  if (fMinorVersionV3 == 2) {
+  if (fMinorVersion == 2) {
     
     rzero    = 33.5;
     dtra2[0] = .92;
@@ -3962,7 +3973,7 @@ void AliITSv3::CreateGeometry(){
     dtra4[2] = TMath::Sqrt(dtra2[2] * dtra2[2] + (59.9*59.9-50.*50.)) / 2.;
     angle = 60.;
     offset = angle / 2.;
-    for(i = 0; i < 6; ++i) {
+    for (i = 0; i < 6; ++i) {
       xtra1[i] = rzero * TMath::Cos((i * angle + offset) *kdegrad);
       ytra1[i] = rzero * TMath::Sin((i * angle + offset) *kdegrad);
       ztra1[i] = 0.;
@@ -4180,7 +4191,7 @@ void AliITSv3::CreateGeometry(){
     gMC->Gspos(knatra4[15], 1, "ITSV", xpos, ypos, zpos, idrotm[5225], "ONLY");
     
     
-  } else if (fMinorVersionV3 == 5) {
+  } else if (fMinorVersion == 5) {
     
     
     rzero    = 33.5;
@@ -4195,7 +4206,7 @@ void AliITSv3::CreateGeometry(){
     dtra4[2] = TMath::Sqrt(dtra2[2] * dtra2[2] + (59.9*59.9-50.*50.)) / 2.;
     angle  = 60.;
     offset = angle / 2.;
-    for(i = 0; i < 6; ++i) {
+    for (i = 0; i < 6; ++i) {
       xtra1[i] = rzero * TMath::Cos((i * angle + offset) *kdegrad);
       ytra1[i] = rzero * TMath::Sin((i * angle + offset) *kdegrad);
       ztra1[i] = 0.;
@@ -4492,7 +4503,7 @@ void AliITSv3::CreateGeometry(){
   gMC->Gsvolu("RP04", "PGON", idtmed[274], dpgon, 10);
   gMC->Gspos("RP04", 1, "ITSV", xpos, ypos, zpos, 0, "ONLY");
   
-  if (fMinorVersionV3 < 3 ) {
+  if (fMinorVersion < 3 ) {
     offset2  = 5.2;
     dpgon[0] = offset2 + 360./(2.*35.);
     dpgon[1] = 360.;
@@ -4530,7 +4541,7 @@ void AliITSv3::CreateGeometry(){
     gMC->Gsvolu("RP06", "PGON", idtmed[274], dpgon, 10);
     gMC->Gspos("RP06", 1, "ITSV", xpos, ypos, zpos, 0, "ONLY");
   }
-  if (fMinorVersionV3 > 2 && fMinorVersionV3 < 6) {
+  if (fMinorVersion > 2 && fMinorVersion < 6) {
     offset2  = 5.2;
     dpgon[0] = offset2 + 5.625;
     dpgon[1] = 360.;
@@ -4647,7 +4658,7 @@ void AliITSv3::CreateGeometry(){
   gMC->Gsvolu("LP04", "PGON", idtmed[274], dpgon, 10);
   gMC->Gspos("LP04", 1, "ITSV", xpos, ypos, zpos, 0, "ONLY");
   
-  if (fMinorVersionV3 < 3) {
+  if (fMinorVersion < 3) {
     offset2  = 5.2;
     dpgon[0] = offset2 + 360./(2.*35.);
     dpgon[1] = 360.;
@@ -4685,7 +4696,7 @@ void AliITSv3::CreateGeometry(){
     gMC->Gsvolu("LP06", "PGON", idtmed[274], dpgon, 10);
     gMC->Gspos("LP06", 1, "ITSV", xpos, ypos, zpos, 0, "ONLY");
   }
-  if (fMinorVersionV3 > 2 && fMinorVersionV3 < 6) {
+  if (fMinorVersion > 2 && fMinorVersion < 6) {
     offset2  = 5.2;
     dpgon[0] = offset2 + 5.625;
     dpgon[1] = 360.;
@@ -4731,8 +4742,7 @@ void AliITSv3::CreateGeometry(){
   
   if (fEuclidOut) {
     gMC->WriteEuclid("ITSgeometry", "ITSV", 1, 5);
-  }
-  fMinorVersion = fMinorVersionV3;
+  };
 } 
 //_____________________________________________________________________________
 void AliITSv3::CreateMaterials(){
@@ -4922,21 +4932,9 @@ void AliITSv3::Init(){
 ////////////////////////////////////////////////////////////////////////
 //     Initialise the ITS after it has been created.
 ////////////////////////////////////////////////////////////////////////
-    Int_t i,j,l;
 
-    fIdN       = fId3N;;
-    fIdName    = new char*[fIdN];
-    fIdSens    = new Int_t[fIdN];
-    for(i=0;i<fId3N;i++) {
-       l = strlen(fId3Name[i]);
-       fIdName[i] = new char[l+1];
-       for(j=0;j<l;j++) fIdName[i][j] = fId3Name[i][j];
-       fIdName[i][l] = '\0'; // Null terminate this string.
-    } // end for i
-    //
     AliITS::Init();
     fMajorVersion = 3;
-    fMinorVersion = fMinorVersionV3;
 }
 //_____________________________________________________________________________
 void AliITSv3::StepManager(){
@@ -5076,32 +5074,3 @@ void AliITSv3::StepManager(){
   } // end if printit[layer][ladder][detector]
 #endif
 }
-//____________________________________________________________________________
-void AliITSv3::Streamer(TBuffer &R__b){
-////////////////////////////////////////////////////////////////////////
-//    A dummy Streamer function for this class AliITSv3. By default it
-// only streams the AliITS class as it is required. Since this class
-// dosen't contain any "real" data to be saved, it doesn't.
-////////////////////////////////////////////////////////////////////////
-
-    printf("AliITSv3Streamer Starting\n");
-   if (R__b.IsReading()) {
-      Version_t R__v = R__b.ReadVersion();
-      if (R__v==1) {
-         AliITS::Streamer(R__b);
-         // This information does not need to be read. It is "hard wired"
-         // into this class via its creators.
-         //R__b >> fId3N;
-         //R__b.ReadArray(fId3Name);
-      }else{
-      } // end if
-   } else {
-      R__b.WriteVersion(AliITSv3::IsA());
-      AliITS::Streamer(R__b);
-      // This information does not need to be saved. It is "hard wired"
-      // into this class via its creators.
-      //R__b << fId3N;
-      //R__b.WriteArray(fId3Name, __COUNTER__);
-   } // end if R__b.IsReading()
-    printf("AliITSv3Streamer Finishing\n");
-}