1 #ifndef ALIEMCALDigitizer_H
2 #define ALIEMCALDigitizer_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 Digits in EMCAL
11 //*-- Author: Sahal Yacoob (LBL)
12 // based on : AliPHOSDigit
13 //_________________________________________________________________________
16 // --- ROOT system ---
18 #include "TObjString.h"
20 // --- Standard library ---
22 // --- AliRoot header files ---
23 class AliEMCALSDigitizer ;
24 #include "AliRunDigitizer.h"
25 #include "AliDigitizer.h"
28 class AliEMCALDigitizer: public AliDigitizer {
31 AliEMCALDigitizer() ; // ctor
32 AliEMCALDigitizer(const char *headerFile,const char * sDigitsBranchTitle = "Default") ;
33 AliEMCALDigitizer(AliRunDigitizer * ard) ;
34 AliEMCALDigitizer(const AliEMCALDigitizer & dtizer)
35 {( (AliEMCALDigitizer &)dtizer ).Copy(*this) ;}
36 virtual ~AliEMCALDigitizer() ;
38 void Digitize(const Int_t); // Make Digits from SDigits stored in fSDigits
39 void Exec(Option_t *option); // Supervising method
41 Float_t GetEMCThreshold() const { return fEMCDigitThreshold;}
42 Float_t GetPedestal() const { return fPedestal; }
43 Float_t GetPinNoise() const { return fPinNoise;}
44 Float_t GetSlope() const { return fSlope; }
45 const Float_t GetTimeResolution() const { return fTimeResolution ; }
48 void MixWith(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 const Int_t GetDigitsInRun() const { return fDigitsInRun; } ;
52 void SetEMCThreshold(Float_t EMCThreshold) {fEMCDigitThreshold = EMCThreshold;}
53 void SetPinNoise(Float_t PinNoise ) {fPinNoise = PinNoise;}
55 void SetSDigitsBranch(const char* file) ;
58 AliEMCALDigitizer & operator = (const AliEMCALDigitizer & rvalue) {
59 // assignement operator requested by coding convention but not needed
68 Bool_t ReadSDigits() ; // Read sdigits for particular events
69 void WriteDigits(Int_t evt) ; // Writes Digits for particular event
70 void PrintDigits(Option_t * option) ;
71 Float_t TimeOfNoise(void) ; // Calculate time signal generated by noise
72 Float_t FrontEdgeTime(TClonesArray * ticks) ;
73 Int_t DigitizeEnergy(Float_t energy, Int_t absId) ;
77 AliEMCALSDigitizer * fSDigitizer ; // ! SDigitizer to extract some sdigitizing parameters
78 Int_t fNinputs ; // Number of input files
79 Bool_t fInitialized ; //
81 Int_t fDigitsInRun ; //! Total number of digits in one run
82 Float_t fPedestal ; // Calibration parameters
83 Float_t fSlope ; // read from SDigitizer
85 Float_t fPinNoise ; // Electronics noise in EMC
86 Float_t fEMCDigitThreshold ; // Threshold for storing digits in EMC
87 Float_t fPreShowerDigitThreshold ; // Threshold for Preshower digits
89 Float_t fTimeResolution ; // Time resolution of FEE electronics
90 Float_t fTimeThreshold ; // Threshold to start timing for given crystall
91 Float_t fTimeSignalLength ; // Length of the timing signal
93 Float_t fADCchannelTower ; // width of one ADC channel in Tower (GeV)
94 Float_t fADCpedestalTower ; //
95 Int_t fNADCTower ; // number of channels in Tower ADC
97 Float_t fADCchannelPreSho ; // width of one ADC channel in Pre Shower (GeV)
98 Float_t fADCpedestalPreSho ; //
99 Int_t fNADCPreSho ; // number of channels in Pre Shower ADC
101 ClassDef(AliEMCALDigitizer,1) // description
106 #endif // AliEMCALDigitizer_H