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 */
8 //_________________________________________________________________________
9 // Task Class for making SDigits in PHOS
10 // Class performs digitization of Summable digits (in the PHOS case this is just
11 // sum of contributions of all primary particles into given cell).
12 // In addition it performs mixing of summable digits from different events.
14 //*-- Author: Dmitri Peressounko(SUBATECH & KI)
17 // --- ROOT system ---
19 #include "TObjString.h"
21 // --- Standard library ---
23 // --- AliRoot header files ---
24 class AliPHOSSDigitizer ;
27 class AliPHOSDigitizer: public TTask {
30 AliPHOSDigitizer() ; // ctor
31 AliPHOSDigitizer(const char *headerFile, const char * name = "No Name") ;
32 AliPHOSDigitizer(const AliPHOSDigitizer & dtizer) {( (AliPHOSDigitizer &)dtizer ).Copy(*this) ;} // cpy ctor
33 virtual ~AliPHOSDigitizer() ;
35 void Digitize(const Int_t event) ; // Make Digits from SDigits
36 void Exec(Option_t *option); // Supervising method
38 const Float_t GetCPVNoise() const { return fCPVNoise ;}
39 const Float_t GetCPVThreshold() const { return fCPVDigitThreshold ;}
40 const Float_t GetEMCThreshold() const { return fEMCDigitThreshold;}
41 const Float_t GetPedestal() const { return fPedestal; }
42 const Float_t GetPinNoise() const { return fPinNoise;}
43 const Float_t GetPPSDNoise() const { return fPPSDNoise ;}
44 const Float_t GetPPSDThreshold()const { return fPPSDDigitThreshold ;}
45 const Float_t GetSlope() const { return fSlope; }
46 // const TArrayI * GetCurrentEvents()const { return fIevent ;}
48 void MixWith(const char* HeaderFile) ; // Add another one file to mix
49 virtual void Print(Option_t* option)const ;
50 void Reset() ; //restarts starts event processing from 0 event(s)
52 void SetCPVNoise(Float_t CPVNoise) {fCPVNoise = CPVNoise;}
53 void SetCPVThreshold(Float_t CPVThreshold) {fCPVDigitThreshold= CPVThreshold;}
54 void SetEMCThreshold(Float_t EMCThreshold) {fEMCDigitThreshold = EMCThreshold;}
55 void SetPinNoise(Float_t PinNoise ) {fPinNoise = PinNoise;}
56 void SetPPSDNoise(Float_t PPSDNoise) {fPPSDNoise = PPSDNoise;}
57 void SetPPSDThreshold(Float_t PPSDThreshold){fPPSDDigitThreshold = PPSDThreshold;}
59 void SetSDigitsBranch(const char* file) ;
61 AliPHOSDigitizer & operator = (const AliPHOSDigitizer & rvalue) {
62 // assignement operator requested by coding convention but not needed
69 void PrintDigits(Option_t * option) ;
70 Bool_t ReadSDigits(Int_t evt) ; // Read sdigits for particular events
71 void WriteDigits(Int_t evt) ; // Writes Digits for particular event
75 Float_t fPedestal ; // Calibration parameters
76 Float_t fSlope ; // read from SDigitizer
78 Float_t fPinNoise ; // Electronics noise in EMC
79 Float_t fEMCDigitThreshold ; // Threshold for storing digits in EMC
80 Float_t fCPVNoise ; // Noise in CPV
81 Float_t fCPVDigitThreshold ; // Threshold for storing digits in CPV
82 Float_t fPPSDNoise ; // Noise in PPSD
83 Float_t fPPSDDigitThreshold ; // Threshold for storing digits in PPSD
86 ClassDef(AliPHOSDigitizer,1) // description
91 #endif // AliPHOSDigitizer_H