- fixing compilation warnings
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALSDigitizer.h
CommitLineData
61e0abb5 1#ifndef ALIEMCALSDigitizer_H
2#define ALIEMCALSDigitizer_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
61e0abb5 5/* $Id$ */
61e0abb5 6//_________________________________________________________________________
7// Task Class for making SDigits in EMCAL
8//
ffa6d63b 9//*-- Author: Sahal Yacoob (LBL)
10// based on : AliPHOSSDigitizer
11//_________________________________________________________________________
05a92d59 12//
13// Modif:
14// August 2002 Yves Schutz: clone PHOS as closely as possible and intoduction
88cb7938 15// July 2003 Yves Schutz: new IO (à la PHOS)
05a92d59 16
61e0abb5 17// --- ROOT system ---
18#include "TTask.h"
1963b290 19class TBrowser;
88cb7938 20
61e0abb5 21// --- Standard library ---
22
23// --- AliRoot header files ---
88cb7938 24#include "AliConfig.h"
61e0abb5 25
26class AliEMCALSDigitizer: public TTask {
27
28public:
29 AliEMCALSDigitizer() ; // ctor
e191bb57 30 AliEMCALSDigitizer(const char * alirunFileName, const char * eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
88cb7938 31 AliEMCALSDigitizer(const AliEMCALSDigitizer & sd) ;
797e311f 32 virtual ~AliEMCALSDigitizer(); // dtor
61e0abb5 33
ab6a174f 34 Int_t Digitize(Float_t energy)const; //convert energy in GeV to int amplitude
35 Float_t Calibrate(Int_t amp)const; //opposite of Digitize()
36
61e0abb5 37 virtual void Exec(Option_t *option);
88cb7938 38 Int_t GetSDigitsInRun() const {return fSDigitsInRun ;}
5dee926e 39 virtual void Print(Option_t *option="") const;
1963b290 40 void Print1(Option_t *option="all"); // *MENU*
88cb7938 41 void SetEventFolderName(TString name) { fEventFolderName = name ; }
5082063d 42 void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
88cb7938 43
05a92d59 44 Bool_t operator == (const AliEMCALSDigitizer & sd) const ;
d64c959b 45 const AliEMCALSDigitizer & operator = (const AliEMCALSDigitizer & /*sd*/) {return *this ;}
88cb7938 46
1963b290 47 virtual void Browse(TBrowser* b);
61e0abb5 48
49private:
50 void Init() ;
839828a6 51 void InitParameters() ;
61e0abb5 52 void PrintSDigits(Option_t * option) ;
88cb7938 53 void Unload() const ;
106fc2fa 54
61e0abb5 55private:
05a92d59 56 Float_t fA ; // Pedestal parameter
57 Float_t fB ; // Slope Digitizition parameters
62741b41 58 Float_t fECPrimThreshold ; // To store primary if EC Shower Elos > threshold
62741b41 59 Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized)
88cb7938 60 TString fEventFolderName; // event folder name
1963b290 61 Bool_t fInit ; //! tells if initialisation went OK, will revent exec if not
05a92d59 62 Int_t fSDigitsInRun ; //! Total number of sdigits in one run
5082063d 63 Int_t fFirstEvent; // first event to process
64 Int_t fLastEvent; // last event to process
1963b290 65 Float_t fSampling; // See AliEMCALGeometry
61e0abb5 66
7ea6391b 67 ClassDef(AliEMCALSDigitizer,6) // description
61e0abb5 68};
69
70#endif // AliEMCALSDigitizer_H
173558f2 71