AliRoot Core  3dc7879 (3dc7879)
AliEMCALTriggerMapping.h
Go to the documentation of this file.
1 #ifndef ALIEMCALTRIGGERMAPPING_H
2 #define ALIEMCALTRIGGERMAPPING_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
17 
18 #ifndef ROOT_TObject
19 # include "TObject.h"
20 #endif
21 
22 class AliEMCALGeometry;
23 
24 class AliEMCALTriggerMapping : public TObject
25 {
26 public:
28  AliEMCALTriggerMapping(Int_t ntru, const AliEMCALGeometry* geo) : fNTRU(ntru), fGeometry(geo) {}
30 
31  virtual Bool_t GetAbsFastORIndexFromTRU(Int_t iTRU, Int_t iADC, Int_t& id) const = 0;
32  virtual Bool_t GetAbsFastORIndexFromPositionInTRU(Int_t iTRU, Int_t iEta, Int_t iPhi, Int_t& id) const = 0;
33  virtual Bool_t GetAbsFastORIndexFromPositionInSM(Int_t iSM, Int_t iEta, Int_t iPhi, Int_t& id) const = 0;
34  virtual Bool_t GetAbsFastORIndexFromPositionInEMCAL(Int_t iEta, Int_t iPhi, Int_t& id) const = 0;
35  virtual Bool_t GetAbsFastORIndexFromPHOSSubregion( Int_t iPHOS, Int_t& id) const = 0;
36  virtual Bool_t GetTRUFromAbsFastORIndex(Int_t id, Int_t& iTRU, Int_t& iADC) const = 0;
37  virtual Bool_t GetPositionInTRUFromAbsFastORIndex(Int_t id, Int_t& iTRU, Int_t& iEta, Int_t& iPhi) const = 0;
38  virtual Bool_t GetPositionInSMFromAbsFastORIndex(Int_t id, Int_t& iSM, Int_t& iEta, Int_t& iPhi) const = 0;
39  virtual Bool_t GetPositionInEMCALFromAbsFastORIndex(Int_t id, Int_t& iEta, Int_t& iPhi) const = 0;
40  virtual Bool_t GetFastORIndexFromCellIndex(Int_t id, Int_t& idx) const = 0;
41  virtual Bool_t GetCellIndexFromFastORIndex(Int_t id, Int_t idx[4]) const = 0;
42  virtual Bool_t GetTRUIndexFromSTUIndex(Int_t id, Int_t& idx, Int_t detector) const = 0;
43  virtual Bool_t GetTRUIndexFromOnlineIndex(Int_t id, Int_t& idx) const = 0;
44  virtual Int_t GetTRUIndexFromOnlineHwAdd(Int_t hwAdd, Int_t ddl, Int_t sm) const = 0;
45  virtual Bool_t GetOnlineIndexFromTRUIndex(Int_t id, Int_t& idx) const = 0;
46  virtual Bool_t GetFastORIndexFromL0Index(Int_t iTRU, Int_t id, Int_t idx[], Int_t size) const = 0;
47  virtual Int_t GetTRUIndexFromSTUIndex( Int_t id, Int_t detector) const = 0;
48  virtual Int_t GetTRUIndexFromOnlineIndex(Int_t id) const = 0;
49  virtual Int_t GetOnlineIndexFromTRUIndex(Int_t id) const = 0;
50 
51 
52  virtual Bool_t GetSTUIndexFromTRUIndex( Int_t id, Int_t& idx ) const = 0 ;
53  virtual Int_t GetSTUIndexFromTRUIndex( Int_t id ) const = 0 ;
54  virtual Bool_t GetTRUFromSTU(Int_t iTRU, Int_t iADC, Int_t& oTRU, Int_t& oADC, Int_t detector) const = 0 ;
55  virtual Bool_t GetSTUFromTRU(Int_t iTRU, Int_t iADC, Int_t& oTRU, Int_t& oADC ) const = 0 ;
56  virtual Bool_t GetTRUFromSTU(Int_t iTRU, Int_t ieta, Int_t iphi, Int_t& oTRU, Int_t& oeta, Int_t& ophi, Int_t detector) const = 0 ;
57  virtual Bool_t GetSTUFromTRU(Int_t iTRU, Int_t ieta, Int_t iphi, Int_t& oTRU, Int_t& oeta, Int_t& ophi ) const = 0 ;
58 
59 
60  virtual void GetNTRU(Int_t& n) { n = fNTRU ; }
61  virtual Int_t GetNTRU() { return fNTRU ; }
62 
63 protected:
64  Int_t fNTRU;
66 
67 private:
70 
72  ClassDef(AliEMCALTriggerMapping,1) ;
74 
75 };
76 
77 #endif
78 
virtual Bool_t GetCellIndexFromFastORIndex(Int_t id, Int_t idx[4]) const =0
virtual Bool_t GetAbsFastORIndexFromPositionInEMCAL(Int_t iEta, Int_t iPhi, Int_t &id) const =0
virtual Bool_t GetSTUFromTRU(Int_t iTRU, Int_t iADC, Int_t &oTRU, Int_t &oADC) const =0
virtual Bool_t GetFastORIndexFromCellIndex(Int_t id, Int_t &idx) const =0
virtual Bool_t GetPositionInEMCALFromAbsFastORIndex(Int_t id, Int_t &iEta, Int_t &iPhi) const =0
virtual Bool_t GetTRUIndexFromSTUIndex(Int_t id, Int_t &idx, Int_t detector) const =0
AliEMCALTriggerMapping(Int_t ntru, const AliEMCALGeometry *geo)
AliEMCALTriggerMapping & operator=(const AliEMCALTriggerMapping &rhs)
virtual Bool_t GetTRUFromSTU(Int_t iTRU, Int_t iADC, Int_t &oTRU, Int_t &oADC, Int_t detector) const =0
virtual Bool_t GetAbsFastORIndexFromPHOSSubregion(Int_t iPHOS, Int_t &id) const =0
virtual Bool_t GetPositionInSMFromAbsFastORIndex(Int_t id, Int_t &iSM, Int_t &iEta, Int_t &iPhi) const =0
virtual Bool_t GetOnlineIndexFromTRUIndex(Int_t id, Int_t &idx) const =0
virtual Bool_t GetTRUFromAbsFastORIndex(Int_t id, Int_t &iTRU, Int_t &iADC) const =0
virtual Bool_t GetAbsFastORIndexFromPositionInSM(Int_t iSM, Int_t iEta, Int_t iPhi, Int_t &id) const =0
Trigger mapping methods, base class.
virtual void GetNTRU(Int_t &n)
virtual Bool_t GetPositionInTRUFromAbsFastORIndex(Int_t id, Int_t &iTRU, Int_t &iEta, Int_t &iPhi) const =0
virtual Int_t GetTRUIndexFromOnlineHwAdd(Int_t hwAdd, Int_t ddl, Int_t sm) const =0
virtual Bool_t GetAbsFastORIndexFromTRU(Int_t iTRU, Int_t iADC, Int_t &id) const =0
virtual Bool_t GetFastORIndexFromL0Index(Int_t iTRU, Int_t id, Int_t idx[], Int_t size) const =0
virtual Bool_t GetTRUIndexFromOnlineIndex(Int_t id, Int_t &idx) const =0
virtual Bool_t GetAbsFastORIndexFromPositionInTRU(Int_t iTRU, Int_t iEta, Int_t iPhi, Int_t &id) const =0
virtual Bool_t GetSTUIndexFromTRUIndex(Int_t id, Int_t &idx) const =0
const AliEMCALGeometry * fGeometry
EMCal geometry, singleton.