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