From 5323dece46ce84ceaae8ea1839a75213eec7cbd7 Mon Sep 17 00:00:00 2001 From: nilsen Date: Fri, 9 Jun 2000 17:10:17 +0000 Subject: [PATCH] New SDD geometry class --- ITS/AliITSgeomSDD.cxx | 27 +++++++++++++++++++++++---- ITS/AliITSgeomSDD.h | 30 +++++++++++++++++++----------- 2 files changed, 42 insertions(+), 15 deletions(-) diff --git a/ITS/AliITSgeomSDD.cxx b/ITS/AliITSgeomSDD.cxx index 6d8e40c533d..81049f16c61 100644 --- a/ITS/AliITSgeomSDD.cxx +++ b/ITS/AliITSgeomSDD.cxx @@ -35,10 +35,29 @@ AliITSgeomSDD::AliITSgeomSDD(){ // 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", - 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; } diff --git a/ITS/AliITSgeomSDD.h b/ITS/AliITSgeomSDD.h index 63b122be160..1c2e001021c 100644 --- a/ITS/AliITSgeomSDD.h +++ b/ITS/AliITSgeomSDD.h @@ -5,10 +5,24 @@ /* $Id$ */ -#include "TShape.h" +#include #include "TBRIK.h" +#include "AliITSgeom.h" + +// temporary 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 @@ -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) - 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 }; -- 2.39.3