Compatibility with ROOT trunk
[u/mrichter/AliRoot.git] / JETAN / AliJetESDFillUnitArrayEMCalDigits.h
CommitLineData
be6e5811 1#ifndef ALIJETESDFILLUNITARRAYEMCALDIGITS_H
2#define ALIJETESDFILLUNITARRAYEMCALDIGITS_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7//---------------------------------------------------------------------
8// Jet Fill Unit Array
9// Called by ESD Reader for jet analysis
10// Author: Magali Estienne (magali.estienne@subatech.in2p3.fr)
11//---------------------------------------------------------------------
12
13#include "AliJetFillUnitArray.h"
14
15class AliESDCaloCluster;
16class AliJetReader;
17class AliJetESDReader;
18class AliJetESDReaderHeader;
19//class AliEMCALCalibData ;
20
21class AliJetESDFillUnitArrayEMCalDigits : public AliJetFillUnitArray
22{
23 public:
24 AliJetESDFillUnitArrayEMCalDigits();
25 AliJetESDFillUnitArrayEMCalDigits(AliESDEvent *fESD);
26 virtual ~AliJetESDFillUnitArrayEMCalDigits();
27
28 // Setter
29 void SetApplyElectronCorrection(Int_t flag = 1) {fApplyElectronCorrection = flag;}
30 void SetApplyFractionHadronicCorrection(Bool_t val) {fApplyFractionHadronicCorrection = val;}
31 void SetFractionHadronicCorrection(Double_t val) {fFractionHadronicCorrection = val;}
32 void SetESD(AliESDEvent* const esd) {fESD = esd;}
33 void SetInitMult(Int_t mult) {fNDigitEmcal = mult;}
34 void SetInitMultCut(Int_t multcut) {fNDigitEmcalCut = multcut;}
35
36 // Getter
37 Int_t GetMult() const {return fNDigitEmcal;}
38 Int_t GetMultCut() const {return fNDigitEmcalCut;}
39
40 // Other
41 void Exec(Option_t* const option);
42 // For calibration
43 // virtual Float_t Calibrate(Int_t amp, Int_t cellId) ; // Tranforms Amp to energy
44
45 protected:
46 AliESDEvent *fESD; // ESD
47 Int_t fNIn; // Number of Array filled in UnitArray
48 Int_t fOpt; // Detector to be used for jet reconstruction
49 Int_t fCluster; // Use all cells or cells in clusters for jet finding
50 Int_t fDebug; // Debug option
51 Int_t fNCEMCAL; // Number of clusters in EMCAL
52 Int_t fNCPHOS; // Number of clusters in PHOS
53 Int_t fNCCalo; // Number of cluster in EMCAL + PHOS calorimeters
54
55 Bool_t fApplyElectronCorrection; // Electron correction flag
56 Bool_t fApplyFractionHadronicCorrection; // Fraction hadronic correction flag
57 Bool_t fFractionHadronicCorrection; // Fraction hadronic correction
58
59 AliESDCaloCluster *fClus; //!
60 Int_t fNDigitEmcal; //!
61 Int_t fNDigitEmcalCut; //!
62 // Calibration parameters... to be replaced by database
63/* AliEMCALCalibData *fCalibData; //! Calibration database if aval */
64/* Float_t fADCchannelECA; // width of one ADC channel for EC section (GeV) */
65/* Float_t fADCpedestalECA; // pedestal of ADC for EC section (GeV) */
66
67
68 private:
69 AliJetESDFillUnitArrayEMCalDigits(const AliJetESDFillUnitArrayEMCalDigits &det);
70 AliJetESDFillUnitArrayEMCalDigits &operator=(const AliJetESDFillUnitArrayEMCalDigits &det);
71
72// void GetCalibrationParameters(void) ;
73
74 ClassDef(AliJetESDFillUnitArrayEMCalDigits,1) // Fill Unit Array with tpc and/or emcal information
75};
76
77#endif