]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
New flag added to change the material for some service supports as asked by the PMD...
authorbarbera <barbera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Mar 2001 22:01:53 +0000 (22:01 +0000)
committerbarbera <barbera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Mar 2001 22:01:53 +0000 (22:01 +0000)
ITS/AliITSvPPRcoarseasymm.cxx
ITS/AliITSvPPRcoarseasymm.h
ITS/AliITSvPPRcoarsesymm.cxx
ITS/AliITSvPPRcoarsesymm.h

index 3a925af7bf44f84c2ec41e3af74ca4884d786992..ef06cc6129557ee1489026cc328e6cf3e1f3ff72 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.21  2001/03/29 05:28:56  barbera
+Rails material changed from aluminum to carbon fiber according with the decision of the last Technical Board
+
 Revision 1.20  2001/03/28 06:40:21  barbera
 Central and services mother volumes made consistenf for detailed and coarse geometry. Switch for rails added to the coarse geometries
 
@@ -273,23 +276,37 @@ void AliITSvPPRcoarseasymm::CreateGeometry(){
   Int_t idrotm[1999], i;
   Float_t dgh[100];
   
-
   Int_t rails = 1;       // flag for rails (1 --> rails in; 0 --> rails out)
-  
+  Int_t suppmat = 0;     // flag to change the material of the services
+                         // supports (=0 copper, =1 aluminum, =2 carbon)  
   rails = GetRails();
   
   if(rails != 0 && rails != 1) {
      cout << "WARNING: the switch for rails is not set neither to 0 (rails out) nor to 1 (rails in)." 
      " The default value of 1 (rails in) will be used." << endl;
-       
   }  
   
-  if(rails == 0 ) {
+  if (rails == 0 ) {
      cout << "Rails are out." << endl; 
   } else {
      cout << "Rails are in." << endl;
   }      
-    
+  
+  suppmat = GetSupportMaterial();   
+  
+  if (suppmat != 0 && suppmat != 1 && suppmat != 2) {
+     cout << "WARNING: the flag for the material of services supports is not set neither to 0 (copper) nor to 1 (aluminum) nor to 2 (carbon)." 
+     " The default value of 0 (copper) will be used." << endl;
+  }  
+  
+  if (suppmat == 0) {
+     cout << "The material of the services supports is copper." << endl; 
+  } else if (suppmat == 1){
+     cout << "The material of the services supports is aluminum." << endl;
+  } else {
+     cout << "The material of the services supports is carbon." << endl;
+  }      
+      
 
   Int_t *idtmed = fIdtmed->GetArray()-199;
   
@@ -540,35 +557,98 @@ void AliITSvPPRcoarseasymm::CreateGeometry(){
 
   
   // --- DEFINE CABLES AT THE END OF THE ITS CONES - COPPER PART
+  //     UPPER PART
   
   dgh[0] = 46.;    
   dgh[1] = 46.+1.0;  
   dgh[2] = 9.5;
+  dgh[3] = 12.;
+  dgh[4] = 168.;
   
-  gMC->Gsvolu("ICCU", "TUBE", idtmed[279], dgh, 3);  
-  gMC->Gspos("ICCU", 1, "ITSV", 0., 0., 83.5, 0, "ONLY");
-  gMC->Gspos("ICCU", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY");
+  if (suppmat == 0) {
+     gMC->Gsvolu("I1CU", "TUBS", idtmed[279], dgh, 5);    // copper
+  } else if (suppmat == 1) {
+     gMC->Gsvolu("I1CU", "TUBS", idtmed[285], dgh, 5);    // aluminum
+  } else {
+     gMC->Gsvolu("I1CU", "TUBS", idtmed[274], dgh, 5);    // carbon
+  }     
+  gMC->Gspos("I1CU", 1, "ITSV", 0., 0., 83.5, 0, "ONLY");
+  gMC->Gspos("I1CU", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY");
   
+  // --- DEFINE CABLES AT THE END OF THE ITS CONES - COPPER PART
+  //     LOWER PART
+  
+  dgh[0] = 46.;    
+  dgh[1] = 46.+1.0;  
+  dgh[2] = 9.5;
+  dgh[3] = 192.;
+  dgh[4] = 348.;
+  
+  if (suppmat == 0) {
+     gMC->Gsvolu("I2CU", "TUBS", idtmed[279], dgh, 5);    // copper
+  } else if (suppmat == 1) {
+     gMC->Gsvolu("I2CU", "TUBS", idtmed[285], dgh, 5);    // aluminum
+  } else {
+     gMC->Gsvolu("I2CU", "TUBS", idtmed[274], dgh, 5);    // carbon
+  }     
+  gMC->Gspos("I2CU", 1, "ITSV", 0., 0., 83.5, 0, "ONLY");
+  gMC->Gspos("I2CU", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY");
+
+
   // --- DEFINE CABLES AT THE END OF THE ITS CONES - CARBON PART
+  //     UPPER PART
   
   dgh[0] = 46.+1.0;  
   dgh[1] = 46.+1.0+1.5;   
   dgh[2] = 9.5;
+  dgh[3] = 12.;
+  dgh[4] = 168.;
   
-  gMC->Gsvolu("ICCC", "TUBE", idtmed[274], dgh, 3);  
-  gMC->Gspos("ICCC", 1, "ITSV", 0., 0., 83.5, 0, "ONLY");
-  gMC->Gspos("ICCC", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY");  
+  gMC->Gsvolu("I1CC", "TUBS", idtmed[274], dgh, 5);  
+  gMC->Gspos("I1CC", 1, "ITSV", 0., 0., 83.5, 0, "ONLY");
+  gMC->Gspos("I1CC", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY");  
   
-  // --- DEFINE PATCH PANELS AT THE END OF THE ITS CONES
+  // --- DEFINE CABLES AT THE END OF THE ITS CONES - CARBON PART
+  //     LOWER PART
+  
+  dgh[0] = 46.+1.0;  
+  dgh[1] = 46.+1.0+1.5;   
+  dgh[2] = 9.5;
+  dgh[3] = 192.;
+  dgh[4] = 348.;
   
+  gMC->Gsvolu("I2CC", "TUBS", idtmed[274], dgh, 5);  
+  gMC->Gspos("I2CC", 1, "ITSV", 0., 0., 83.5, 0, "ONLY");
+  gMC->Gspos("I2CC", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY");  
+
+  // --- DEFINE PATCH PANELS AT THE END OF THE ITS CONES
+  //    UPPER PART
+    
   dgh[0] = 46.;  
   dgh[1] = 56.;
   dgh[2] = 2.25;
+  dgh[3] = 12.;
+  dgh[4] = 168.;
   
-  gMC->Gsvolu("IPAN", "TUBE", idtmed[285], dgh, 3);  
-  gMC->Gspos("IPAN", 1, "ITSV", 0., 0., 95.25, 0, "ONLY");  
-  gMC->Gspos("IPAN", 2, "ITSV", 0., 0., -95.25, idrotm[200], "ONLY"); 
+  gMC->Gsvolu("IPA1", "TUBS", idtmed[285], dgh, 5);  
+  gMC->Gspos("IPA1", 1, "ITSV", 0., 0., 95.25, 0, "ONLY");  
+  gMC->Gspos("IPA1", 2, "ITSV", 0., 0., -95.25, idrotm[200], "ONLY"); 
+
+
+  // --- DEFINE PATCH PANELS AT THE END OF THE ITS CONES
+  //     LOWER PART
+    
+  dgh[0] = 46.;  
+  dgh[1] = 56.;
+  dgh[2] = 2.25;
+  dgh[3] = 192.;
+  dgh[4] = 348.;
   
+  gMC->Gsvolu("IPA2", "TUBS", idtmed[285], dgh, 5);  
+  gMC->Gspos("IPA2", 1, "ITSV", 0., 0., 95.25, 0, "ONLY");  
+  gMC->Gspos("IPA2", 2, "ITSV", 0., 0., -95.25, idrotm[200], "ONLY"); 
+
+
   // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE ABSORBER SIDE - COPPER PART
   //     UPPER PART
   
@@ -579,7 +659,13 @@ void AliITSvPPRcoarseasymm::CreateGeometry(){
   dgh[4] = 62.3+1.0;   
   dgh[5] = 12.;    
   dgh[6] = 168.;
-  gMC->Gsvolu("ICU1", "CONS", idtmed[279], dgh, 7);    
+  if (suppmat == 0) {
+     gMC->Gsvolu("ICU1", "CONS", idtmed[279], dgh, 7);    // copper
+  } else if (suppmat == 1) {
+     gMC->Gsvolu("ICU1", "CONS", idtmed[285], dgh, 7);    // aluminum  
+  } else {
+     gMC->Gsvolu("ICU1", "CONS", idtmed[274], dgh, 7);    // carbon
+  }
   gMC->Gspos("ICU1", 1, "ITSV", 0., 0., 97.5+dgh[0], 0, "ONLY");   
   
   // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE ABSORBER SIDE - COPPER PART
@@ -592,7 +678,13 @@ void AliITSvPPRcoarseasymm::CreateGeometry(){
   dgh[4] = 62.3+1.0;  
   dgh[5] = 192.;    
   dgh[6] = 348.;
-  gMC->Gsvolu("ICU2", "CONS", idtmed[279], dgh, 7);    
+  if (suppmat == 0) {
+     gMC->Gsvolu("ICU2", "CONS", idtmed[279], dgh, 7);    // copper
+  } else if (suppmat == 1) {
+     gMC->Gsvolu("ICU2", "CONS", idtmed[285], dgh, 7);    // aluminum  
+  } else {
+     gMC->Gsvolu("ICU2", "CONS", idtmed[274], dgh, 7);    // carbon
+  }
   gMC->Gspos("ICU2", 1, "ITSV", 0., 0., 97.5+dgh[0], 0, "ONLY");  
 
 
@@ -630,7 +722,13 @@ void AliITSvPPRcoarseasymm::CreateGeometry(){
   dgh[2] = 0.5;
   dgh[3] = 12.;
   dgh[4] = 168.;
-  gMC->Gsvolu("ICU3", "TUBS", idtmed[279], dgh, 5);    
+  if (suppmat == 0) {
+     gMC->Gsvolu("ICU3", "TUBS", idtmed[279], dgh, 5);    // copper
+  } else if (suppmat == 1) {
+     gMC->Gsvolu("ICU3", "TUBS", idtmed[285], dgh, 5);    // aluminum
+  } else {
+     gMC->Gsvolu("ICU3", "TUBS", idtmed[274], dgh, 5);    // carbon
+    }
   gMC->Gspos("ICU3", 1, "ITSV", 0., 0., ztpc+1.5+dgh[2], 0, "ONLY");  
 
   // --- DEFINE CABLES/COOLING BEHIND THE TPC ON THE ABSORBER SIDE - COPPER PART
@@ -641,7 +739,13 @@ void AliITSvPPRcoarseasymm::CreateGeometry(){
   dgh[2] = 0.5;
   dgh[3] = 192.;
   dgh[4] = 348.;
-  gMC->Gsvolu("ICU4", "TUBS", idtmed[279], dgh, 5);    
+  if (suppmat == 0) {
+     gMC->Gsvolu("ICU4", "TUBS", idtmed[279], dgh, 5);    // copper
+  } else if (suppmat == 1) {
+     gMC->Gsvolu("ICU4", "TUBS", idtmed[285], dgh, 5);    // aluminum
+  } else {
+     gMC->Gsvolu("ICU4", "TUBS", idtmed[274], dgh, 5);    // carbon
+  }
   gMC->Gspos("ICU4", 1, "ITSV", 0., 0., ztpc+1.5+dgh[2], 0, "ONLY");     
      
   // --- DEFINE CABLES/COOLING BEHIND THE TPC ON THE ABSORBER SIDE - CARBON PART
@@ -674,7 +778,13 @@ void AliITSvPPRcoarseasymm::CreateGeometry(){
   dgh[2] = (ztpc-97.5+1.5)/2.;
   dgh[3] = 12.;
   dgh[4] = 168.;
-  gMC->Gsvolu("ICU5", "TUBS", idtmed[279], dgh, 5);   
+  if (suppmat == 0) {
+     gMC->Gsvolu("ICU5", "TUBS", idtmed[279], dgh, 5);   // copper
+  } else if (suppmat == 1) {
+     gMC->Gsvolu("ICU5", "TUBS", idtmed[285], dgh, 5);   // aluminum
+  } else {
+     gMC->Gsvolu("ICU5", "TUBS", idtmed[274], dgh, 5);   // carbon
+  }
   gMC->Gspos("ICU5", 1, "ITSV", 0., 0., -97.5-dgh[2], 0, "ONLY");  
   
   // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE OTHER SIDE W.R.T.
@@ -685,7 +795,13 @@ void AliITSvPPRcoarseasymm::CreateGeometry(){
   dgh[2] = (ztpc-97.5+1.5)/2.;
   dgh[3] = 192.;
   dgh[4] = 348.;  
-  gMC->Gsvolu("ICU6", "TUBS", idtmed[279], dgh, 5);   
+  if (suppmat == 0) {
+     gMC->Gsvolu("ICU6", "TUBS", idtmed[279], dgh, 5);   // copper
+  } else if (suppmat == 1) {
+     gMC->Gsvolu("ICU6", "TUBS", idtmed[285], dgh, 5);   // aluminum
+  } else {
+     gMC->Gsvolu("ICU6", "TUBS", idtmed[274], dgh, 5);   // carbon
+  }
   gMC->Gspos("ICU6", 1, "ITSV", 0., 0., -97.5-dgh[2], 0, "ONLY");    
   
   // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE OTHER SIDE W.R.T.
@@ -718,7 +834,13 @@ void AliITSvPPRcoarseasymm::CreateGeometry(){
   dgh[2] = 0.5;
   dgh[3] = 12.;
   dgh[4] = 168.;  
-  gMC->Gsvolu("ICU7", "TUBS", idtmed[279], dgh, 5);   
+  if (suppmat == 0) {
+     gMC->Gsvolu("ICU7", "TUBS", idtmed[279], dgh, 5);   // copper
+  } else if (suppmat == 1) {
+     gMC->Gsvolu("ICU7", "TUBS", idtmed[285], dgh, 5);   // aluminum
+  } else {
+     gMC->Gsvolu("ICU7", "TUBS", idtmed[274], dgh, 5);   // carbon
+  }
   gMC->Gspos("ICU7", 1, "ITSV", 0., 0., -(ztpc+1.5+dgh[2]), 0, "ONLY");  
   
   // --- DEFINE CABLES/COOLING BEHIND THE TPC ON OTHER SIDE W.R.T. THE ABSORBER
@@ -729,7 +851,13 @@ void AliITSvPPRcoarseasymm::CreateGeometry(){
   dgh[2] = 0.5;
   dgh[3] = 192.;
   dgh[4] = 348.;   
-  gMC->Gsvolu("ICU8", "TUBS", idtmed[279], dgh, 5);   
+  if (suppmat == 0) {
+     gMC->Gsvolu("ICU8", "TUBS", idtmed[279], dgh, 5);   // copper
+  } else if (suppmat == 1) {
+     gMC->Gsvolu("ICU8", "TUBS", idtmed[285], dgh, 5);   // aluminum
+  } else {
+     gMC->Gsvolu("ICU8", "TUBS", idtmed[274], dgh, 5);   // carbon
+  }
   gMC->Gspos("ICU8", 1, "ITSV", 0., 0., -(ztpc+1.5+dgh[2]), 0, "ONLY");      
     
   // --- DEFINE CABLES/COOLING BEHIND THE TPC ON OTHER SIDE W.R.T. THE ABSORBER
index d210ff97bdaa464d7e1940e5e7c7a47f4013a00d..5933de0d26a224731e44fa36b064194eee18068d 100644 (file)
@@ -29,10 +29,16 @@ class AliITSvPPRcoarseasymm : public AliITS {
     virtual void   StepManager();
     virtual void   SetRails(Int_t v=1){ 
         // Set flag for rails
-        fRails = v;}       
+        fRails = v;}   
+    virtual void   SetSupportMaterial(Int_t v=0){ 
+        // Set material of the services supports
+        fSuppMat = v;}                      
     virtual Int_t GetRails(){ 
         // Get flag for rails
-        return fRails;}                  
+        return fRails;}
+    virtual Int_t GetSupportMaterial(){ 
+        // Get material of the services supports 
+        return fSuppMat;}                
     virtual Int_t GetMajorVersion(){// return Major Version Number
        return fMajorVersion;}
     virtual Int_t GetMinorVersion(){// return Major Version Number
@@ -43,7 +49,9 @@ class AliITSvPPRcoarseasymm : public AliITS {
     Int_t  fMajorVersion;     // Major version number == IsVersion
     Int_t  fMinorVersion;     // Minor version number
     Int_t  fRails;            // flag to switch rails on (=1) and off (=0)
-    
+    Int_t  fSuppMat;          // flag to change the material of the services
+                              // supports (=0 copper, =1 aluminum, =2 carbon)
+                                 
     ClassDef(AliITSvPPRcoarseasymm,1)  //Hits manager for set:ITS version 6 
                                        // PPR coarse Geometry asymmetric
 };
index 29acde73f16e145eea27aa2f5354354b44b16a08..4b6c4b9f5c972d5c4248f6650c566d1a7fb1fea0 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.19  2001/03/29 05:28:56  barbera
+Rails material changed from aluminum to carbon fiber according with the decision of the last Technical Board
+
 Revision 1.18  2001/03/28 06:40:21  barbera
 Central and services mother volumes made consistenf for detailed and coarse geometry. Switch for rails added to the coarse geometries
 
@@ -271,20 +274,36 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
   Float_t dgh[100];
   
   Int_t rails = 1;       // flag for rails (1 --> rails in; 0 --> rails out)
-  
+  Int_t suppmat = 0;     // flag to change the material of the services
+                         // supports (=0 copper, =1 aluminum, =2 carbon)  
   rails = GetRails();
   
   if(rails != 0 && rails != 1) {
      cout << "WARNING: the switch for rails is not set neither to 0 (rails out) nor to 1 (rails in)." 
      " The default value of 1 (rails in) will be used." << endl;
-       
   }  
   
-  if(rails == 0 ) {
+  if (rails == 0 ) {
      cout << "Rails are out." << endl; 
   } else {
      cout << "Rails are in." << endl;
-  }        
+  }      
+  
+  suppmat = GetSupportMaterial();   
+  
+  if (suppmat != 0 && suppmat != 1 && suppmat != 2) {
+     cout << "WARNING: the flag for the material of services supports is not set neither to 0 (copper) nor to 1 (aluminum) nor to 2 (carbon)." 
+     " The default value of 0 (copper) will be used." << endl;
+  }  
+  
+  if (suppmat == 0) {
+     cout << "The material of the services supports is copper." << endl; 
+  } else if (suppmat == 1){
+     cout << "The material of the services supports is aluminum." << endl;
+  } else {
+     cout << "The material of the services supports is carbon." << endl;
+  }      
+  
 
   Int_t *idtmed = fIdtmed->GetArray()-199;
   
@@ -532,37 +551,99 @@ void AliITSvPPRcoarsesymm::CreateGeometry(){
 
   // ****************************  SERVICES  *********************************
 
-  
+
   // --- DEFINE CABLES AT THE END OF THE ITS CONES - COPPER PART
+  //     UPPER PART
   
-  dgh[0] = 46.;
-  dgh[1] = 46.+1.0;
+  dgh[0] = 46.;    
+  dgh[1] = 46.+1.0;  
   dgh[2] = 9.5;
+  dgh[3] = 12.;
+  dgh[4] = 168.;
+  
+  if (suppmat == 0) {
+     gMC->Gsvolu("I1CU", "TUBS", idtmed[279], dgh, 5);    // copper
+  } else if (suppmat == 1) {
+     gMC->Gsvolu("I1CU", "TUBS", idtmed[285], dgh, 5);    // aluminum
+  } else {
+     gMC->Gsvolu("I1CU", "TUBS", idtmed[274], dgh, 5);    // carbon
+  }     
+  gMC->Gspos("I1CU", 1, "ITSV", 0., 0., 83.5, 0, "ONLY");
+  gMC->Gspos("I1CU", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY");
   
-  gMC->Gsvolu("ICCU", "TUBE", idtmed[279], dgh, 3);  
-  gMC->Gspos("ICCU", 1, "ITSV", 0., 0., 83.5, 0, "ONLY");
-  gMC->Gspos("ICCU", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY");
+  // --- DEFINE CABLES AT THE END OF THE ITS CONES - COPPER PART
+  //     LOWER PART
   
+  dgh[0] = 46.;    
+  dgh[1] = 46.+1.0;  
+  dgh[2] = 9.5;
+  dgh[3] = 192.;
+  dgh[4] = 348.;
+  
+  if (suppmat == 0) {
+     gMC->Gsvolu("I2CU", "TUBS", idtmed[279], dgh, 5);    // copper
+  } else if (suppmat == 1) {
+     gMC->Gsvolu("I2CU", "TUBS", idtmed[285], dgh, 5);    // aluminum
+  } else {
+     gMC->Gsvolu("I2CU", "TUBS", idtmed[274], dgh, 5);    // carbon
+  }     
+  gMC->Gspos("I2CU", 1, "ITSV", 0., 0., 83.5, 0, "ONLY");
+  gMC->Gspos("I2CU", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY");
+
+
   // --- DEFINE CABLES AT THE END OF THE ITS CONES - CARBON PART
+  //     UPPER PART
   
-  dgh[0] = 46.+1.0;
-  dgh[1] = 46.+1.0+1.5;
+  dgh[0] = 46.+1.0;  
+  dgh[1] = 46.+1.0+1.5;   
   dgh[2] = 9.5;
+  dgh[3] = 12.;
+  dgh[4] = 168.;
   
-  gMC->Gsvolu("ICCC", "TUBE", idtmed[274], dgh, 3);  
-  gMC->Gspos("ICCC", 1, "ITSV", 0., 0., 83.5, 0, "ONLY");
-  gMC->Gspos("ICCC", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY");  
+  gMC->Gsvolu("I1CC", "TUBS", idtmed[274], dgh, 5);  
+  gMC->Gspos("I1CC", 1, "ITSV", 0., 0., 83.5, 0, "ONLY");
+  gMC->Gspos("I1CC", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY");  
   
-  // --- DEFINE PATCH PANELS AT THE END OF THE ITS CONES
+  // --- DEFINE CABLES AT THE END OF THE ITS CONES - CARBON PART
+  //     LOWER PART
+  
+  dgh[0] = 46.+1.0;  
+  dgh[1] = 46.+1.0+1.5;   
+  dgh[2] = 9.5;
+  dgh[3] = 192.;
+  dgh[4] = 348.;
   
-  dgh[0] = 46.;
+  gMC->Gsvolu("I2CC", "TUBS", idtmed[274], dgh, 5);  
+  gMC->Gspos("I2CC", 1, "ITSV", 0., 0., 83.5, 0, "ONLY");
+  gMC->Gspos("I2CC", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY");  
+
+  // --- DEFINE PATCH PANELS AT THE END OF THE ITS CONES
+  //    UPPER PART
+    
+  dgh[0] = 46.;  
   dgh[1] = 56.;
   dgh[2] = 2.25;
+  dgh[3] = 12.;
+  dgh[4] = 168.;
   
-  gMC->Gsvolu("IPAN", "TUBE", idtmed[285], dgh, 3);  
-  gMC->Gspos("IPAN", 1, "ITSV", 0., 0., 95.25, 0, "ONLY");  
-  gMC->Gspos("IPAN", 2, "ITSV", 0., 0., -95.25, idrotm[200], "ONLY"); 
+  gMC->Gsvolu("IPA1", "TUBS", idtmed[285], dgh, 5);  
+  gMC->Gspos("IPA1", 1, "ITSV", 0., 0., 95.25, 0, "ONLY");  
+  gMC->Gspos("IPA1", 2, "ITSV", 0., 0., -95.25, idrotm[200], "ONLY"); 
+
+
+  // --- DEFINE PATCH PANELS AT THE END OF THE ITS CONES
+  //     LOWER PART
+    
+  dgh[0] = 46.;  
+  dgh[1] = 56.;
+  dgh[2] = 2.25;
+  dgh[3] = 192.;
+  dgh[4] = 348.;
   
+  gMC->Gsvolu("IPA2", "TUBS", idtmed[285], dgh, 5);  
+  gMC->Gspos("IPA2", 1, "ITSV", 0., 0., 95.25, 0, "ONLY");  
+  gMC->Gspos("IPA2", 2, "ITSV", 0., 0., -95.25, idrotm[200], "ONLY"); 
+
   // --- DEFINE CABLES/COOLING BELOW THE TPC - COPPER PART - UPPER PART
  
   dgh[0] = (ztpc-97.5)/2.;
index fa942fdd4bae0ce16edfb95403029a83b8899b45..189c00338662e9b287c2ea233d28dcc490f16206 100644 (file)
@@ -31,10 +31,16 @@ class AliITSvPPRcoarsesymm : public AliITS {
     virtual void   StepManager();
     virtual void   SetRails(Int_t v=1){ 
         // Set flag for rails
-        fRails = v;}       
+        fRails = v;}    
+    virtual void   SetSupportMaterial(Int_t v=0){ 
+        // Set material of the services supports
+        fSuppMat = v;}      
     virtual Int_t GetRails(){ 
         // Get flag for rails
-        return fRails;}                    
+        return fRails;}        
+    virtual Int_t GetSupportMaterial(){ 
+        // Get material of the services supports 
+        return fSuppMat;}                          
     virtual Int_t GetMajorVersion(){// return Major Version Number
        return fMajorVersion;}
     virtual Int_t GetMinorVersion(){// return Major Version Number
@@ -45,7 +51,9 @@ class AliITSvPPRcoarsesymm : public AliITS {
     Int_t  fMajorVersion;     // Major version number == IsVersion
     Int_t  fMinorVersion;     // Minor version number
     Int_t  fRails;            // flag to switch rails on (=1) and off (=0)
-    
+    Int_t  fSuppMat;          // flag to change the material of the services
+                              // supports (=0 copper, =1 aluminum, =2 carbon)
+                                 
     ClassDef(AliITSvPPRcoarsesymm,1)  //Hits manager for set:ITS version 7 
                                        // PPR coarse Geometry symmetric
 };