Defined the range of evens to process in Hits2SDigits and Reconstruct
[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"
88cb7938 19class TFile ;
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
88cb7938 30 AliEMCALSDigitizer(const char * alirunFileName, const char * eventFolderName = AliConfig::fgkDefaultEventFolderName) ;
31 AliEMCALSDigitizer(const AliEMCALSDigitizer & sd) ;
797e311f 32 virtual ~AliEMCALSDigitizer(); // dtor
61e0abb5 33
88cb7938 34 Float_t Calibrate(Int_t amp)const {return (amp - fA)/fB ; }
35 Int_t Digitize(Float_t Energy)const { return (Int_t ) ( fA + Energy*fB); }
61e0abb5 36 virtual void Exec(Option_t *option);
88cb7938 37 Int_t GetSDigitsInRun() const {return fSDigitsInRun ;}
d64c959b 38 virtual void Print() const ;
88cb7938 39 void SetEventFolderName(TString name) { fEventFolderName = name ; }
40
05a92d59 41 Bool_t operator == (const AliEMCALSDigitizer & sd) const ;
d64c959b 42 const AliEMCALSDigitizer & operator = (const AliEMCALSDigitizer & /*sd*/) {return *this ;}
88cb7938 43
61e0abb5 44
45private:
46 void Init() ;
839828a6 47 void InitParameters() ;
61e0abb5 48 void PrintSDigits(Option_t * option) ;
88cb7938 49 void Unload() const ;
106fc2fa 50
61e0abb5 51private:
05a92d59 52 Float_t fA ; // Pedestal parameter
53 Float_t fB ; // Slope Digitizition parameters
62741b41 54 Float_t fECPrimThreshold ; // To store primary if EC Shower Elos > threshold
62741b41 55 Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized)
88cb7938 56 TString fEventFolderName; // event folder name
57 Bool_t fInit ; //! tells if initialisation wennt OK, will revent exec if not
05a92d59 58 Int_t fSDigitsInRun ; //! Total number of sdigits in one run
61e0abb5 59
88cb7938 60 ClassDef(AliEMCALSDigitizer,5) // description
61e0abb5 61
62};
63
64#endif // AliEMCALSDigitizer_H
173558f2 65