]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDSimParam.h
fix error in setting the number of dEdx slices to be saved in ESD
[u/mrichter/AliRoot.git] / TRD / AliTRDSimParam.h
index eb6d047173bd541042bcd11f3918155cc6626617..d99ece5726f63457bdbbcc14d52bc3bea9d7f56a 100644 (file)
@@ -30,49 +30,49 @@ class AliTRDSimParam : public TObject {
 
   virtual void     Copy(TObject &p) const;
   
-          void     SetGasGain(Float_t gasgain)               { fGasGain           = gasgain;         }
-          void     SetNoise(Float_t noise)                   { fNoise             = noise;           }
-          void     SetChipGain(Float_t chipgain)             { fChipGain          = chipgain;        }
-          void     SetADCoutRange(Float_t range)             { fADCoutRange       = range;           }
-          void     SetADCinRange(Float_t range)              { fADCinRange        = range;           }
-          void     SetADCthreshold(Int_t thresh)             { fADCthreshold      = thresh;          }
-          void     SetADCbaseline(Int_t basel)               { fADCbaseline       = basel;           }   
-          void     SetDiffusion(Int_t diffOn = 1)            { fDiffusionOn       = diffOn;          }
-          void     SetElAttach(Int_t elOn = 1)               { fElAttachOn        = elOn;            }
-          void     SetElAttachProp(Float_t prop)             { fElAttachProp      = prop;            }
-          void     SetTimeResponse(Int_t trfOn = 1)          { fTRFOn             = trfOn; ReInit(); }  
-          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     SetGasGain(Float_t gasgain)               { fGasGain           = gasgain;          }
+          void     SetNoise(Float_t noise)                   { fNoise             = noise;            }
+          void     SetChipGain(Float_t chipgain)             { fChipGain          = chipgain;         }
+          void     SetADCoutRange(Float_t range)             { fADCoutRange       = range;            }
+          void     SetADCinRange(Float_t range)              { fADCinRange        = range;            }
+          void     SetADCbaseline(Int_t basel)               { fADCbaseline       = basel;            }   
+          void     SetDiffusion(Int_t diffOn = 1)            { fDiffusionOn       = diffOn;           }
+          void     SetElAttach(Int_t elOn = 1)               { fElAttachOn        = elOn;             }
+          void     SetElAttachProp(Float_t prop)             { fElAttachProp      = prop;             }
+          void     SetTimeResponse(Int_t trfOn = 1)          { fTRFOn             = trfOn; ReInit();  }  
+          void     SetCrossTalk(Int_t ctOn = 1)              { fCTOn              = ctOn; ReInit();   }
+          void     SetPadCoupling(Float_t v)                 { fPadCoupling       = v;                }
+          void     SetTimeCoupling(Float_t v)                { fTimeCoupling      = v;                }
+          void     SetTimeStruct(Bool_t tsOn = 1)            { fTimeStructOn      = tsOn;             }
+          void     SetPadResponse(Int_t prfOn = 1)           { fPRFOn             = prfOn;            }
+          void     SetNTimeBins(Int_t ntb)                   { fNTimeBins         = ntb;              }
     
-          Float_t  GetGasGain() const                        { return fGasGain;                      }
-          Float_t  GetNoise() const                          { return fNoise;                        }
-          Float_t  GetChipGain() const                       { return fChipGain;                     }
-          Float_t  GetADCoutRange() const                    { return fADCoutRange;                  }
-          Float_t  GetADCinRange() const                     { return fADCinRange;                   }
-          Int_t    GetADCthreshold() const                   { return fADCthreshold;                 }
-          Int_t    GetADCbaseline() const                    { return fADCbaseline;                  }
-          Float_t  GetTRFlo() const                          { return fTRFlo;                        }
-          Float_t  GetTRFhi() const                          { return fTRFhi;                        }
-          Float_t  GetPadCoupling() const                    { return fPadCoupling;                  }
-          Float_t  GetTimeCoupling() const                   { return fTimeCoupling;                 }
-          Float_t  GetAnodeWireOffset() const                { return fAnodeWireOffset;              }
-
-          Bool_t   DiffusionOn() const                       { return fDiffusionOn;                  }
-          Bool_t   ElAttachOn() const                        { return fElAttachOn;                   } 
-          Float_t  GetElAttachProp() const                   { return fElAttachProp;                 }
-          Bool_t   TRFOn() const                             { return fTRFOn;                        }
-          Bool_t   CTOn() const                              { return fCTOn;                         }
-          Bool_t   TimeStructOn() const                      { return fTimeStructOn;                 }
-          Bool_t   PRFOn() const                             { return fPRFOn;                        }
+          Float_t  GetGasGain() const                        { return fGasGain;                       }
+          Float_t  GetNoise() const                          { return fNoise;                         }
+          Float_t  GetChipGain() const                       { return fChipGain;                      }
+          Float_t  GetADCoutRange() const                    { return fADCoutRange;                   }
+          Float_t  GetADCinRange() const                     { return fADCinRange;                    }
+          Int_t    GetADCbaseline() const                    { return fADCbaseline;                   }
+          Float_t  GetTRFlo() const                          { return fTRFlo;                         }
+          Float_t  GetTRFhi() const                          { return fTRFhi;                         }
+          Float_t  GetPadCoupling() const                    { return fPadCoupling;                   }
+          Float_t  GetTimeCoupling() const                   { return fTimeCoupling;                  }
+          Int_t    GetNTimeBins() const                      { return fNTimeBins;                     }
+
+          Bool_t   DiffusionOn() const                       { return fDiffusionOn;                   }
+          Bool_t   ElAttachOn() const                        { return fElAttachOn;                    } 
+          Float_t  GetElAttachProp() const                   { return fElAttachProp;                  }
+          Bool_t   TRFOn() const                             { return fTRFOn;                         }
+          Bool_t   CTOn() const                              { return fCTOn;                          }
+          Bool_t   TimeStructOn() const                      { return fTimeStructOn;                  }
+          Bool_t   PRFOn() const                             { return fPRFOn;                         }
 
           Double_t TimeResponse(Double_t time) const;  
           Double_t CrossTalk(Double_t time) const; 
+
+          void     ReInit();
   
-protected:
+ protected:
 
   static AliTRDSimParam* fgInstance;   //  Instance of this class (singleton implementation)
   static  Bool_t   fgTerminated;       //  Defines if this class has already been terminated and
@@ -85,8 +85,7 @@ protected:
   
           Float_t  fADCoutRange;       //  ADC output range (number of channels)
           Float_t  fADCinRange;        //  ADC input range (input charge)
-          Int_t    fADCthreshold;      //  ADC threshold in ADC channel
-          Int_t    fADCbaseline;       //  ADC baseline in ADC chann
+          Int_t    fADCbaseline;       //  ADC intrinsic baseline in ADC channel
   
           Int_t    fDiffusionOn;       //  Switch for the diffusion
   
@@ -103,13 +102,14 @@ protected:
           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    fNTimeBins;         //  Number of time bins
+
  private:
 
   // This is a singleton, constructor is private!  
@@ -117,10 +117,9 @@ protected:
   virtual ~AliTRDSimParam();
 
           void Init();
-          void ReInit();
           void SampleTRF();
   
-  ClassDef(AliTRDSimParam,1)          // The TRD simulation parameters
+  ClassDef(AliTRDSimParam,5)          // The TRD simulation parameters
 
 };