]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
New SDD geometry class
authornilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Jun 2000 17:10:17 +0000 (17:10 +0000)
committernilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Jun 2000 17:10:17 +0000 (17:10 +0000)
ITS/AliITSgeomSDD.cxx
ITS/AliITSgeomSDD.h

index 6d8e40c533d90c1d0e1a3f14e3b60e7f9bbe6035..81049f16c615fd71097acbed345d4a83a9dd0e81 100644 (file)
@@ -35,10 +35,29 @@ AliITSgeomSDD::AliITSgeomSDD(){
 //    default constructor
 ////////////////////////////////////////////////////////////////////////
 
 //    default constructor
 ////////////////////////////////////////////////////////////////////////
 
-    Float_t dx = 3.5;  // cm. (Geant 3.12 units) Orthonormal to y and z
-    Float_t dy = 0.014;  // cm. (Geant 3.12 units) Radialy from the Beam Pipe
-    Float_t dz = 3.763;  // cm. (Geant 3.12 units) Allong the Beam Pipe
+    Float_t fDx = 3.5;  // cm. (Geant 3.12 units) Orthonormal to y and z
+    Float_t fDy = 0.014;  // cm. (Geant 3.12 units) Radialy from the Beam Pipe
+    Float_t fDz = 3.763;  // cm. (Geant 3.12 units) Allong the Beam Pipe
 
     fShapeSDD = new TBRIK("ActiveSDD","Active volume of SDD","SDD SI DET",
 
     fShapeSDD = new TBRIK("ActiveSDD","Active volume of SDD","SDD SI DET",
-                           dx,dy,dz);
+                           fDx,fDy,fDz);
+}
+//________________________________________________________________________
+AliITSgeomSDD::AliITSgeomSDD(AliITSgeomSDD &source){
+  // Copy constructor
+   if(this==&source) return;
+   this->fShapeSDD = source.fShapeSDD;
+   this->fDx = source.fDx;
+   this->fDy = source.fDy;
+   this->fDz = source.fDz;
+}
+//________________________________________________________________________
+AliITSgeomSDD& AliITSgeomSDD::operator=(AliITSgeomSDD &source){
+  // = operator
+   if(this==&source) return *this;
+   this->fShapeSDD = source.fShapeSDD;
+   this->fDx = source.fDx;
+   this->fDy = source.fDy;
+   this->fDz = source.fDz;
+   return *this;
 }
 }
index 63b122be160c2654f9e774cdc19024c60d573f46..1c2e001021cec956781887774fae2306de3c1cab 100644 (file)
@@ -5,10 +5,24 @@
 
 /* $Id$ */
 
 
 /* $Id$ */
 
-#include "TShape.h"
+#include <TObject.h>
 #include "TBRIK.h"
 #include "TBRIK.h"
+#include "AliITSgeom.h"
+
+// temporary 
 
 class AliITSgeomSDD: public TObject {
 
 class AliITSgeomSDD: public TObject {
+ public:
+    AliITSgeomSDD();
+    AliITSgeomSDD(AliITSgeomSDD &source);
+    virtual ~AliITSgeomSDD(){};
+    AliITSgeomSDD& operator=(AliITSgeomSDD &source);
+    TBRIK *GetShape() const {return fShapeSDD;}
+    Float_t GetDx() {return fDx;}
+    Float_t GetDy() {return fDy;}
+    Float_t GetDz() {return fDz;}
+    // or what other or different information that is needed.
+
  private:
     // define shape of active area using ROOT shapes so that they can
     // be easly plotted. Inputs to TBRIK are
  private:
     // define shape of active area using ROOT shapes so that they can
     // be easly plotted. Inputs to TBRIK are
@@ -18,16 +32,10 @@ class AliITSgeomSDD: public TObject {
     // dx => 1/2 thickness of wafer's active volume (cm)
     // dy => 1/2 r*phi size of active volume (cm)
     // dz => 1/2 size of active volume (cm)
     // dx => 1/2 thickness of wafer's active volume (cm)
     // dy => 1/2 r*phi size of active volume (cm)
     // dz => 1/2 size of active volume (cm)
-    TBRIK *fShapeSDD;
-    // Other infomation like.
-    // Int_t   fNAnodes;         // count
-    // Float_t fAnodePitch;      // cm
-    // Float_t fAnodeWidth;      // cm
-    // or what other or different information that is needed.
- public:
-    AliITSgeomSDD();
-    virtual ~AliITSgeomSDD(){};
-    TBRIK *GetShape() const {return fShapeSDD;}
+    Float_t fDx;          // Brick half width cm
+    Float_t fDy;          // Brick half thickness cm
+    Float_t fDz;          // Brick half length cm
+    TBRIK *fShapeSDD;     // shape of sensitive volume
 
     ClassDef(AliITSgeomSDD,1) // ITS SDD detector geometry class
 };
 
     ClassDef(AliITSgeomSDD,1) // ITS SDD detector geometry class
 };