SetTrackList and TrackList implementation.
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALDigitizer.h
CommitLineData
61e0abb5 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 */
5
6/* $Id$ */
7
8//_________________________________________________________________________
ffa6d63b 9// Task Class for making Digits in EMCAL
61e0abb5 10//
ffa6d63b 11//*-- Author: Sahal Yacoob (LBL)
12// based on : AliPHOSDigit
13//_________________________________________________________________________
61e0abb5 14
15
16// --- ROOT system ---
814ad4bf 17
61e0abb5 18#include "TObjString.h"
19class TArrayI ;
20// --- Standard library ---
21
22// --- AliRoot header files ---
23class AliEMCALSDigitizer ;
814ad4bf 24#include "AliRunDigitizer.h"
25#include "AliDigitizer.h"
61e0abb5 26
27
814ad4bf 28class AliEMCALDigitizer: public AliDigitizer {
61e0abb5 29
30public:
31 AliEMCALDigitizer() ; // ctor
ffa6d63b 32 AliEMCALDigitizer(const char *headerFile,const char * sDigitsBranchTitle = "Default") ;
814ad4bf 33 AliEMCALDigitizer(AliRunDigitizer * ard) ;
34 AliEMCALDigitizer(const AliEMCALDigitizer & dtizer)
35 {( (AliEMCALDigitizer &)dtizer ).Copy(*this) ;}
61e0abb5 36 virtual ~AliEMCALDigitizer() ;
37
814ad4bf 38 void Digitize(const Int_t); // Make Digits from SDigits stored in fSDigits
61e0abb5 39 void Exec(Option_t *option); // Supervising method
40
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; }
814ad4bf 45 const Float_t GetTimeResolution() const { return fTimeResolution ; }
46
47
48 void MixWith(char* HeaderFile) ; // Add another one file to mix
61e0abb5 49 virtual void Print(Option_t* option)const ;
50 void Reset() ; //restarts starts event processing from 0 event(s)
814ad4bf 51 const Int_t GetDigitsInRun() const { return fDigitsInRun; } ;
61e0abb5 52 void SetEMCThreshold(Float_t EMCThreshold) {fEMCDigitThreshold = EMCThreshold;}
53 void SetPinNoise(Float_t PinNoise ) {fPinNoise = PinNoise;}
54
61e0abb5 55 void SetSDigitsBranch(const char* file) ;
814ad4bf 56
57
58 AliEMCALDigitizer & operator = (const AliEMCALDigitizer & rvalue) {
59 // assignement operator requested by coding convention but not needed
60 abort() ;
61 return *this ;
62 }
63
61e0abb5 64
65private:
814ad4bf 66
67 Bool_t Init();
61e0abb5 68 Bool_t ReadSDigits() ; // Read sdigits for particular events
814ad4bf 69 void WriteDigits(Int_t evt) ; // Writes Digits for particular event
61e0abb5 70 void PrintDigits(Option_t * option) ;
814ad4bf 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) ;
61e0abb5 74
75private:
814ad4bf 76
ffa6d63b 77 AliEMCALSDigitizer * fSDigitizer ; // ! SDigitizer to extract some sdigitizing parameters
61e0abb5 78 Int_t fNinputs ; // Number of input files
79 Bool_t fInitialized ; //
814ad4bf 80
81 Int_t fDigitsInRun ; //! Total number of digits in one run
61e0abb5 82 Float_t fPedestal ; // Calibration parameters
83 Float_t fSlope ; // read from SDigitizer
84
85 Float_t fPinNoise ; // Electronics noise in EMC
86 Float_t fEMCDigitThreshold ; // Threshold for storing digits in EMC
814ad4bf 87 Float_t fPreShowerDigitThreshold ; // Threshold for Preshower digits
88
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
92
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
61e0abb5 96
814ad4bf 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
61e0abb5 100
101 ClassDef(AliEMCALDigitizer,1) // description
102
103};
104
105
106#endif // AliEMCALDigitizer_H