]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSgeomSDD.h
Example macro for the creation of tags (P.Christakoglou)
[u/mrichter/AliRoot.git] / ITS / AliITSgeomSDD.h
index 1c70045e8f5ece4c31b517c9c7c94b96e2abc04a..901e6d350f0b4c7c4ac853be634e024f5af04889 100644 (file)
@@ -4,11 +4,18 @@
  * See cxx source for full Copyright notice                               */
 
 /* $Id$ */
+
+
+////////////////////////////////////////////////////////////////////////
+// This class is for the Silicon Drift Detector, SDD, specific geometry.
+// It is being replaced by AliITSsegmentationSDD class. This file also
+// constains classes derived from AliITSgeomSDD which do nothing but
+// initilize this one with predefined values.
+////////////////////////////////////////////////////////////////////////
+
 #include <TObject.h>
 #include <TBRIK.h>
 
-class ostream;
-class istream;
 class TShape;
 
 class AliITSgeomSDD: public TObject {
@@ -33,9 +40,11 @@ class AliITSgeomSDD: public TObject {
     virtual Float_t GetDz() const {// Get TBRIK Dz
        if(fShapeSDD!=0) return fShapeSDD->GetDz();
        else return 0.0;}
-    virtual Float_t GetAnodeX(Int_t a,Int_t s) const { // returns X position of anode
-       if(s==0) return fAnodeXL; else return fAnodeXR;}
-    virtual Float_t GetAnodeZ(Int_t a,Int_t s)const { // returns X position of anode
+    virtual Float_t GetAnodeX(Int_t a,Int_t s) const {
+       // returns X position of anode
+       a = 0; if(s==0) return fAnodeXL; else return fAnodeXR;}
+    virtual Float_t GetAnodeZ(Int_t a,Int_t s)const {
+       // returns X position of anode
        if(s==0) return 0.5*(fAnodeLowEdgeL[a]+fAnodeLowEdgeL[a+1]);
        else return 0.5*(fAnodeLowEdgeR[a]+fAnodeLowEdgeR[a+1]);}
     virtual void SetNAnodesL(Int_t s)
@@ -53,6 +62,8 @@ class AliITSgeomSDD: public TObject {
     virtual void Det2Local(Int_t a,Int_t t,Int_t s,Float_t &xl,Float_t &zl);
     virtual void Print(ostream *os) const; // Output streamer to standard out.
     virtual void Read(istream *is);   // Input streamer to standard in.
+    virtual void Print(Option_t *option="") const {TObject::Print(option);}
+    virtual Int_t Read(const char *name) {return TObject::Read(name);}
     // or what other or different information that is needed.
 
  protected:
@@ -88,19 +99,18 @@ istream &operator>>(istream &os,AliITSgeomSDD &source);
 
 //#include "AliITSgeomSDD.h"
 
-class ostream;
-class istream;
 
 class AliITSgeomSDD256 : public AliITSgeomSDD {
 
  public:
     AliITSgeomSDD256();
+    AliITSgeomSDD256(Int_t npar,const Float_t *par);
 
     // This clas now has version 0 so that it will not be written to a root
     // file. This is good since there are no longer any data members to this
     // class. It is only designed to make it easer to define this standard
     // SDD detector geometry.
-    ClassDef(AliITSgeomSDD256,0) // ITS SDD detector geometry class for 256 anodes per side
+    ClassDef(AliITSgeomSDD256,1) // ITS SDD detector geometry class for 256 anodes per side
 
 };
 // Input and output function for standard C++ input/output.
@@ -119,8 +129,6 @@ istream &operator>>(istream &os,AliITSgeomSDD256 &source);
 
 //#include "AliITSgeomSDD.h"
 
-class ostream;
-class istream;
 
 class AliITSgeomSDD300 : public AliITSgeomSDD {
 
@@ -131,7 +139,7 @@ class AliITSgeomSDD300 : public AliITSgeomSDD {
     // file. This is good since there are no longer any data members to this
     // class. It is only designed to make it easer to define this standard
     // SDD detector geometry.
-    ClassDef(AliITSgeomSDD300,0) // ITS SDD detector geometry class for 300 anodes per side
+    ClassDef(AliITSgeomSDD300,1) // ITS SDD detector geometry class for 300 anodes per side
 
 };
 // Input and output function for standard C++ input/output.