]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDCommonParam.h
Initial check-in of the model classes for User module
[u/mrichter/AliRoot.git] / TRD / AliTRDCommonParam.h
index e57abf4a331b3efacb1c1a08d6c1ebe5ce6e51ed..34789af7498503f108d7d247168e896561559be2 100644 (file)
@@ -24,42 +24,44 @@ class AliTRDCommonParam : public TObject
     
     AliTRDCommonParam(const AliTRDCommonParam &p);   
     AliTRDCommonParam &operator=(const AliTRDCommonParam &p); 
+    virtual        ~AliTRDCommonParam();
+
     static AliTRDCommonParam *Instance();
-    static void     Terminate();
+    static  void    Terminate();
+
     virtual void    Copy(TObject &p) const;
     
-    void            SetField(Float_t field)                        { fField = field; };
-    void            SetExB(Int_t exbOn = 1)                        { fExBOn = exbOn; };
+    void            SetExB(Int_t exbOn = 1)                        { fExBOn             = exbOn; }
+    void            SetSamplingFrequency(Float_t freq)             { fSamplingFrequency = freq;  }
     
-    Float_t         GetField()                               const { return fField;  };
-    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;
-  
+    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
+    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
+
+    Float_t                   fSamplingFrequency; //  Sampling Frequency in MHz
   
-    TObjArray                *fPadPlaneArray; //! Array of pad plane objects
+    TObjArray                *fPadPlaneArray;     //! Array of pad plane objects
   
   private:
 
     // This is a singleton, constructor is private!  
     AliTRDCommonParam();
-    virtual ~AliTRDCommonParam();
   
-    ClassDef(AliTRDCommonParam,1)             // The constant parameters common to simulation and reconstruction       
-
+    ClassDef(AliTRDCommonParam,3)                  // The constant parameters common to simulation and reconstruction
 };
 
 #endif