]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDCommonParam.h
Updated error definitions.
[u/mrichter/AliRoot.git] / TRD / AliTRDCommonParam.h
index 6aa4e19c8c7d855d565a6f45716faf35116dee74..d22a0a252da23cd7e9c561b40fa60e7ceb3f814c 100644 (file)
@@ -5,7 +5,7 @@
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
-// Class containing constant common parameters                           //
+// Class containing constant common parameters                               //
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
 
 #include "TObject.h"
 
+class TRootIoCtor;
+
 class AliTRDpadPlane;
 
 class AliTRDCommonParam : public TObject
 {
+
   public:
-    static AliTRDCommonParam* Instance();
-    static void Terminate();
   
     enum { kNplan = 6, kNcham = 5, kNsect = 18, kNdet = 540 };
     
+    AliTRDCommonParam(TRootIoCtor *);
     AliTRDCommonParam(const AliTRDCommonParam &p);   
     AliTRDCommonParam &operator=(const AliTRDCommonParam &p); 
-    virtual void Copy(TObject &p) const;
-    
-    void SetField(Float_t field)                        { fField          = field;    };
-    
-    virtual void     SetExB(Int_t exbOn = 1)                        { fExBOn          = exbOn;    };
-    
-    virtual void     SetPadResponse(Int_t prfOn = 1)                { fPRFOn          = prfOn;    };
-    
-    Float_t  GetField()                               const { return fField; };
+    virtual        ~AliTRDCommonParam();
+
+    static AliTRDCommonParam *Instance();
+    static  void    Terminate();
+
+    virtual void    Copy(TObject &p) const;
     
-    Bool_t   ExBOn()                                  const { return fExBOn;         };
+    void            SetExB(Int_t exbOn = 1)                        { fExBOn             = exbOn; }
+    void            SetSamplingFrequency(Float_t freq)             { fSamplingFrequency = freq;  }
     
-    Bool_t   PRFOn()                                  const { return fPRFOn;         };
+    Bool_t          ExBOn() const                                  { return fExBOn;              }
     
-    virtual 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;
-  
+    Float_t         GetSamplingFrequency() const                   { return fSamplingFrequency;  }
+
   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                fPRFOn;                              //  Switch for the pad response
-  
-    TObjArray  *fPadPlaneArray;                      //  Array of pad plane objects
+    Int_t                     fExBOn;             //  Switch for the ExB effects
+
+    Float_t                   fSamplingFrequency; //  Sampling Frequency in MHz
   
   private:
-    // this is a singleton, constructor is private!  
+
+    // This is a singleton, constructor is private!  
     AliTRDCommonParam();
-    ~AliTRDCommonParam();
   
-    ClassDef(AliTRDCommonParam, 0)
+    ClassDef(AliTRDCommonParam,4)                  // The constant parameters common to simulation and reconstruction
+
 };
 
 #endif