]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSSDigitizer.h
Distance to CPV in x and z separated
[u/mrichter/AliRoot.git] / PHOS / AliPHOSSDigitizer.h
CommitLineData
990119d6 1#ifndef ALIPHOSSDigitizer_H
2#define ALIPHOSSDigitizer_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
88cb7938 6
990119d6 7/* $Id$ */
8
702ab87e 9/* History of cvs commits:
10 *
11 * $Log$
3663622c 12 * Revision 1.25 2005/11/30 18:56:26 schutz
13 * Small corrections to fix compilation errors
14 *
0a81ea53 15 * Revision 1.24 2005/05/28 14:19:05 schutz
16 * Compilation warnings fixed by T.P.
17 *
702ab87e 18 */
19
990119d6 20//_________________________________________________________________________
21// Task Class for making SDigits in PHOS
baef0810 22// A Summable Digits is the sum of all hits originating
23// from one primary in one active cell
24//*--
990119d6 25//*-- Author: Dmitri Peressounko(SUBATECH & KI)
26
27
28// --- ROOT system ---
29#include "TTask.h"
0a81ea53 30#include "AliConfig.h"
bdc147a9 31class TFile ;
3e357865 32
0a81ea53 33
990119d6 34// --- Standard library ---
35
36// --- AliRoot header files ---
37
38class AliPHOSSDigitizer: public TTask {
39
40public:
41 AliPHOSSDigitizer() ; // ctor
e191bb57 42 AliPHOSSDigitizer(const char * alirunFileName, const char * eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
3663622c 43
797e311f 44 virtual ~AliPHOSSDigitizer(); // dtor
990119d6 45
88cb7938 46 Float_t Calibrate(Int_t amp)const {return (amp - fA)/fB ; }
47 Int_t Digitize(Float_t Energy)const { return (Int_t ) ( fA + Energy*fB); }
fbf811ec 48 virtual void Exec(Option_t *option);
17323043 49 Int_t GetSDigitsInRun() const {return fSDigitsInRun ;}
702ab87e 50 virtual void Print(const Option_t * = "") const ;
88cb7938 51 void SetEventFolderName(TString name) { fEventFolderName = name ; }
212d1c0f 52 void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
88cb7938 53
106fc2fa 54 Bool_t operator == (const AliPHOSSDigitizer & sd) const ;
bdc147a9 55
7acf6008 56private:
57 void Init() ;
8d0f3f77 58 void InitParameters() ;
7acf6008 59 void PrintSDigits(Option_t * option) ;
88cb7938 60 void Unload() const ;
61
990119d6 62
63private:
7b7c1533 64 Float_t fA ; // Pedestal parameter
65 Float_t fB ; // Slope Digitizition parameters
990119d6 66 Float_t fPrimThreshold ; // To store primari if Elos > threshold
fbf811ec 67 Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized)
88cb7938 68 TString fEventFolderName; // event folder name
69 Bool_t fInit ; //! tells if initialisation wennt OK, will revent exec if not
fbf811ec 70 Int_t fSDigitsInRun ; //! Total number of sdigits in one run
212d1c0f 71 Int_t fFirstEvent; // first event to process
72 Int_t fLastEvent; // last event to process
990119d6 73
212d1c0f 74 ClassDef(AliPHOSSDigitizer,3) // description
990119d6 75
76};
77
78#endif // AliPHOSSDigitizer_H