1 #ifndef ALIEMCALTRIGGERDATA_H
2 #define ALIEMCALTRIGGERDATA_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 EMCal trigger data container: can be used independently of the data stream (simulation or raw data)
8 for persistency of produced data presently stored in TTreeD
9 Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
12 #include "AliEMCALTriggerTypes.h"
16 #include <TClonesArray.h>
18 class AliEMCALTriggerData : public TObject
22 AliEMCALTriggerData();
23 virtual ~AliEMCALTriggerData();
25 virtual void SetMode(Int_t i) {fMode = i;}
27 virtual void SetL0Trigger( Int_t i, Int_t j, Int_t k) { fL0Trigger[i][j] = k; }
28 virtual void SetL0Region( Int_t i, const Int_t**& region);
29 virtual void SetL1Region( Int_t i, Int_t**& region);
31 virtual void SetPatches(TriggerType_t type, Int_t i, const TClonesArray& patches);
33 virtual void SetL1GammaThreshold(Int_t v) {fL1GammaThreshold = v;}
34 virtual void SetL1JetThreshold( Int_t v) { fL1JetThreshold = v;}
36 virtual void GetL0Trigger( Int_t i, Int_t j, Int_t& k ) const { k = fL0Trigger[i][j];}
37 virtual Int_t GetL0Trigger( Int_t i, Int_t j ) const {return fL0Trigger[i][j];}
39 virtual void GetPatches(TriggerType_t type, Int_t i, TClonesArray& patches) const;
40 virtual TClonesArray* GetPatches(TriggerType_t type, Int_t i ) const;
42 virtual void GetL1Region( Int_t i, Int_t arr[][64] ) const;
44 virtual Int_t GetL1GammaThreshold() const {return fL1GammaThreshold;}
45 virtual Int_t GetL1JetThreshold() const {return fL1JetThreshold;}
47 virtual Int_t GetMode() const {return fMode;}
49 virtual void Scan() const;
54 AliEMCALTriggerData(const AliEMCALTriggerData& rhs); // NOT implemented
55 AliEMCALTriggerData& operator=(const AliEMCALTriggerData& rhs); // NOT implemented
59 Int_t fL0Trigger[2][32];
61 TClonesArray* fL0Patches[2]; // array of patches
63 Int_t fL0Region[32][24][4]; // from F-ALTRO data only
65 TClonesArray* fL1GammaPatches[2]; // array of patches
66 TClonesArray* fL1JetPatches[2]; // array of patches
68 Int_t fL1Region[2][48][64]; // STU FastOR
70 Int_t fL1GammaThreshold; //
71 Int_t fL1JetThreshold; //
73 ClassDef(AliEMCALTriggerData,1)