]>
Commit | Line | Data |
---|---|---|
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$ | |
5b188f2f | 12 | * Revision 1.27 2007/08/07 14:12:03 kharlov |
13 | * Quality assurance added (Yves Schutz) | |
14 | * | |
ddd1a39c | 15 | * Revision 1.26 2006/08/28 10:01:56 kharlov |
16 | * Effective C++ warnings fixed (Timur Pocheptsov) | |
17 | * | |
3663622c | 18 | * Revision 1.25 2005/11/30 18:56:26 schutz |
19 | * Small corrections to fix compilation errors | |
20 | * | |
0a81ea53 | 21 | * Revision 1.24 2005/05/28 14:19:05 schutz |
22 | * Compilation warnings fixed by T.P. | |
23 | * | |
702ab87e | 24 | */ |
25 | ||
990119d6 | 26 | //_________________________________________________________________________ |
27 | // Task Class for making SDigits in PHOS | |
baef0810 | 28 | // A Summable Digits is the sum of all hits originating |
29 | // from one primary in one active cell | |
30 | //*-- | |
990119d6 | 31 | //*-- Author: Dmitri Peressounko(SUBATECH & KI) |
32 | ||
33 | ||
34 | // --- ROOT system --- | |
35 | #include "TTask.h" | |
0a81ea53 | 36 | #include "AliConfig.h" |
bdc147a9 | 37 | class TFile ; |
3e357865 | 38 | |
0a81ea53 | 39 | |
990119d6 | 40 | // --- Standard library --- |
41 | ||
42 | // --- AliRoot header files --- | |
ddd1a39c | 43 | class AliPHOSQualAssDataMaker ; |
990119d6 | 44 | |
45 | class AliPHOSSDigitizer: public TTask { | |
46 | ||
47 | public: | |
48 | AliPHOSSDigitizer() ; // ctor | |
e191bb57 | 49 | AliPHOSSDigitizer(const char * alirunFileName, const char * eventFolderName = AliConfig::GetDefaultEventFolderName()) ; |
ddd1a39c | 50 | AliPHOSSDigitizer(const AliPHOSSDigitizer& sd) ; |
51 | AliPHOSSDigitizer& operator = (const AliPHOSSDigitizer& sd) ; | |
3663622c | 52 | |
797e311f | 53 | virtual ~AliPHOSSDigitizer(); // dtor |
990119d6 | 54 | |
88cb7938 | 55 | Float_t Calibrate(Int_t amp)const {return (amp - fA)/fB ; } |
56 | Int_t Digitize(Float_t Energy)const { return (Int_t ) ( fA + Energy*fB); } | |
fbf811ec | 57 | virtual void Exec(Option_t *option); |
17323043 | 58 | Int_t GetSDigitsInRun() const {return fSDigitsInRun ;} |
702ab87e | 59 | virtual void Print(const Option_t * = "") const ; |
88cb7938 | 60 | void SetEventFolderName(TString name) { fEventFolderName = name ; } |
212d1c0f | 61 | void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; } |
88cb7938 | 62 | |
106fc2fa | 63 | Bool_t operator == (const AliPHOSSDigitizer & sd) const ; |
ddd1a39c | 64 | |
65 | ||
7acf6008 | 66 | private: |
ddd1a39c | 67 | AliPHOSQualAssDataMaker * GetQualAssDataMaker() const { return fQADM ; } |
68 | ||
7acf6008 | 69 | void Init() ; |
8d0f3f77 | 70 | void InitParameters() ; |
7acf6008 | 71 | void PrintSDigits(Option_t * option) ; |
88cb7938 | 72 | void Unload() const ; |
73 | ||
990119d6 | 74 | |
75 | private: | |
7b7c1533 | 76 | Float_t fA ; // Pedestal parameter |
77 | Float_t fB ; // Slope Digitizition parameters | |
990119d6 | 78 | Float_t fPrimThreshold ; // To store primari if Elos > threshold |
fbf811ec | 79 | Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized) |
88cb7938 | 80 | TString fEventFolderName; // event folder name |
81 | Bool_t fInit ; //! tells if initialisation wennt OK, will revent exec if not | |
fbf811ec | 82 | Int_t fSDigitsInRun ; //! Total number of sdigits in one run |
212d1c0f | 83 | Int_t fFirstEvent; // first event to process |
84 | Int_t fLastEvent; // last event to process | |
5b188f2f | 85 | |
ddd1a39c | 86 | AliPHOSQualAssDataMaker * fQADM ; //!Quality Assurance Data Maker |
5b188f2f | 87 | static const Int_t fgkCycles = 9999 ; // QA data accumulation cycle |
990119d6 | 88 | |
5b188f2f | 89 | ClassDef(AliPHOSSDigitizer,4) // description |
990119d6 | 90 | |
91 | }; | |
92 | ||
93 | #endif // AliPHOSSDigitizer_H |