+ angl[4] = TMath::ACos(mat[8]);
+ if(mat[8]==1.0) angl[4] = 0.0;
+ angl[5] = TMath::ATan2(mat[7],mat[6]);
+ if(angl[5]<0.0) angl[5] += 2.0*TMath::Pi();
+
+ for(i=0;i<6;i++) angl[i] *= 180.0/TMath::Pi(); // degrees
+// i = gMC->CurrentVolID(copy);
+// gMC->Gfpara(gMC->CurrentVolName(),copy,1,copy1,copy2,par,att);
+ fp = fopen("ITSgeometry_v5.det","a");
+ fprintf(fp,"%2d %2d %2d %9e %9e %9e %9e %9e %9e %9e %9e %9e ",
+ vol[0],vol[2],vol[1], // layer ladder detector
+ xt[0],xt[1],xt[2], // Translation vector
+ angl[0],angl[1],angl[2],angl[3],angl[4],angl[5] // Geant rotaion
+ // angles (degrees)
+ );
+ fprintf(fp,"%9e %9e %9e %9e %9e %9e %9e %9e %9e",
+ mat[0],mat[1],mat[2],mat[3],mat[4],mat[5],mat[6],mat[7],mat[8]
+ ); // Adding the rotation matrix.
+ fprintf(fp,"\n");
+ fclose(fp);
+ } // 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.
+////////////////////////////////////////////////////////////////////////