]>
Commit | Line | Data |
---|---|---|
990119d6 | 1 | #ifndef ALIPHOSDigitizer_H |
2 | #define ALIPHOSDigitizer_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
702ab87e | 8 | /* History of cvs commits: |
9 | * | |
10 | * $Log$ | |
c65c502a | 11 | * Revision 1.37 2007/10/10 09:05:10 schutz |
12 | * Changing name QualAss to QA | |
13 | * | |
b8274834 | 14 | * Revision 1.36 2007/09/30 17:08:20 schutz |
15 | * Introducing the notion of QA data acquisition cycle (needed by online) | |
16 | * | |
5b188f2f | 17 | * Revision 1.35 2007/08/07 14:12:03 kharlov |
18 | * Quality assurance added (Yves Schutz) | |
19 | * | |
ddd1a39c | 20 | * Revision 1.34 2006/04/29 20:25:30 hristov |
21 | * Decalibration is implemented (Yu.Kharlov) | |
22 | * | |
877695e7 | 23 | * Revision 1.33 2005/05/28 14:19:04 schutz |
24 | * Compilation warnings fixed by T.P. | |
25 | * | |
702ab87e | 26 | */ |
27 | ||
990119d6 | 28 | //_________________________________________________________________________ |
29 | // Task Class for making SDigits in PHOS | |
baef0810 | 30 | // Class performs digitization of Summable digits (in the PHOS case this is just |
31 | // sum of contributions of all primary particles into given cell). | |
32 | // In addition it performs mixing of summable digits from different events. | |
990119d6 | 33 | // |
34 | //*-- Author: Dmitri Peressounko(SUBATECH & KI) | |
35 | ||
36 | ||
37 | // --- ROOT system --- | |
e957fea8 | 38 | //#include "TObjString.h" |
8cb3533f | 39 | class TArrayI ; |
fb43c866 | 40 | class TClonesArray ; |
41 | ||
990119d6 | 42 | // --- Standard library --- |
43 | ||
44 | // --- AliRoot header files --- | |
3f81a70b | 45 | #include "AliDigitizer.h" |
f898e0f3 | 46 | #include "AliConfig.h" |
3f81a70b | 47 | class AliRunDigitizer ; |
f898e0f3 | 48 | class AliPHOSCalibData ; |
8cb3533f | 49 | |
93aeb834 | 50 | class AliPHOSDigitizer: public AliDigitizer { |
990119d6 | 51 | |
52 | public: | |
53 | AliPHOSDigitizer() ; // ctor | |
e191bb57 | 54 | AliPHOSDigitizer(TString alirunFileNameFile, TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ; |
88cb7938 | 55 | AliPHOSDigitizer(const AliPHOSDigitizer & dtizer) ; |
56 | AliPHOSDigitizer(AliRunDigitizer * manager) ; | |
990119d6 | 57 | virtual ~AliPHOSDigitizer() ; |
8cb3533f | 58 | |
fc7e2f43 | 59 | void Digitize(Int_t event) ; // Make Digits from SDigits |
3758d9fc | 60 | void Exec(Option_t *option); // Supervising method |
8cb3533f | 61 | |
212d1c0f | 62 | void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; } |
3758d9fc | 63 | |
64 | //General | |
fc7e2f43 | 65 | Int_t GetDigitsInRun() const { return fDigitsInRun ;} |
702ab87e | 66 | |
67 | void Print(const Option_t * = "")const ; | |
548f0134 | 68 | |
8c140292 | 69 | AliPHOSDigitizer & operator = (const AliPHOSDigitizer & /*rvalue*/) { |
baef0810 | 70 | // assignement operator requested by coding convention but not needed |
f1611b7c | 71 | Fatal("operator =", "not implemented") ; |
baef0810 | 72 | return *this ; |
73 | } | |
74 | ||
ddd1a39c | 75 | |
990119d6 | 76 | private: |
3758d9fc | 77 | |
88cb7938 | 78 | virtual Bool_t Init() ; |
8d0f3f77 | 79 | void InitParameters() ; |
8cb3533f | 80 | void PrintDigits(Option_t * option) ; |
88cb7938 | 81 | void Unload() ; |
90cceaf6 | 82 | void WriteDigits() ; // Writes Digits for the current event |
0bc3b8ed | 83 | Float_t TimeOfNoise(void) const; // Calculate time signal generated by noise |
88cb7938 | 84 | |
f898e0f3 | 85 | Float_t TimeResolution(Float_t energy) ; //TOF resolution |
86 | ||
9688c1dd | 87 | //Calculate the time of crossing of the threshold by front edge |
f898e0f3 | 88 | // Float_t FrontEdgeTime(TClonesArray * ticks) const ; |
3758d9fc | 89 | //Calculate digitized signal with gived ADC parameters |
877695e7 | 90 | void DecalibrateEMC(AliPHOSDigit * digit); |
91 | Int_t DigitizeCPV(Float_t charge, Int_t absId) ; | |
990119d6 | 92 | |
3758d9fc | 93 | private: |
8cb3533f | 94 | |
92f521a9 | 95 | Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized) |
88cb7938 | 96 | Int_t fDigitsInRun ; //! Total number of digits in one run |
97 | Bool_t fInit ; //! To avoid overwriting existing files | |
98 | ||
99 | Int_t fInput ; // Number of files to merge | |
100 | TString * fInputFileNames ; //[fInput] List of file names to merge | |
101 | TString * fEventNames ; //[fInput] List of event names to merge | |
548f0134 | 102 | |
9688c1dd | 103 | Int_t fEmcCrystals ; // Number of EMC crystalls in the given geometry |
3758d9fc | 104 | |
88cb7938 | 105 | TString fEventFolderName; // skowron: name of EFN to read data from in stand alone mode |
ddd1a39c | 106 | Int_t fFirstEvent; // first event to process |
107 | Int_t fLastEvent; // last event to process | |
f898e0f3 | 108 | AliPHOSCalibData* fcdb; //! Calibration parameters DB |
109 | ||
ddd1a39c | 110 | Int_t fEventCounter ; //! counts the events processed |
5b188f2f | 111 | |
5b188f2f | 112 | ClassDef(AliPHOSDigitizer,4) // description |
990119d6 | 113 | |
114 | }; | |
115 | ||
116 | ||
117 | #endif // AliPHOSDigitizer_H |