]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSRecoParam.h
energy cuts become calibration-dependent
[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
11#include "TNamed.h"
12
13
14class AliPHOSRecoParam : public TNamed {
15
16public:
17
18 AliPHOSRecoParam();
19 AliPHOSRecoParam(const AliPHOSRecoParam& recoParam);
20 AliPHOSRecoParam& operator = (const AliPHOSRecoParam& recoParam);
21 virtual ~AliPHOSRecoParam() {}
22
75b88769 23 Float_t GetClusteringThreshold() const { return fClusteringThreshold; }
24 Float_t GetLocalMaxCut() const { return fLocMaxCut; }
25 Float_t GetMinE() const { return fMinE; }
26 Float_t GetLogWeight() const { return fW0; }
70d93620 27 Float_t GetSampleQualityCut() const { return fSampleQualityCut; }
75b88769 28 Bool_t SubtractPedestals() const { return fSubtractPedestals; }
29 Bool_t ToUnfold() const { return fUnfold; }
30 Bool_t IsOldRCUFormat() const { return fOldRCUFormat; }
31 const char* DecoderVersion() const { return fDecoderVersion.Data();}
32
33 void SetClusteringThreshold(Float_t cluth) { fClusteringThreshold=cluth; }
34 void SetLocalMaxCut(Float_t cut) { fLocMaxCut =cut; }
35 void SetMinE(Float_t minE) { fMinE =minE; }
36 void SetLogWeight(Float_t w) { fW0 =w; }
70d93620 37 void SetSampleQualityCut(Float_t qu) { fSampleQualityCut =qu; }
75b88769 38 void SetSubtractPedestals(Bool_t subtract) { fSubtractPedestals =subtract;}
39 void SetDecoderVersion(const char* version="v1"){fDecoderVersion =version ;}
40 void SetUnfolding(Bool_t toUnfold=kFALSE) {fUnfold =toUnfold;}
41 void SetOldRCUFormat(Bool_t oldRCU = kTRUE) {fOldRCUFormat =oldRCU; }
58f66025 42
43protected:
44
45 Float_t fClusteringThreshold;
46 Float_t fLocMaxCut;
47 Float_t fMinE;
48 Float_t fW0;
70d93620 49 Float_t fSampleQualityCut;
f65d827f 50 Bool_t fSubtractPedestals;
a42611a9 51 Bool_t fUnfold;
75b88769 52 Bool_t fOldRCUFormat; // kTRUE if RCU has old firmware (2006-2007)
77ea1c6f 53 TString fDecoderVersion ;
58f66025 54
75b88769 55 ClassDef(AliPHOSRecoParam,2)
58f66025 56};
57
58#endif