]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSPulseGenerator.h
fixed bug in storerefstorage
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPulseGenerator.h
index 793150daaee4244cb649777e7ed0c45b03627b91..76c795fa9ff3925518d5f506de072ea84cc862be 100644 (file)
@@ -22,7 +22,7 @@ public:
   virtual  ~AliPHOSPulseGenerator();
 
   void      AddBaseline(Double_t baselineLevel);
-  void      AddNoise   (Double_t *sigma);
+  void      AddNoise   (Double_t sigma);
   void      AddNoise   (Double_t *sigma, Double_t cutoff);
   void      AddPretriggerSamples(Int_t nPresamples);
   void      GetSamples(Int_t *adcHG, Int_t *adcLG) const;
@@ -30,8 +30,9 @@ public:
   void      Digitize();
   Bool_t    GetDigitize() {return fDigitize;}
   void      SetDigitise (Bool_t flag) {fDigitize  = flag;}
-  void      SetAmplitude(Double_t  a) {fAmplitude = a   ;}
-  void      SetTZero    (Double_t t0) {fTZero     = t0  ;}
+  void      SetAmplitude(Double_t  a) {fAmplitude = a   ; Reset();}
+  void      SetTZero    (Double_t t0) {fTZero     = t0  ; Reset();}
+  void      Reset();
 
   // Raw Read Out
   Double_t        GetRawFormatCapa()        const { return fgCapa ; }
@@ -42,7 +43,7 @@ public:
   static Double_t GetRawFormatLowGain()           { return ( fgHighGain / fgHighLowGainFactor ) ; }
   Int_t           GetRawFormatOrder()       const { return fgOrder ; }
   static Int_t    GetRawFormatTimeBins()          { return fkTimeBins ; }
-  Double_t        GetRawFormatTimeMax()     const { return fgTimeMax ; }
+  static Double_t GetRawFormatTimeMax()           { return fgTimeTrigger*fkTimeBins ; }
   Double_t        GetRawFormatTimePeak()    const { return fgTimePeak ; }
   Double_t        GetRawFormatTimeTrigger() const { return fgTimeTrigger ; }
   static Double_t RawResponseFunctionMax(Double_t charge, Double_t gain) ;
@@ -62,7 +63,10 @@ private:
   static Double_t fgHighGain ;          // high gain
   static Double_t fgHighLowGainFactor ; // high to low gain factor
   static Int_t    fgOrder ;             // order of the gamma function
-  static const Int_t fkTimeBins = 64 ;  // number of sampling bins
+
+  //  static const Int_t fkTimeBins = 64 ;  // number of sampling bins
+  static const Int_t fkTimeBins = 1008 ;  // number of sampling bins
+
   static Double_t fgTimeMax ;           // maximum sampled time
   static Double_t fgTimePeak ;          // peaking time
   static Double_t fgTimeTrigger ;       // time of the trigger for the RO signal