AliRoot Core  3dc7879 (3dc7879)
AliESDCaloTrigger.h
Go to the documentation of this file.
1 #ifndef ALIESDCALOTRIGGER_H
2 #define ALIESDCALOTRIGGER_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 #include "AliVCaloTrigger.h"
8 
9 class TArrayI;
10 
18 {
19 public:
22  virtual ~AliESDCaloTrigger();
23 
25 
26  Bool_t IsEmpty() {return (fNEntries == 0);}
27 
28  virtual void Reset() {fCurrent = -1;}
29 
30  void Allocate(Int_t size);
31  void DeAllocate( );
32 
33  Bool_t Add(Int_t col, Int_t row, Float_t amp, Float_t time, Int_t trgtimes[], Int_t ntrgtimes, Int_t trgts, Int_t trgbits);
34  Bool_t Add(Int_t col, Int_t row, Float_t amp, Float_t time, Int_t trgtimes[], Int_t ntrgtimes, Int_t trgts, Int_t subra, Int_t trgbits);
35 
36  void SetL1Threshold(Int_t i, Int_t thr) {fL1Threshold[i] = thr;}
37  void SetL1Threshold(Int_t i, Int_t j, Int_t thr) {if (i) fL1DCALThreshold[j] = thr; else fL1Threshold[j] = thr;}
38 
39  void SetL1V0(const Int_t* v) {for (int i = 0; i < 2; i++) fL1V0[i] = v[i];}
40  void SetL1V0(Int_t i, const Int_t* v) {
41  if (i) {for (int j = 0; j < 2; j++) fL1DCALV0[j] = v[j];} else {for (int j = 0; j < 2; j++) fL1V0[j] = v[j];}
42  }
43 
44  void SetL1FrameMask(Int_t m) {fL1FrameMask = m;}
45  void SetL1FrameMask(Int_t i, Int_t m) {if (i) fL1DCALFrameMask = m; else fL1FrameMask = m;}
46 
47  void SetTriggerBitWord(Int_t w) {fTriggerBitWord = w;}
48  void SetMedian(Int_t i, Int_t m) {fMedian[i] = m;}
49 
55  void GetPosition( Int_t& col, Int_t& row ) const;
56 
61  void GetAmplitude( Float_t& amp ) const;
62 
63  void GetTime( Float_t& time ) const;
64 
75  void GetTriggerBits( Int_t& bits ) const;
76 
85  void GetNL0Times( Int_t& ntimes ) const;
86 
91  void GetL0Times( Int_t times[] ) const;
92 
97  Int_t GetEntries( ) const {return fNEntries;}
98 
103  void GetL1TimeSum( Int_t& timesum ) const;
104 
109  Int_t GetL1TimeSum( ) const;
110 
111  void GetL1SubRegion( Int_t& subreg ) const;
112  Int_t GetL1SubRegion( ) const;
113 
114  Int_t GetL1Threshold( Int_t i ) const {return fL1Threshold[i];}
115  Int_t GetL1Threshold( Int_t i, Int_t j ) const {return ((i)?fL1DCALThreshold[j]:fL1Threshold[j]);}
116 
117  Int_t GetL1V0( Int_t i ) const {return fL1V0[i];}
118  Int_t GetL1V0( Int_t i, Int_t j ) const {return ((i)?fL1DCALV0[j]:fL1V0[j]);}
119 
120  Int_t GetL1FrameMask( ) const {return fL1FrameMask;}
121  Int_t GetL1FrameMask( Int_t i ) const {return ((i)?fL1DCALFrameMask:fL1FrameMask);}
122 
123  Int_t GetMedian( Int_t i ) const {return fMedian[i];}
124 
125  Int_t GetTriggerBitWord( ) const {return fTriggerBitWord;}
126  void GetTriggerBitWord( Int_t& bw ) const {bw = fTriggerBitWord;}
127 
132  virtual Bool_t Next();
133 
134  virtual void Copy(TObject& obj) const;
135 
136  virtual void Print(const Option_t* opt) const;
137 
138 private:
139 
140  Int_t fNEntries;
141  Int_t fCurrent;
142 
144  Int_t* fColumn; // [fNEntries]
145 
147  Int_t* fRow; // [fNEntries]
148 
150  Float_t* fAmplitude; // [fNEntries]
151 
153  Float_t* fTime; // [fNEntries]
154 
156  Int_t* fNL0Times; // [fNEntries]
157 
159  TArrayI* fL0Times; //
160 
162  Int_t* fL1TimeSum; // [fNEntries]
163 
169  Int_t* fTriggerBits; // [fNEntries]
170 
171  Int_t fL1Threshold[4];
172  Int_t fL1V0[2];
173  Int_t fL1FrameMask;
174 
175  Int_t fL1DCALThreshold[4];
176  Int_t* fL1SubRegion; // [fNEntries]
178  Int_t fMedian[2];
180  Int_t fL1DCALV0[2];
181 
183  ClassDef(AliESDCaloTrigger, 8)
185 };
186 #endif
187 
Int_t GetL1V0(Int_t i, Int_t j) const
void SetL1Threshold(Int_t i, Int_t j, Int_t thr)
void GetAmplitude(Float_t &amp) const
Access to L0-amplitude of the current fastor channel.
virtual void Copy(TObject &obj) const
Bool_t Add(Int_t col, Int_t row, Float_t amp, Float_t time, Int_t trgtimes[], Int_t ntrgtimes, Int_t trgts, Int_t trgbits)
void SetL1V0(Int_t i, const Int_t *v)
void GetL0Times(Int_t times[]) const
Get level0 times for the current L0 patch.
Int_t fCurrent
Index of the current entry.
void GetTriggerBits(Int_t &bits) const
Get the trigger bits for a given fastor position.
virtual Bool_t Next()
Forward to next trigger entry (fastor / L0 patch)
Int_t fL1V0[2]
L1 threshold components.
Int_t fL1DCALV0[2]
L1 threshold components.
Int_t GetMedian(Int_t i) const
Int_t fTriggerBitWord
Trigger bit word.
Int_t GetTriggerBitWord() const
Int_t fL1DCALFrameMask
Validation flag for L1 data.
Int_t GetL1Threshold(Int_t i) const
void GetPosition(Int_t &col, Int_t &row) const
Access to position of the current fastor channel.
void Allocate(Int_t size)
Virtual class to access calorimeter (EMCAL, PHOS, PMD, FMD) trigger data.
void SetMedian(Int_t i, Int_t m)
Int_t fNEntries
Number of entries in the trigger object (usually mapped to fastor channels)
Int_t GetEntries() const
Get the number of entries in the trigger data.
void SetTriggerBitWord(Int_t w)
Int_t fL1FrameMask
Validation flag for L1 data.
Int_t GetL1TimeSum() const
Get the L1 time sums (L1 ADC values) for the current fastor.
void SetL1FrameMask(Int_t m)
Container with calorimeter trigger information in the ESD event.
void SetL1FrameMask(Int_t i, Int_t m)
Int_t fL1DCALThreshold[4]
L1 thresholds from raw data.
Int_t fL1Threshold[4]
L1 thresholds from raw data.
virtual void Print(const Option_t *opt) const
Int_t GetL1V0(Int_t i) const
const int ntimes
Definition: kNNSpeed.C:14
AliESDCaloTrigger & operator=(const AliESDCaloTrigger &ctrig)
Int_t GetL1SubRegion() const
void GetTriggerBitWord(Int_t &bw) const
virtual void Reset()
void SetL1V0(const Int_t *v)
void SetL1Threshold(Int_t i, Int_t thr)
void GetTime(Float_t &time) const
Int_t GetL1Threshold(Int_t i, Int_t j) const
void GetNL0Times(Int_t &ntimes) const
Get the number of L0 times for the current patch.
Int_t GetL1FrameMask(Int_t i) const
Int_t GetL1FrameMask() const
Int_t fMedian[2]
Background median.