ROOT logo
// -*- mode: c++ -*-

#ifndef ALIEMCALRAWRESPONSE_H
#define ALIEMCALRAWRESPONSE_H

/**************************************************************************
 * This file is property of and copyright by the Experimental Nuclear     *
 * Physics Group, Yale University, US 2011                                *
 *                                                                        *
 * Author: Per Thomas Hille <perthomas.hille@yale.edu> for the ALICE      *
 * experiment. Contributors are mentioned in the code where appropriate.  *
 * Please report bugs to  perthomas.hille@yale.edu                        *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/

#include "Rtypes.h"

class  AliEMCALRawResponse
{
public:
  AliEMCALRawResponse();
  virtual ~AliEMCALRawResponse();
  static Double_t RawResponseFunction(Double_t *x, Double_t *par); 
  static Bool_t   RawSampledResponse(Double_t dtime, Double_t damp, Int_t * adcH, Int_t * adcL, 
			      const Int_t keyErr=0);  
  
  static Int_t    GetPedestalValue()     {return fgPedestalValue;}
  static Double_t GetFEENoise()          {return fgFEENoise;}
  static void SetFEENoise(Double_t val)                   {fgFEENoise = val;}
  static Double_t GetRawFormatTimeTrigger()  { return fgTimeTrigger ; }
  static Int_t GetRawFormatThreshold()       { return fgThreshold ; }   
  static void SetPedestalValue(Int_t val)                 {fgPedestalValue = val;}
  
private:
  static Double_t fgTimeTrigger ;       // time of the trigger for the RO signal 
  static Int_t fgThreshold;             // threshold
  static Int_t fgPedestalValue;         // pedestal value for Digits2Raw
  static Double_t fgFEENoise;           // electronics noise in ADC units
  
  ClassDef(AliEMCALRawResponse,1)
};

#endif
 AliEMCALRawResponse.h:1
 AliEMCALRawResponse.h:2
 AliEMCALRawResponse.h:3
 AliEMCALRawResponse.h:4
 AliEMCALRawResponse.h:5
 AliEMCALRawResponse.h:6
 AliEMCALRawResponse.h:7
 AliEMCALRawResponse.h:8
 AliEMCALRawResponse.h:9
 AliEMCALRawResponse.h:10
 AliEMCALRawResponse.h:11
 AliEMCALRawResponse.h:12
 AliEMCALRawResponse.h:13
 AliEMCALRawResponse.h:14
 AliEMCALRawResponse.h:15
 AliEMCALRawResponse.h:16
 AliEMCALRawResponse.h:17
 AliEMCALRawResponse.h:18
 AliEMCALRawResponse.h:19
 AliEMCALRawResponse.h:20
 AliEMCALRawResponse.h:21
 AliEMCALRawResponse.h:22
 AliEMCALRawResponse.h:23
 AliEMCALRawResponse.h:24
 AliEMCALRawResponse.h:25
 AliEMCALRawResponse.h:26
 AliEMCALRawResponse.h:27
 AliEMCALRawResponse.h:28
 AliEMCALRawResponse.h:29
 AliEMCALRawResponse.h:30
 AliEMCALRawResponse.h:31
 AliEMCALRawResponse.h:32
 AliEMCALRawResponse.h:33
 AliEMCALRawResponse.h:34
 AliEMCALRawResponse.h:35
 AliEMCALRawResponse.h:36
 AliEMCALRawResponse.h:37
 AliEMCALRawResponse.h:38
 AliEMCALRawResponse.h:39
 AliEMCALRawResponse.h:40
 AliEMCALRawResponse.h:41
 AliEMCALRawResponse.h:42
 AliEMCALRawResponse.h:43
 AliEMCALRawResponse.h:44
 AliEMCALRawResponse.h:45
 AliEMCALRawResponse.h:46
 AliEMCALRawResponse.h:47
 AliEMCALRawResponse.h:48
 AliEMCALRawResponse.h:49
 AliEMCALRawResponse.h:50