]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSv11GeomCableRound.cxx
Add Reaction Plane
[u/mrichter/AliRoot.git] / ITS / AliITSv11GeomCableRound.cxx
index 17b613aec6aefdf67e799f0b512b6f56437f54fc..da3c23159c07d04201248950622fcdbd123bd022 100644 (file)
@@ -174,7 +174,7 @@ AliITSv11GeomCableRound(const char* name, Double_t radius) :
     fLayMedia[i] = 0;
   };
 }
-
+/*
 //________________________________________________________________________
 AliITSv11GeomCableRound::AliITSv11GeomCableRound(const AliITSv11GeomCableRound &s) :
   AliITSv11GeomCable(s),fRadius(s.fRadius),fNlayer(s.fNlayer),fPhiMin(s.fPhiMin),
@@ -207,7 +207,7 @@ operator=(const AliITSv11GeomCableRound &s) {
   };
   return *this;
 }
-
+*/
 //________________________________________________________________________
 Int_t AliITSv11GeomCableRound::GetPoint( Int_t iCheckPt, Double_t *coord)
   const {
@@ -724,8 +724,8 @@ TGeoVolume* AliITSv11GeomCableRound::CreateAndInsertTorusSegment(Int_t p2,
 }
 
 //________________________________________________________________________
-TGeoVolume *AliITSv11GeomCableRound::CreateSegment( Double_t *coord1,
-                                                     Double_t *coord2,
+TGeoVolume *AliITSv11GeomCableRound::CreateSegment( const Double_t *coord1,
+                                                   const Double_t *coord2,
                                                      Double_t *localVect1,
                                                      Double_t *localVect2, Int_t p)
 {
@@ -758,7 +758,7 @@ TGeoVolume *AliITSv11GeomCableRound::CreateSegment( Double_t *coord1,
 
   TGeoMedium *skinMedia = fLayMedia[fNlayer-1];
   char name[100];
-  sprintf(name, "%s_%i",GetName(), p);
+  snprintf(name, 100, "%s_%i",GetName(), p);
   TGeoVolume *vCableSeg = new TGeoVolume(name, cableSeg, skinMedia);
   vCableSeg->SetLineColor(fLayColor[fNlayer-1]);
 
@@ -784,8 +784,9 @@ TGeoVolume *AliITSv11GeomCableRound::CreateSegment( Double_t *coord1,
 
 
 //________________________________________________________________________
-TGeoVolume *AliITSv11GeomCableRound::CreateTubeSegment( Double_t *coord1,
-                                                     Double_t *coord2, Int_t p)
+TGeoVolume *AliITSv11GeomCableRound::CreateTubeSegment( const Double_t *coord1,
+                                                       const Double_t *coord2,
+                                                       Int_t p)
 {
   // Create a cylindrical segment and its layers
 
@@ -803,7 +804,7 @@ TGeoVolume *AliITSv11GeomCableRound::CreateTubeSegment( Double_t *coord1,
 
   TGeoMedium *skinMedia = fLayMedia[fNlayer-1];
   char name[100];
-  sprintf(name, "%s_%i",GetName(), p);
+  snprintf(name, 100, "%s_%i",GetName(), p);
   TGeoVolume *vCableSeg = new TGeoVolume(name, cableSeg, skinMedia);
   vCableSeg->SetLineColor(fLayColor[fNlayer-1]);
 
@@ -826,8 +827,8 @@ TGeoVolume *AliITSv11GeomCableRound::CreateTubeSegment( Double_t *coord1,
 
 
 //________________________________________________________________________
-TGeoVolume *AliITSv11GeomCableRound::CreateTorus( Double_t &phi,
-                                                 Double_t &r, Int_t p)
+TGeoVolume *AliITSv11GeomCableRound::CreateTorus( const Double_t &phi,
+                                                 const Double_t &r, Int_t p)
 {
   // Create one torus segment and its layers
 
@@ -841,7 +842,7 @@ TGeoVolume *AliITSv11GeomCableRound::CreateTorus( Double_t &phi,
   TGeoTorus *cableSeg = new TGeoTorus(torusR, 0, fRadius, torusPhi1, torusDPhi);
   TGeoMedium *skinMedia = fLayMedia[fNlayer-1];
   char name[100];
-  sprintf(name, "%s_%i",GetName(),p);
+  snprintf(name, 100, "%s_%i",GetName(),p);
   TGeoVolume *vCableSeg = new TGeoVolume(name, cableSeg, skinMedia);
   vCableSeg->SetLineColor(fLayColor[fNlayer-1]);