AliRoot Core  3dc7879 (3dc7879)
AliEMCALRawUtils.h
Go to the documentation of this file.
1 // -*- mode: c++ -*-
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 //_________________________________________________________________________
23 //_________________________________________________________________________
24 
25 #include "TObject.h" // for ROOT types
26 #include <TString.h>
27 
28 class AliAnalysisManager;
29 class AliCaloRawStreamV3;
30 class AliAltroMapping;
31 class TGraph;
32 class AliRawReader;
33 class AliEMCALGeometry;
35 class AliCaloRawAnalyzer;
38 class AliCaloBunchInfo;
39 class TClonesArray;
40 
41 #include "AliCaloConstants.h"
42 
43 class AliEMCALRawUtils : public TObject {
44 
45 public:
46 
48 
49  virtual ~AliEMCALRawUtils();
50 
51  void Digits2Raw();
52 
53  void Raw2Digits(AliRawReader *reader, TClonesArray *digitsArr, const AliCaloCalibPedestal* pedbadmap,
54  TClonesArray *digitsTRG=0x0, TClonesArray *trgData=0x0);
55 
56  void AddDigit(TClonesArray *digitsArr, Int_t id, Int_t lowGain, const std::vector<AliCaloBunchInfo> &bunchlist, Float_t amp, Float_t time, Float_t chi2, Int_t ndf);
57 
58  void TrimDigits(TClonesArray *digitsArr);
59 
60  Int_t GetNoiseThreshold() const { return fNoiseThreshold ; }
61 
62  Int_t GetNPedSamples() const { return fNPedSamples ; }
63 
64  Bool_t GetRemoveBadChannels() const { return fRemoveBadChannels ; }
65 
66  Int_t GetFittingAlgorithm() const { return fFittingAlgorithm ; }
67 
68  Float_t GetTimeMax() const { return fTimeMax ; }
69 
70  Float_t GetTimeMin() const { return fTimeMin ; }
71 
72  Bool_t UseFALTRO() const { return fUseFALTRO ; }
73 
74  void SetNoiseThreshold(Int_t val) { fNoiseThreshold=val ; }
75 
76  void SetNPedSamples(Int_t val) { fNPedSamples=val ; }
77 
78  void SetRemoveBadChannels(Bool_t val) { fRemoveBadChannels=val ; }
79 
80  void SetFittingAlgorithm(Int_t val) ;
81 
82  void SetTimeMin(Float_t t) { fTimeMin = t ; }
83 
84  void SetTimeMax(Float_t t) { fTimeMax = t ; }
85 
86  void SetFALTROUsage(Bool_t val) { fUseFALTRO = val ; }
87 
88  void SetL1PhaseUsage(Bool_t val) { fUseL1Phase = val ; }
89 
91 
92  virtual Option_t* GetOption() const { return fOption.Data() ; }
93 
94  void SetOption(const Option_t* opt) { fOption = opt ; }
95 
96 private:
97 
98  AliEMCALRawUtils (const AliEMCALRawUtils& rawUtils);
99 
100  AliEMCALRawUtils& operator =(const AliEMCALRawUtils& rawUtils);
101 
103 
104  Int_t fNPedSamples;
105 
107 
108  AliAltroMapping* fMapping[4];
109 
110  TString fOption;
111 
113 
115 
116  Float_t fTimeMin;
117 
118  Float_t fTimeMax;
119 
120  Bool_t fUseFALTRO;
121 
122  Bool_t fUseL1Phase;
123 
125 
127 
129  ClassDef(AliEMCALRawUtils,8) ;
131 
132 };
133 
134 #endif
Bool_t fRemoveBadChannels
Select if bad channels are removed before fitting.
AliCaloRawAnalyzer * GetRawAnalyzer() const
Base class for extraction of signal amplitude and peak position.
Bool_t fUseL1Phase
Use L1Phase time shift.
Float_t fTimeMin
Minimum threshold for the time of the signal.
AliEMCALRawUtils & operator=(const AliEMCALRawUtils &rawUtils)
Float_t GetTimeMax() const
AliAnalysysManager Manager analysis class. Allows creation of several analysis tasks and data contain...
Int_t fNPedSamples
Number of samples to use in pedestal calculation.
void SetRemoveBadChannels(Bool_t val)
virtual Option_t * GetOption() const
TString fOption
Option passed from Reconstructor.
AliEMCALRawUtils(Algo::fitAlgorithm fitAlgo=Algo::kStandard)
AliEMCALGeometry * fGeom
Geometry.
Int_t GetFittingAlgorithm() const
void TrimDigits(TClonesArray *digitsArr)
Int_t fFittingAlgorithm
Select the fitting algorithm.
Float_t GetTimeMin() const
Container of ALTRO information.
void SetFALTROUsage(Bool_t val)
void SetNPedSamples(Int_t val)
void SetOption(const Option_t *opt)
void AddDigit(TClonesArray *digitsArr, Int_t id, Int_t lowGain, const std::vector< AliCaloBunchInfo > &bunchlist, Float_t amp, Float_t time, Float_t chi2, Int_t ndf)
AliCaloRawAnalyzer * fRawAnalyzer
e.g. for sample selection for fits.
void SetNoiseThreshold(Int_t val)
Double_t chi2
Definition: AnalyzeLaser.C:7
void SetTimeMin(Float_t t)
Bool_t GetRemoveBadChannels() const
Int_t fNoiseThreshold
Threshold to consider signal or noise.
AliAltroMapping * fMapping[4]
What is the array size?
Int_t GetNPedSamples() const
void SetTimeMax(Float_t t)
Bool_t UseFALTRO() const
pedestal/bad map monitoring and calibration tools
void Raw2Digits(AliRawReader *reader, TClonesArray *digitsArr, const AliCaloCalibPedestal *pedbadmap, TClonesArray *digitsTRG=0x0, TClonesArray *trgData=0x0)
void SetFittingAlgorithm(Int_t val)
void SetL1PhaseUsage(Bool_t val)
AliEMCALTriggerRawDigitMaker * fTriggerRawDigitMaker
Trigger raw digit info.
Handling of raw data.
fitAlgorithm
< fitting alorithms tag numbers
EMCal trigger raw digits maker.
EMCal geometry, singleton.
Bool_t fUseFALTRO
Use FALTRO and pass it to the digits.
Int_t GetNoiseThreshold() const
Float_t fTimeMax
Maximum threshold for the time of the signal.