]>
Commit | Line | Data |
---|---|---|
a9e2aefa | 1 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
2 | * See cxx source for full Copyright notice */ | |
30178c30 | 3 | |
a9e2aefa | 4 | /* $Id$ */ |
30178c30 | 5 | // Revision of includes 07/05/2004 |
6 | ||
a9e2aefa | 7 | #ifndef ALIMUONTRIGGERDECISION_H |
8 | #define ALIMUONTRIGGERDECISION_H | |
30178c30 | 9 | |
a9e2aefa | 10 | //////////////////////////////////////////////// |
11 | // MUON Trigger Decision Class // | |
12 | //////////////////////////////////////////////// | |
30178c30 | 13 | |
14 | #include <TObject.h> | |
15 | ||
0693bbb3 | 16 | class TClonesArray; |
a9e2aefa | 17 | |
52c9bc11 | 18 | class AliLoader; |
52c9bc11 | 19 | class AliMUONData; |
20 | class AliMUON; | |
8210cb40 | 21 | class AliRawReader; |
52c9bc11 | 22 | |
a9e2aefa | 23 | |
30178c30 | 24 | class AliMUONTriggerDecision : public TObject |
25 | { | |
a9e2aefa | 26 | public: |
ce3e25a8 | 27 | AliMUONTriggerDecision(AliLoader* loader, Int_t iprint = 0, AliMUONData* data = 0); // constructor |
30178c30 | 28 | AliMUONTriggerDecision(); // constructor |
a9e2aefa | 29 | ~AliMUONTriggerDecision(); // destructor |
30 | ||
52c9bc11 | 31 | AliMUONData* GetMUONData() {return fMUONData;} |
a9e2aefa | 32 | void Trigger(); |
33 | void ResetBit(); | |
34 | void SetBit(); | |
35 | void SetBitUpDownY(); | |
36 | ||
37 | void TrigX(Int_t ch1q[16], Int_t ch2q[16], Int_t ch3q[32], Int_t ch4q[32], | |
38 | Int_t coinc44, Int_t minDevStrip[5], Int_t minDev[5]); | |
39 | void Sort2x5(Int_t dev1[6], Int_t dev2[6], | |
40 | Int_t minDev[6], Int_t &dev1GTdev2); | |
41 | void TrigY(Int_t y1[16], Int_t y2[16], Int_t y3[16], Int_t y4[16], | |
42 | Int_t y3u[16], Int_t y3d[16], Int_t y4u[16], Int_t y4d[16], | |
43 | Int_t x2m, Int_t x2ud, Int_t orMud[2], Int_t resetMid, | |
44 | Int_t coinc44, Int_t coordY[5]); | |
45 | void LocalTrigger(Int_t icirc, Int_t minDevStrip[5], | |
46 | Int_t minDev[5], Int_t coordY[5], | |
47 | Int_t &iTrigger); | |
48 | void GlobalTrigger(); | |
49 | ||
8210cb40 | 50 | void Digits2Trigger(); // main function for digitizer |
ce3e25a8 | 51 | |
8210cb40 | 52 | void Trigger2Trigger();// main function for reconstructor |
53 | ||
54 | void Trigger2Trigger(AliRawReader* rawReader); // for raw data reader purpose | |
ce3e25a8 | 55 | |
56 | void ClearDigits(); | |
57 | TClonesArray* Digits(Int_t DetectionPlane); | |
58 | void AddDigit(Int_t id, Int_t* tracks, Int_t* charges, Int_t* digits); | |
52c9bc11 | 59 | |
a9e2aefa | 60 | // print-debug |
61 | void PrintBitPatXInput(Int_t icirc); | |
62 | void PrintBitPatYInput(Int_t icirc); | |
63 | void PrintLocalOutput(Int_t minDevStrip[5], Int_t minDev[5], | |
64 | Int_t coordY[5]); | |
65 | ||
66 | // return member data information | |
30178c30 | 67 | Int_t GetITrigger(Int_t icirc) const; |
68 | Int_t GetStripX11(Int_t icirc) const; | |
69 | Int_t GetDev(Int_t icirc) const; | |
70 | Int_t GetStripY11(Int_t icirc) const; | |
71 | void GetLutOutput(Int_t icirc, Int_t lpt[2], Int_t hpt[2], Int_t apt[2]) const; | |
a9e2aefa | 72 | void GetGlobalTrigger(Int_t singlePlus[3], Int_t singleMinus[3], |
73 | Int_t singleUndef[3], Int_t pairUnlike[3], | |
30178c30 | 74 | Int_t pairLike[3]) const; |
a9e2aefa | 75 | |
52c9bc11 | 76 | |
8210cb40 | 77 | |
a9e2aefa | 78 | |
79 | ClassDef(AliMUONTriggerDecision,1) // Trigger Decision class | |
80 | ||
81 | protected: | |
e3ea1889 | 82 | AliMUONTriggerDecision(const AliMUONTriggerDecision& rhs); |
83 | AliMUONTriggerDecision& operator=(const AliMUONTriggerDecision& rhs); | |
84 | ||
ecfa008b | 85 | Int_t fDebug; // print option |
a9e2aefa | 86 | |
87 | // Global Trigger information [0] : Low pt, [1] : High pt, [2] : All pt | |
88 | Int_t fGlobalSinglePlus[3]; // tot num of single plus | |
89 | Int_t fGlobalSingleMinus[3]; // tot num of single minus | |
90 | Int_t fGlobalSingleUndef[3]; // tot num of single undefined | |
91 | Int_t fGlobalPairUnlike[3]; // tot num of unlike-sign pairs | |
92 | Int_t fGlobalPairLike[3]; // tot num of like-sign pairs | |
93 | ||
94 | // Local Trigger information | |
ecfa008b | 95 | Int_t fTrigger[234]; // fTrigger = 0 : no trigger, 1 : trigger |
a9e2aefa | 96 | Int_t fStripX11[234]; // X strip in MC11 which triggers |
ecfa008b | 97 | Int_t fDev[234]; // deviation which triggers |
a9e2aefa | 98 | Int_t fStripY11[234]; // Y strip in MC11 which triggers |
99 | Int_t fLutLpt[234][2]; // Local Trigger info Low pt | |
100 | Int_t fLutHpt[234][2]; // Local Trigger info High pt | |
101 | Int_t fLutApt[234][2]; // Local Trigger info All pt | |
102 | ||
103 | // bit pattern | |
104 | Int_t fXbit11[234][16]; // bit pattern XM11 | |
105 | Int_t fXbit12[234][16]; // bit pattern XM12 | |
106 | Int_t fXbit21[234][32]; // bit pattern XM21 | |
107 | Int_t fXbit22[234][32]; // bit pattern XM22 | |
108 | Int_t fYbit11[234][16]; // bit pattern YM11 | |
109 | Int_t fYbit12[234][16]; // bit pattern YM12 | |
110 | Int_t fYbit21[234][16]; // bit pattern YM21 | |
111 | Int_t fYbit22[234][16]; // bit pattern YM22 | |
112 | ||
113 | Int_t fYbit21U[234][16]; // bit pattern YM21 Up | |
114 | Int_t fYbit22U[234][16]; // bit pattern YM22 Up | |
115 | Int_t fYbit21D[234][16]; // bit pattern YM21 Down | |
116 | Int_t fYbit22D[234][16]; // bit pattern YM22 Down | |
117 | ||
52c9bc11 | 118 | |
119 | AliLoader* fLoader; //! alice loader | |
120 | TObjArray* fTriggerCircuit; //! List of Trigger Circuit | |
ce3e25a8 | 121 | TObjArray* fDigits; // temp array for digits (both cathodes !) for trigger |
122 | ||
52c9bc11 | 123 | AliMUONData* fMUONData; //! Data container for MUON subsystem |
124 | AliMUON* fMUON; //! pointer to MUON | |
125 | ||
a9e2aefa | 126 | // ??? |
127 | // TClonesArray* fLocalTriggers; // Local Triggers | |
128 | // Int_t fNLocalTriggers; // Number of Local Triggers | |
129 | ||
130 | }; | |
131 | #endif | |
132 | ||
133 | ||
134 | ||
135 | ||
136 | ||
137 | ||
138 |