]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDCommonParam.h
Removal of double digits with high and low gains
[u/mrichter/AliRoot.git] / TRD / AliTRDCommonParam.h
index 43ff2dd99ba38eca7c75f895f60939bbf08ec138..02a448ffbd08e43a2de332fd1cdcc7859ba9b7ca 100644 (file)
@@ -5,7 +5,7 @@
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
-// Class containing constant common parameters                           //
+// Class containing constant common parameters                               //
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
@@ -17,48 +17,48 @@ class AliTRDpadPlane;
 
 class AliTRDCommonParam : public TObject
 {
+
   public:
-    static AliTRDCommonParam* Instance();
-    static void Terminate();
   
     enum { kNplan = 6, kNcham = 5, kNsect = 18, kNdet = 540 };
     
     AliTRDCommonParam(const AliTRDCommonParam &p);   
     AliTRDCommonParam &operator=(const AliTRDCommonParam &p); 
-    virtual void Copy(TObject &p) const;
-    
-    void SetField(Float_t field)                        { fField          = field;    };
-    
-    void     SetExB(Int_t exbOn = 1)                        { fExBOn          = exbOn;    };
+    virtual        ~AliTRDCommonParam();
+
+    static AliTRDCommonParam *Instance();
+    static  void    Terminate();
+
+    virtual void    Copy(TObject &p) const;
     
-    Float_t  GetField()                               const { return fField; };
+    void            SetExB(Int_t exbOn = 1)                        { fExBOn = exbOn; };
     
-    Bool_t   ExBOn()                                  const { return fExBOn;         };
+    Bool_t          ExBOn()                                  const { return fExBOn;  };
     
     AliTRDpadPlane *GetPadPlane(Int_t p, Int_t c) const;
-    Int_t    GetRowMax(Int_t p, Int_t c, Int_t /*s*/) const;
-    Int_t    GetColMax(Int_t p) const;
-    Double_t GetRow0(Int_t p, Int_t c, Int_t /*s*/) const;
-    Double_t GetCol0(Int_t p) const;
+    Int_t           GetRowMax(Int_t p, Int_t c, Int_t /*s*/) const;
+    Int_t           GetColMax(Int_t p) const;
+    Double_t        GetRow0(Int_t p, Int_t c, Int_t /*s*/) const;
+    Double_t        GetCol0(Int_t p) const;
   
   protected:
-    static AliTRDCommonParam* fgInstance;     // Instance of this class (singleton implementation)
-    static Bool_t fgTerminated;               // Defines if this class has already been terminated and therefore does not return instances in GetInstance anymore
+
+    static AliTRDCommonParam *fgInstance;     //  Instance of this class (singleton implementation)
+    static Bool_t             fgTerminated;   //  Defines if this class has already been terminated
     
     void Init();
     
-    Float_t              fField;                              //  Magnetic field
-    
-    Int_t                fExBOn;                              //  Switch for the ExB effects
+    Int_t                     fExBOn;         //  Switch for the ExB effects
   
-    TObjArray  *fPadPlaneArray;                               //!  Array of pad plane objects
+    TObjArray                *fPadPlaneArray; //! Array of pad plane objects
   
   private:
-    // this is a singleton, constructor is private!  
+
+    // This is a singleton, constructor is private!  
     AliTRDCommonParam();
-    virtual ~AliTRDCommonParam();
   
-    ClassDef(AliTRDCommonParam, 1)
+    ClassDef(AliTRDCommonParam,2)             // The constant parameters common to simulation and reconstruction       
+
 };
 
 #endif