]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSDigitizer.h
A lot of changes here:
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDigitizer.h
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
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.
13 //                  
14 //*-- Author: Dmitri Peressounko(SUBATECH & KI)
15
16
17 // --- ROOT system ---
18 #include "TTask.h"
19 #include "TObjString.h"
20 class TArrayI ;
21 // --- Standard library ---
22
23 // --- AliRoot header files ---
24 class AliPHOSSDigitizer ;
25
26
27 class AliPHOSDigitizer: public TTask {
28
29 public:
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() ;       
34
35   void    Digitize(const Int_t event) ;            // Make Digits from SDigits 
36   void    Exec(Option_t *option);                // Supervising method
37
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 ;}
47
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)
51
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;}
58
59   void    SetSDigitsBranch(const char* file) ;
60
61   AliPHOSDigitizer & operator = (const AliPHOSDigitizer & rvalue)  {
62     // assignement operator requested by coding convention but not needed
63     abort() ;
64     return *this ; 
65   }
66
67 private:
68   void    Init() ;                   
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
72
73 private:
74
75   Float_t fPedestal ;                // Calibration parameters 
76   Float_t fSlope ;                   // read from SDigitizer
77
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
84
85
86   ClassDef(AliPHOSDigitizer,1)  // description 
87
88 };
89
90
91 #endif // AliPHOSDigitizer_H