Gev2ADC() added.
authorpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Jul 2007 16:24:28 +0000 (16:24 +0000)
committerpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Jul 2007 16:24:28 +0000 (16:24 +0000)
PHOS/AliPHOSPulseGenerator.cxx
PHOS/AliPHOSPulseGenerator.h

index 81f06cd..8d274ec 100644 (file)
@@ -310,3 +310,12 @@ void AliPHOSPulseGenerator::Draw(Option_t*)
   graphLG->GetHistogram()->SetYTitle("Amplitude, ADC counts");
   c1->Update();
 }
+
+//__________________________________________________________________
+Double_t AliPHOSPulseGenerator::GeV2ADC()
+{
+  //Return GeV to ADC counts conversion factor. 
+  //adc_counts = energy[GeV]*AliPHOSPulseGenerator::GeV2ADC().
+
+  return RawResponseFunctionMax(fgHighCharge,fgHighGain);
+}
index 76c795f..879662f 100644 (file)
@@ -48,6 +48,7 @@ public:
   Double_t        GetRawFormatTimeTrigger() const { return fgTimeTrigger ; }
   static Double_t RawResponseFunctionMax(Double_t charge, Double_t gain) ;
   static Double_t RawResponseFunction   (Double_t *x, Double_t *par) ;
+  static Double_t GeV2ADC();
 
   virtual void Print(Option_t*) const;
   virtual void Draw (Option_t*);