Reco parameters were adjusted to make consistent a reconstruction
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecoParam.h
CommitLineData
58f66025 1#ifndef ALIPHOSRECOPARAM_H
2#define ALIPHOSRECOPARAM_H
3/* Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8// Base class for the PHOS reconstruction parameters.
9// Do not use in the reconstruction; use derivative classes instead.
10
cf4e2a86 11#include "AliDetectorRecoParam.h"
58f66025 12
cf4e2a86 13class AliPHOSRecoParam : public AliDetectorRecoParam {
58f66025 14
15public:
16
17 AliPHOSRecoParam();
18 AliPHOSRecoParam(const AliPHOSRecoParam& recoParam);
19 AliPHOSRecoParam& operator = (const AliPHOSRecoParam& recoParam);
20 virtual ~AliPHOSRecoParam() {}
21
7e88424f 22 Float_t GetEMCClusteringThreshold() const { return fEMCClusteringThreshold; }
23 Float_t GetEMCLocalMaxCut() const { return fEMCLocMaxCut; }
12dd7f10 24 Float_t GetEMCRawDigitThreshold() const { return fEMCRawDigitThreshold; }
7e88424f 25 Float_t GetEMCMinE() const { return fEMCMinE; }
26 Float_t GetEMCLogWeight() const { return fEMCW0; }
27 Float_t GetEMCSampleQualityCut() const { return fEMCSampleQualityCut; }
28 Float_t GetEMCEcoreRadius() const { return fEMCEcoreRadius; }
29 Bool_t EMCEcore2ESD() const { return fEMCEcore2ESD; }
30 Bool_t EMCSubtractPedestals() const { return fEMCSubtractPedestals; }
31 Bool_t EMCToUnfold() const { return fEMCUnfold; }
32 const char* EMCDecoderVersion() const { return fEMCDecoderVersion.Data();}
71994f35 33 Bool_t GetEMCEnergyCorrectionOn() const { return fEMCEnergyCorrectionOn; }
aa64ff7a 34 Int_t GetGlobalAltroOffset() const { return fGlobalAltroOffset ; }
7e88424f 35
36 Float_t GetCPVClusteringThreshold() const { return fCPVClusteringThreshold; }
37 Float_t GetCPVLocalMaxCut() const { return fCPVLocMaxCut; }
38 Float_t GetCPVMinE() const { return fCPVMinE; }
39 Float_t GetCPVLogWeight() const { return fCPVW0; }
40 Bool_t CPVToUnfold() const { return fCPVUnfold; }
41
42 void SetEMCClusteringThreshold(Float_t cluth) { fEMCClusteringThreshold=cluth; }
43 void SetEMCLocalMaxCut(Float_t cut) { fEMCLocMaxCut =cut; }
12dd7f10 44 void SetEMCRawDigitThreshold(Float_t rawDigTh) { fEMCRawDigitThreshold =rawDigTh;}
7e88424f 45 void SetEMCMinE(Float_t minE) { fEMCMinE =minE; }
46 void SetEMCLogWeight(Float_t w) { fEMCW0 =w; }
47 void SetEMCSampleQualityCut(Float_t qu) { fEMCSampleQualityCut =qu; }
48 void SetEMCEcoreRadius(Float_t rCore) { fEMCEcoreRadius =rCore; }
49 void SetEMCEcore2ESD(Bool_t ecore) { fEMCEcore2ESD =ecore; }
50 void SetEMCSubtractPedestals(Bool_t subtract) { fEMCSubtractPedestals =subtract;}
51 void SetEMCDecoderVersion(const char* version="v1"){ fEMCDecoderVersion =version ;}
71994f35 52 void SetEMCUnfolding(Bool_t toUnfold=kFALSE) { fEMCUnfold =toUnfold;}
53 void SetEMCEnergyCorrectionOn(Bool_t on=kTRUE) { fEMCEnergyCorrectionOn =on; }
54 void SetGlobalAltroOffset(Int_t offset=5) { fGlobalAltroOffset =offset ; }
7e88424f 55
56 void SetCPVClusteringThreshold(Float_t cluth) { fCPVClusteringThreshold=cluth; }
57 void SetCPVLocalMaxCut(Float_t cut) { fCPVLocMaxCut =cut; }
58 void SetCPVMinE(Float_t minE) { fCPVMinE =minE; }
59 void SetCPVLogWeight(Float_t w) { fCPVW0 =w; }
60 void SetCPVUnfolding(Bool_t toUnfold=kFALSE) { fCPVUnfold =toUnfold;}
61
12dd7f10 62 virtual void Print(const Option_t *option="RecoParam") const;
0428f331 63
7e88424f 64 static AliPHOSRecoParam* GetDefaultParameters();
65 static const TObjArray* GetMappings();
58f66025 66
67protected:
68
7e88424f 69 Float_t fEMCClusteringThreshold; // EMC: Min.digit energy to start a new cluster, in GeV
70 Float_t fEMCLocMaxCut; // EMC: Min.energy difference between two local maxima, in GeV
12dd7f10 71 Float_t fEMCRawDigitThreshold; // EMC: Min.amplitude of a digit produced from raw data in ADC
72 Float_t fEMCMinE; // EMC: Min.E in the digits list associated with rec.point, in GeV
7e88424f 73 Float_t fEMCW0; // EMC: Log.weight to evaluate a local coordinate of rec.point
74 Float_t fEMCSampleQualityCut; // EMC: Cut on pulse shape fit quality
75 Float_t fEMCEcoreRadius; // EMC: Radius within which the core energy is calculated, in cm
76 Bool_t fEMCEcore2ESD; // EMC: true if Ecore is stored in ESD instead of Etot
77 Bool_t fEMCSubtractPedestals; // EMC: true if pedestal should be subtracted (in non-ZS)
78 Bool_t fEMCUnfold; // EMC: true if overlapped clusters should be unfolded
71994f35 79 Bool_t fEMCEnergyCorrectionOn; // EMC: if true do non-linear correction of cluster energy
7e88424f 80 TString fEMCDecoderVersion ; // EMC: AliPHOSRawDecoder version
aa64ff7a 81 Int_t fGlobalAltroOffset ; // Offset used in ALTRO chips in SZ runs
7e88424f 82
83 Float_t fCPVClusteringThreshold; // CPV: Min.digit energy to start a new cluster, in GeV
84 Float_t fCPVLocMaxCut; // CPV: Min.energy difference between two local maxima, in GeV
85 Float_t fCPVMinE; // CPV: Min.E in the digits list associated with rec.point, in GeV
86 Float_t fCPVW0; // CPV: Log.weight to evaluate a local coordinate of rec.point
87 Bool_t fCPVUnfold; // CPV: true if overlapped clusters should be unfolded
88
89 static TObjArray* fgkMaps; // ALTRO mappings for RCU0..RCU3
90
12dd7f10 91 ClassDef(AliPHOSRecoParam,9)
58f66025 92};
93
94#endif