]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSvPPRcoarsesymm.cxx
Some mother volumes sligthly modified to eliminate an overlap with the absorber
[u/mrichter/AliRoot.git] / ITS / AliITSvPPRcoarsesymm.cxx
index 41ebeb3d99a5f9b6c5bd56d5c695e8b1bf83d8bc..e02f9e53c88a7dcc0f330bf94775266249271c45 100644 (file)
 
 /*
 $Log$
+Revision 1.16  2001/02/09 00:05:31  nilsen
+Added fMajor/MinorVersion variables and made other changes to better make
+use of the new code changes in AliITSgeom related classes.
+
+Revision 1.15  2001/01/30 09:23:13  hristov
+Streamers removed (R.Brun)
+
+Revision 1.14  2001/01/17 07:41:29  barbera
+Some media parameters modified
+
+Revision 1.13  2001/01/15 13:13:52  barbera
+Some comments added
+
 Revision 1.12  2000/12/10 16:00:44  barbera
 Added last definition of special media like end-ladder boxes and cones
 
@@ -101,7 +114,7 @@ Introduction of the Copyright and cvs Log
 // strongly encouraged to uses AliITSv5.
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
+#include <iostream.h> 
 #include <TMath.h>
 #include <TRandom.h>
 #include <TVector.h>
@@ -131,16 +144,11 @@ AliITSvPPRcoarsesymm::AliITSvPPRcoarsesymm() {
 //    Standard default constructor for the ITS version 7.
 ////////////////////////////////////////////////////////////////////////
 
-  fIdN = 6;
-  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]=fIdName[i].Length();
+    fIdN = 0;
+    fIdName = 0;
+    fIdSens    = 0;
+    fMajorVersion = 8;
+    fMinorVersion = 0;
 }
 //_____________________________________________________________________________
 AliITSvPPRcoarsesymm::AliITSvPPRcoarsesymm(const char *name, const char *title) : AliITS(name, title){
@@ -148,17 +156,18 @@ AliITSvPPRcoarsesymm::AliITSvPPRcoarsesymm(const char *name, const char *title)
 //    Standard constructor for the ITS version 7.
 ////////////////////////////////////////////////////////////////////////
 
-  fIdN = 6;
-  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]=fIdName[i].Length();
-
+    fIdN = 6;
+    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 = 9;
+    fMinorVersion = 0;
 }
 //____________________________________________________________________________
 AliITSvPPRcoarsesymm::AliITSvPPRcoarsesymm(const AliITSvPPRcoarsesymm &source){
@@ -166,7 +175,7 @@ AliITSvPPRcoarsesymm::AliITSvPPRcoarsesymm(const AliITSvPPRcoarsesymm &source){
 //     Copy Constructor for ITS version 7.
 ////////////////////////////////////////////////////////////////////////
     if(&source == this) return;
-    printf("Not allowed to copy AliITSvPPRcoarsesymm\n");
+    Warning("Copy Constructor","Not allowed to copy AliITSvPPRcoarsesymm");
     return;
 }
 //_____________________________________________________________________________
@@ -175,7 +184,7 @@ AliITSvPPRcoarsesymm& AliITSvPPRcoarsesymm::operator=(const AliITSvPPRcoarsesymm
 //    Assignment operator for the ITS version 7.
 ////////////////////////////////////////////////////////////////////////
   if(&source == this) return *this;
-    printf("Not allowed to copy AliITSvPPRcoarsesymm\n");
+    Warning("= operator","Not allowed to copy AliITSvPPRcoarsesymm");
   return *this;
 }
 //_____________________________________________________________________________
@@ -331,7 +340,6 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
   dgh[36] = xltpc+4.+0.1;
   dgh[37] = 62.4;
   dgh[38] = 85.;
-
   gMC->Gsvolu("ITSV", "PCON", idtmed[275], dgh, 39);
   
   // --- Place the ghost volume in its mother volume (ALIC) and make it 
@@ -347,7 +355,7 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
   dgh[1] = 360.;
   dgh[2] = 4.;
   dgh[3] = -77.2;
-  dgh[4] = 45.;
+  dgh[4] = 46.;
   dgh[5] = 56.;
   dgh[6] = -40.;     
   dgh[7] = 3.3;
@@ -356,7 +364,7 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
   dgh[10] = 3.3;
   dgh[11] = 56.;
   dgh[12] = 77.2;
-  dgh[13] = 45.;
+  dgh[13] = 46.;
   dgh[14] = 56.;
   gMC->Gsvolu("ITSD", "PCON", idtmed[275], dgh, 15);
   
@@ -472,7 +480,7 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
   pcits[2] = 8.5+0.1;
   pcits[3] = 28.;
   pcits[4] = 28.+0.1;  
-  gMC->Gsvolu("ICO1", "CONE", idtmed[274], pcits, 5);    
+  gMC->Gsvolu("ICO1", "CONE", idtmed[238], pcits, 5);    
   AliMatrix(idrotm[200], 90., 0., 90., 90., 180., 0.);
   gMC->Gspos("ICO1", 1, "ITSD", 0., 0., 42.5+pcits[0], 0, "ONLY");
   gMC->Gspos("ICO1", 2, "ITSD", 0., 0., -(42.5+pcits[0]), idrotm[200], "ONLY");  
@@ -492,7 +500,7 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
   pcits[2] = 28.+0.1;
   pcits[3] = 47.;
   pcits[4] = 47.+0.1;
-  gMC->Gsvolu("ICO2", "CONE", idtmed[266], pcits, 5);    
+  gMC->Gsvolu("ICO2", "CONE", idtmed[264], pcits, 5);    
   gMC->Gspos("ICO2", 1, "ITSD", 0., 0., 59.+pcits[0], 0, "ONLY");
   gMC->Gspos("ICO2", 2, "ITSD", 0., 0., -(59.+pcits[0]), idrotm[200], "ONLY");
 
@@ -502,8 +510,8 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
   
   // --- DEFINE CABLES AT THE END OF THE ITS CONES - COPPER PART
   
-  dgh[0] = 45.;
-  dgh[1] = 45.+1.0;
+  dgh[0] = 46.;
+  dgh[1] = 46.+1.0;
   dgh[2] = 9.5;
   
   gMC->Gsvolu("ICCU", "TUBE", idtmed[279], dgh, 3);  
@@ -512,8 +520,8 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
   
   // --- DEFINE CABLES AT THE END OF THE ITS CONES - CARBON PART
   
-  dgh[0] = 45.+1.0;
-  dgh[1] = 45.+1.0+1.5;
+  dgh[0] = 46.+1.0;
+  dgh[1] = 46.+1.0+1.5;
   dgh[2] = 9.5;
   
   gMC->Gsvolu("ICCC", "TUBE", idtmed[274], dgh, 3);  
@@ -522,7 +530,7 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
   
   // --- DEFINE PATCH PANELS AT THE END OF THE ITS CONES
   
-  dgh[0] = 45.;
+  dgh[0] = 46.;
   dgh[1] = 56.;
   dgh[2] = 2.25;
   
@@ -533,10 +541,10 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
   // --- DEFINE CABLES/COOLING BELOW THE TPC - COPPER PART - UPPER PART
  
   dgh[0] = (xltpc-100.7)/2.;
-  dgh[1] = 45.2;
-  dgh[2] = 45.2+1.0;
-  dgh[3] = 61.8;
-  dgh[4] = 61.8+1.0;
+  dgh[1] = 46.2;
+  dgh[2] = 46.2+1.0;
+  dgh[3] = 62.3;
+  dgh[4] = 62.3+1.0;
   dgh[5] = 12.;    
   dgh[6] = 168.;
   gMC->Gsvolu("ICU1", "CONS", idtmed[279], dgh, 7);    
@@ -546,10 +554,10 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
   // --- DEFINE CABLES/COOLING BELOW THE TPC - COPPER PART - LOWER PART
   
   dgh[0] = (xltpc-100.7)/2.;
-  dgh[1] = 45.2;
-  dgh[2] = 45.2+1.0;
-  dgh[3] = 61.8;
-  dgh[4] = 61.8+1.0;
+  dgh[1] = 46.2;
+  dgh[2] = 46.2+1.0;
+  dgh[3] = 62.3;
+  dgh[4] = 62.3+1.0;
   dgh[5] = 192.;    
   dgh[6] = 348.;
   gMC->Gsvolu("ICU2", "CONS", idtmed[279], dgh, 7);    
@@ -559,10 +567,10 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
   // --- DEFINE CABLES/COOLING BELOW THE TPC - CARBON PART - UPPER PART
   
   dgh[0] = (xltpc-100.7)/2.;
-  dgh[1] = 45.2+1.0;
-  dgh[2] = 45.2+1.0+1.5;
-  dgh[3] = 61.8+1.0;
-  dgh[4] = 61.8+1.0+1.5;
+  dgh[1] = 46.2+1.0;
+  dgh[2] = 46.2+1.0+1.5;
+  dgh[3] = 62.3+1.0;
+  dgh[4] = 62.3+1.0+1.5;
   dgh[5] = 12.;    
   dgh[6] = 168.;  
   gMC->Gsvolu("ICC1", "CONS", idtmed[274], dgh, 7);    
@@ -572,10 +580,10 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
   // --- DEFINE CABLES/COOLING BELOW THE TPC - CARBON PART - LOWER PART
   
   dgh[0] = (xltpc-100.7)/2.;
-  dgh[1] = 45.2+1.0;
-  dgh[2] = 45.2+1.0+1.5;
-  dgh[3] = 61.8+1.0;
-  dgh[4] = 61.8+1.0+1.5;
+  dgh[1] = 46.2+1.0;
+  dgh[2] = 46.2+1.0+1.5;
+  dgh[3] = 62.3+1.0;
+  dgh[4] = 62.3+1.0+1.5;
   dgh[5] = 192.;    
   dgh[6] = 348.;  
   gMC->Gsvolu("ICC2", "CONS", idtmed[274], dgh, 7);    
@@ -584,7 +592,7 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
     
   // --- DEFINE CABLES/COOLING BEHIND THE TPC - COPPER PART - UPPER PART
     
-  dgh[0] = 62.5;
+  dgh[0] = 62.1;
   dgh[1] = 74.5;
   dgh[2] = 0.5;
   dgh[3] = 12.;
@@ -595,7 +603,7 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
   
   // --- DEFINE CABLES/COOLING BEHIND THE TPC - COPPER PART - LOWER PART
   
-  dgh[0] = 62.5;
+  dgh[0] = 62.1;
   dgh[1] = 74.5;
   dgh[2] = 0.5;
   dgh[3] = 192.;
@@ -606,7 +614,7 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
      
   // --- DEFINE CABLES/COOLING BEHIND THE TPC - CARBON PART - UPPER PART
 
-  dgh[0] = 62.5;
+  dgh[0] = 62.1;
   dgh[1] = 74.5;
   dgh[2] = 0.75;
   dgh[3] = 12.;
@@ -617,7 +625,7 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
     
   // --- DEFINE CABLES/COOLING BEHIND THE TPC - CARBON PART - LOWER PART
 
-  dgh[0] = 62.5;
+  dgh[0] = 62.1;
   dgh[1] = 74.5;
   dgh[2] = 0.75;
   dgh[3] = 192.;
@@ -893,11 +901,17 @@ void AliITSvPPRcoarsesymm::Init(){
 ////////////////////////////////////////////////////////////////////////
 //     Initialise the ITS after it has been created.
 ////////////////////////////////////////////////////////////////////////
+    Int_t i;
 
-    //
+    cout << endl;
+    for(i=0;i<25;i++) cout << "*";cout << " ITSvPPRcoarsesymm_Init ";
+    for(i=0;i<25;i++) cout << "*";cout << endl;
+//
     AliITS::Init();
-    fMajorVersion = 1;
-    fMinorVersion = 0;
+//
+    for(i=0;i<72;i++) cout << "*";
+    cout << endl;
+
 }  
  
 //_____________________________________________________________________________
@@ -1030,21 +1044,3 @@ void AliITSvPPRcoarsesymm::StepManager(){
 //
 */
 }
-/*
-//____________________________________________________________________________
-void AliITSvPPRcoarsesymm::Streamer(TBuffer &R__b){
-////////////////////////////////////////////////////////////////////////
-//    A dummy Streamer function for this class AliITSvPPRcoarsesymm. 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.
-////////////////////////////////////////////////////////////////////////
-
-   if (R__b.IsReading()) {
-      Version_t R__v = R__b.ReadVersion(); if (R__v) { }
-      AliITS::Streamer(R__b);
-   } else {
-      R__b.WriteVersion(AliITSvPPRcoarsesymm::IsA());
-      AliITS::Streamer(R__b);
-   } // end if R__b.IsReading()
-}
-*/