]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDSimParam.h
- prepare train for merging with TPC.
[u/mrichter/AliRoot.git] / TRD / AliTRDSimParam.h
index 504016d8cd2c62af51f54166867e46afedb47324..d8de572074fef11a5ed8004e7abf12abc5be1880 100644 (file)
@@ -22,9 +22,6 @@ class AliTRDSimParam : public TObject {
                , kNsect =  18
                , kNdet  = 540 };
 
-          enum { kXenon =   0
-              , kArgon =   1 };
-
   static  AliTRDSimParam *Instance();
   static  void     Terminate();
   
@@ -46,11 +43,8 @@ class AliTRDSimParam : public TObject {
           void     SetCrossTalk(Int_t ctOn = 1)              { fCTOn              = ctOn; ReInit();   }
           void     SetPadCoupling(Float_t v)                 { fPadCoupling       = v;                }
           void     SetTimeCoupling(Float_t v)                { fTimeCoupling      = v;                }
-          void     SetAnodeWireOffset(Float_t offset = 0.25) { fAnodeWireOffset   = offset;           }
           void     SetTimeStruct(Bool_t tsOn = 1)            { fTimeStructOn      = tsOn;             }
           void     SetPadResponse(Int_t prfOn = 1)           { fPRFOn             = prfOn;            }
-          void     SetXenon()                                { fGasMixture        = kXenon; ReInit(); }
-          void     SetArgon()                                { fGasMixture        = kArgon; ReInit(); }
     
           Float_t  GetGasGain() const                        { return fGasGain;                       }
           Float_t  GetNoise() const                          { return fNoise;                         }
@@ -62,8 +56,6 @@ class AliTRDSimParam : public TObject {
           Float_t  GetTRFhi() const                          { return fTRFhi;                         }
           Float_t  GetPadCoupling() const                    { return fPadCoupling;                   }
           Float_t  GetTimeCoupling() const                   { return fTimeCoupling;                  }
-          Float_t  GetAnodeWireOffset() const                { return fAnodeWireOffset;               }
-          Int_t    GetGasMixture() const                     { return fGasMixture;                    }
 
           Bool_t   DiffusionOn() const                       { return fDiffusionOn;                   }
           Bool_t   ElAttachOn() const                        { return fElAttachOn;                    } 
@@ -75,12 +67,9 @@ class AliTRDSimParam : public TObject {
 
           Double_t TimeResponse(Double_t time) const;  
           Double_t CrossTalk(Double_t time) const; 
-  
-          Bool_t   IsXenon() const                           { return (fGasMixture == kXenon) 
-                                                                    ? kTRUE : kFALSE;                 }
-          Bool_t   IsArgon() const                           { return (fGasMixture == kArgon) 
-                                                                    ? kTRUE : kFALSE;                 }
 
+          void     ReInit();
+  
  protected:
 
   static AliTRDSimParam* fgInstance;   //  Instance of this class (singleton implementation)
@@ -111,15 +100,12 @@ class AliTRDSimParam : public TObject {
           Int_t    fCTOn;              //  Switch for cross talk
           Float_t *fCTsmp;             //! Integrated cross talk
   
-          Float_t  fAnodeWireOffset;   //  Distance of first anode wire from pad edge
           Float_t  fPadCoupling;       //  Pad coupling factor
           Float_t  fTimeCoupling;      //  Time coupling factor (image charge of moving ions)
           Int_t    fTimeStructOn;      //  Switch for cell time structure
   
           Int_t    fPRFOn;             //  Switch for the pad response
 
-          Int_t    fGasMixture;        //  Gas mixture: 0-Xe/C02 1-Ar/CO2. 
-
  private:
 
   // This is a singleton, constructor is private!  
@@ -127,10 +113,9 @@ class AliTRDSimParam : public TObject {
   virtual ~AliTRDSimParam();
 
           void Init();
-          void ReInit();
           void SampleTRF();
   
-  ClassDef(AliTRDSimParam,2)          // The TRD simulation parameters
+  ClassDef(AliTRDSimParam,4)          // The TRD simulation parameters
 
 };