]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCALDigitizer.h
passing the mc reaction plane to the floweventsimple
[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//_________________________________________________________________________
ab6a174f 9// Task Class for making Digits in EMCAL from SIMULATED DATA
61e0abb5 10//
ffa6d63b 11//*-- Author: Sahal Yacoob (LBL)
12// based on : AliPHOSDigit
1963b290 13// July 2003 Yves Schutz : NewIO
14// November 2003 Aleksei Pavlinov : Shish-Kebab geometry
ffa6d63b 15//_________________________________________________________________________
61e0abb5 16
17
18// --- ROOT system ---
61e0abb5 19#include "TObjString.h"
05a92d59 20class TClonesArray ;
1963b290 21class TBrowser;
05a92d59 22
61e0abb5 23// --- Standard library ---
24
25// --- AliRoot header files ---
814ad4bf 26#include "AliDigitizer.h"
88cb7938 27#include "AliConfig.h"
53f1c378 28#include "AliEMCALCalibData.h"
ab6a174f 29
05a92d59 30class AliEMCALSDigitizer ;
31class AliRunDigitizer ;
61e0abb5 32
814ad4bf 33class AliEMCALDigitizer: public AliDigitizer {
61e0abb5 34
35public:
36 AliEMCALDigitizer() ; // ctor
e191bb57 37 AliEMCALDigitizer(TString alirunFileNameFile, TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
88cb7938 38 AliEMCALDigitizer(const AliEMCALDigitizer & dtizer) ;
39 AliEMCALDigitizer(AliRunDigitizer * manager) ;
61e0abb5 40 virtual ~AliEMCALDigitizer() ;
41
09884213 42 void Digitize(Int_t event); // Make Digits from SDigits stored in fSDigits
05a92d59 43 void Exec(Option_t *option); // Supervising method
61e0abb5 44
09884213 45 Float_t GetDigitThreshold() const { return fDigitThreshold;}
46 Float_t GetPedestal() const { return fPedestal; }
47 Float_t GetPinNoise() const { return fPinNoise;}
48 Float_t GetSlope() const { return fSlope; }
49 Float_t GetTimeResolution() const { return fTimeResolution ; }
50 Float_t GetECAchannel() const { return fADCchannelEC ; }
51 Float_t GetECApedestal() const { return fADCpedestalEC ; }
7ea6391b 52 void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
a9485c37 53 void SetDigitThreshold(Float_t EMCThreshold) {fDigitThreshold = EMCThreshold;}
61e0abb5 54 void SetPinNoise(Float_t PinNoise ) {fPinNoise = PinNoise;}
55
05a92d59 56 //General
7ea6391b 57 Int_t GetDigitsInRun() const { return fDigitsInRun; }
09884213 58 void MixWith(TString alirunFileName,
e191bb57 59 TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ; // Add another one file to mix
eb0b1051 60 void Print(Option_t* option="") const ;
1963b290 61 void Print1(Option_t * option); // *MENU*
814ad4bf 62
9c0a4862 63 AliEMCALDigitizer & operator = (const AliEMCALDigitizer & /*rvalue*/) {
814ad4bf 64 // assignement operator requested by coding convention but not needed
9859bfc0 65 Fatal("operator =", "not implemented") ;
66 return *this ;
814ad4bf 67 }
68
1963b290 69 virtual void Browse(TBrowser* b);
1963b290 70
61e0abb5 71private:
814ad4bf 72
d17817b7 73 Bool_t Init();
839828a6 74 void InitParameters() ;
61e0abb5 75 void PrintDigits(Option_t * option) ;
88cb7938 76 void Unload() ;
9e5d2067 77 void WriteDigits() ; // Writes Digits the current event
78 Float_t TimeOfNoise(void) ; // Calculate time signal generated by noise
88cb7938 79
05a92d59 80 //Calculate the time of crossing of the threshold by front edge
814ad4bf 81 Float_t FrontEdgeTime(TClonesArray * ticks) ;
1abe522d 82 Int_t DigitizeEnergy(Float_t energy, Int_t AbsId) ;
61e0abb5 83
84private:
814ad4bf 85
88cb7938 86 Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized)
87 Int_t fDigitsInRun ; //! Total number of digits in one run
88 Bool_t fInit ; //! To avoid overwriting existing files
89
90 Int_t fInput ; // Number of files to merge
91 TString * fInputFileNames ; //[fInput] List of file names to merge
92 TString * fEventNames ; //[fInput] List of event names to merge
93
a9485c37 94 Float_t fDigitThreshold ; // Threshold for storing digits in EMC
95 Int_t fMeanPhotonElectron ; // number of photon electrons per GeV deposited energy
96 Float_t fPedestal ; // Calibration parameters
97 Float_t fSlope ; // read from SDigitizer
98 Float_t fPinNoise ; // Electronics noise in EMC
99 Float_t fTimeResolution ; // Time resolution of FEE electronics
100 Float_t fTimeThreshold ; // Threshold to start timing for given crystall
101 Float_t fTimeSignalLength ; // Length of the timing signal
102 Float_t fADCchannelEC ; // width of one ADC channel in EC section (GeV)
14ce0a6e 103 Float_t fADCpedestalEC ; // pedestal for one ADC channel
a9485c37 104 Int_t fNADCEC ; // number of channels in EC section ADC
a9485c37 105
88cb7938 106 TString fEventFolderName; // skowron: name of EFN to read data from in stand alone mode
45fa49ca 107 Int_t fFirstEvent; // first event to process
108 Int_t fLastEvent; // last event to process
ab6a174f 109
53f1c378 110 AliEMCALCalibData * fCalibData; //Calibration data pointer
88cb7938 111
7ea6391b 112 ClassDef(AliEMCALDigitizer,7) // description
61e0abb5 113};
114
115
116#endif // AliEMCALDigitizer_H