AliRoot Core  edcc906 (edcc906)
AliVCaloTrigger.h
Go to the documentation of this file.
1 #ifndef ALIVCALOTRIGGER_H
2 #define ALIVCALOTRIGGER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 #include <TNamed.h>
7 
13 class AliVCaloTrigger : public TNamed
14 {
15 public:
16 
17  AliVCaloTrigger(): TNamed() {;}
18  AliVCaloTrigger(const char* name, const char* title) : TNamed(name, title) {;}
19  AliVCaloTrigger(const AliVCaloTrigger& ctrig);
20  virtual ~AliVCaloTrigger() {;}
22 
23  virtual Bool_t IsEmpty() = 0;
24  virtual void Reset() = 0;
25  virtual void Allocate(Int_t /*size*/) = 0;
26  virtual void DeAllocate() = 0;
27 
28  virtual Bool_t Add(Int_t /*col*/, Int_t /*row*/,
29  Float_t /*amp*/, Float_t /*time*/,
30  Int_t* /*trgtimes*/, Int_t /*ntrgtimes*/,
31  Int_t /*trgts*/, Int_t /*trgbits*/) = 0;
32 
33  virtual Bool_t Add(Int_t /*col*/, Int_t /*row*/,
34  Float_t /*amp*/, Float_t /*time*/,
35  Int_t* /*trgtimes*/, Int_t /*ntrgtimes*/,
36  Int_t /*trgts*/, Int_t /*subr*/, Int_t /*trgbit*/)= 0;
37 
38 
39  virtual void SetL1Threshold(Int_t /*i*/, Int_t /*thr*/) = 0;
40  virtual void SetL1Threshold(Int_t /*i*/, Int_t /*j*/, Int_t /*th*/)= 0;
41 
42  virtual void SetL1V0(const Int_t* /*v*/) = 0;
43  virtual void SetL1V0(Int_t /*i*/, const Int_t* /*v*/) = 0;
44 
45  virtual void SetL1FrameMask(Int_t /*m*/) = 0;
46  virtual void SetL1FrameMask(Int_t /*i*/, Int_t /*m*/) = 0;
47 
53  virtual void GetPosition(Int_t& /*col*/, Int_t& /*row*/) const = 0;
54 
59  virtual void GetAmplitude(Float_t& /*amp*/) const = 0;
60  virtual void GetTime(Float_t& /*time*/) const = 0;
61 
72  virtual void GetTriggerBits(Int_t& /*bits*/) const = 0;
73 
82  virtual void GetNL0Times(Int_t& /*ntimes*/) const = 0;
83 
88  virtual void GetL0Times(Int_t* /*times*/) const = 0;
89 
94  virtual Int_t GetEntries() const = 0;
95 
100  virtual void GetL1TimeSum(Int_t& /*timesum*/) const = 0;
101 
106  virtual Int_t GetL1TimeSum() const = 0;
107 
108  virtual void GetL1SubRegion( Int_t& /*subreg*/) const = 0;
109  virtual Int_t GetL1SubRegion() const = 0;
110 
111  virtual Int_t GetL1Threshold(Int_t /*i*/) const = 0;
112  virtual Int_t GetL1Threshold(Int_t /*i*/, Int_t /*j*/) const = 0;
113 
114  virtual Int_t GetL1V0(Int_t /*i*/) const = 0;
115  virtual Int_t GetL1V0(Int_t /*i*/, Int_t /*j*/) const = 0;
116 
117  virtual Int_t GetL1FrameMask() const = 0;
118  virtual Int_t GetL1FrameMask(Int_t /*i*/) const = 0;
119 
120  virtual Int_t GetMedian(Int_t /*i*/) const = 0;
121 
122  virtual Int_t GetTriggerBitWord() const = 0;
123  virtual void GetTriggerBitWord(Int_t& /*bw*/ ) const = 0;
124 
129  virtual Bool_t Next() = 0;
130  virtual void Copy(TObject& obj) const ;
131 
132  virtual void Print(const Option_t* /*opt*/) const = 0;
133 
134 private:
135 
137  ClassDef(AliVCaloTrigger, 0)
139 };
140 #endif //ALIVCALOTRIGGER_H
141 
virtual void Allocate(Int_t)=0
virtual Int_t GetL1FrameMask() const =0
virtual void GetL0Times(Int_t *) const =0
Get level0 times for the current L0 patch.
virtual Bool_t IsEmpty()=0
AliVCaloTrigger & operator=(const AliVCaloTrigger &ctrig)
virtual Int_t GetL1V0(Int_t) const =0
virtual void DeAllocate()=0
Virtual class to access calorimeter (EMCAL, PHOS, PMD, FMD) trigger data.
virtual Int_t GetL1Threshold(Int_t) const =0
virtual void Print(const Option_t *) const =0
virtual Int_t GetEntries() const =0
Get the number of entries in the trigger data.
virtual Bool_t Next()=0
Forward to next trigger entry (fastor / L0 patch)
virtual void SetL1V0(const Int_t *)=0
virtual Int_t GetL1SubRegion() const =0
virtual void GetTriggerBits(Int_t &) const =0
Get the trigger bits for a given fastor position.
AliVCaloTrigger(const char *name, const char *title)
virtual Int_t GetL1TimeSum() const =0
Get the L1 time sums (L1 ADC values) for the current fastor.
virtual void SetL1FrameMask(Int_t)=0
virtual void GetNL0Times(Int_t &) const =0
Get the number of L0 times for the current patch.
virtual Int_t GetMedian(Int_t) const =0
virtual void SetL1Threshold(Int_t, Int_t)=0
virtual void GetPosition(Int_t &, Int_t &) const =0
Access to position of the current fastor channel.
virtual void GetAmplitude(Float_t &) const =0
Access to L0-amplitude of the current fastor channel.
virtual void GetTime(Float_t &) const =0
virtual Bool_t Add(Int_t, Int_t, Float_t, Float_t, Int_t *, Int_t, Int_t, Int_t)=0
virtual ~AliVCaloTrigger()
virtual void Reset()=0
virtual void Copy(TObject &obj) const
virtual Int_t GetTriggerBitWord() const =0