]>
Commit | Line | Data |
---|---|---|
168c7b3c | 1 | // -*- mode: c++ -*- |
ee299369 | 2 | #ifndef ALIEMCALRAWUTILS_H |
3 | #define ALIEMCALRAWUTILS_H | |
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
e5bbbc4e | 8 | |
92d9f317 | 9 | |
ee299369 | 10 | //_________________________________________________________________________ |
11 | // Utility Class for handling Raw data | |
12 | // Does all transitions from Digits to Raw and vice versa, | |
13 | // for simu and reconstruction | |
14 | // | |
15 | // Note: the current version is still simplified. Only | |
16 | // one raw signal per digit is generated; either high-gain or low-gain | |
17 | // Need to add concurrent high and low-gain info in the future | |
18 | // No pedestal is added to the raw signal. | |
19 | // | |
20 | //*-- Author: Marco van Leeuwen (LBL) | |
21 | // | |
22 | #include "TObject.h" // for ROOT types | |
feedcab9 | 23 | #include <TString.h> |
168c7b3c | 24 | |
25 | ||
92d9f317 | 26 | class AliAnalysisManager; |
32cd4c24 | 27 | class AliCaloRawStreamV3; |
e5bbbc4e | 28 | class AliAltroMapping; |
ee299369 | 29 | class TGraph; |
ee299369 | 30 | class AliRawReader; |
65bdc82f | 31 | class AliEMCALGeometry; |
5e3106bc | 32 | class AliCaloCalibPedestal; |
16605c06 | 33 | class AliCaloRawAnalyzer; |
92d9f317 | 34 | class AliCaloRawAnalyzerLMSOffline; |
de39a0ff | 35 | class AliEMCALTriggerRawDigitMaker; |
36 | class AliEMCALTriggerData; | |
92d9f317 | 37 | |
168c7b3c | 38 | #include "AliCaloConstants.h" |
ee299369 | 39 | |
92d9f317 | 40 | |
ee299369 | 41 | class AliEMCALRawUtils : public TObject { |
42 | public: | |
168c7b3c | 43 | AliEMCALRawUtils(Algo::fitAlgorithm fitAlgo = Algo::kStandard); |
16605c06 | 44 | virtual ~AliEMCALRawUtils(); |
65bdc82f | 45 | void Digits2Raw(); |
916f1e76 | 46 | void Raw2Digits(AliRawReader *reader, TClonesArray *digitsArr, const AliCaloCalibPedestal* pedbadmap, |
de39a0ff | 47 | TClonesArray *digitsTRG=0x0, AliEMCALTriggerData* trgData = 0x0); |
2cd0ffda | 48 | void AddDigit(TClonesArray *digitsArr, Int_t id, Int_t lowGain, Float_t amp, Float_t time, Float_t chi2, Int_t ndf); |
f4a4dc82 | 49 | void TrimDigits(TClonesArray *digitsArr); |
829ba234 | 50 | Int_t GetNoiseThreshold() const { return fNoiseThreshold; } |
51 | Int_t GetNPedSamples() const { return fNPedSamples; } | |
829ba234 | 52 | Bool_t GetRemoveBadChannels() const {return fRemoveBadChannels;} |
53 | Int_t GetFittingAlgorithm() const {return fFittingAlgorithm; } | |
f4a4dc82 | 54 | Float_t GetTimeMax() const {return fTimeMax ;} |
55 | Float_t GetTimeMin() const {return fTimeMin ;} | |
829ba234 | 56 | Bool_t UseFALTRO() const {return fUseFALTRO; } |
b4133f05 | 57 | void SetNoiseThreshold(Int_t val) {fNoiseThreshold=val; } |
58 | void SetNPedSamples(Int_t val) {fNPedSamples=val; } | |
9f467289 | 59 | void SetRemoveBadChannels(Bool_t val) {fRemoveBadChannels=val; } |
4fe71e02 | 60 | void SetFittingAlgorithm(Int_t val) ; |
f4a4dc82 | 61 | void SetTimeMin(Float_t t) {fTimeMin = t ;} |
62 | void SetTimeMax(Float_t t) {fTimeMax = t ;} | |
46f1d25f | 63 | void SetFALTROUsage(Bool_t val) {fUseFALTRO=val; } |
829ba234 | 64 | AliCaloRawAnalyzer *GetRawAnalyzer() const { return fRawAnalyzer;} |
feedcab9 | 65 | virtual Option_t* GetOption() const { return fOption.Data(); } |
16605c06 | 66 | void SetOption(const Option_t* opt) { fOption = opt; } |
92d9f317 | 67 | |
68 | private: | |
69 | AliEMCALRawUtils(const AliEMCALRawUtils& rawUtils); //copy ctor | |
70 | AliEMCALRawUtils& operator =(const AliEMCALRawUtils& rawUtils); | |
b4133f05 | 71 | Int_t fNoiseThreshold; // threshold to consider signal or noise |
72 | Int_t fNPedSamples; // number of samples to use in pedestal calculation | |
f4a4dc82 | 73 | AliEMCALGeometry* fGeom; // geometry |
74 | AliAltroMapping* fMapping[4]; // only two for now | |
92d9f317 | 75 | TString fOption; // option passed from Reconstructor |
f4a4dc82 | 76 | Bool_t fRemoveBadChannels; // select if bad channels are removed before fitting |
77 | Int_t fFittingAlgorithm; // select the fitting algorithm | |
78 | Float_t fTimeMin; // minimum threshold for the time of the signal | |
79 | Float_t fTimeMax; // maximum threshold for the time of the signal | |
80 | Bool_t fUseFALTRO; // use FALTRO and pass it to the digits | |
16605c06 | 81 | AliCaloRawAnalyzer *fRawAnalyzer; // e.g. for sample selection for fits |
dab4328c | 82 | AliEMCALTriggerRawDigitMaker* fTriggerRawDigitMaker; // trigger raw digit info |
92d9f317 | 83 | |
f4a4dc82 | 84 | ClassDef(AliEMCALRawUtils,7) // utilities for raw signal fitting |
92d9f317 | 85 | |
ee299369 | 86 | }; |
87 | ||
88 | #endif |