AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONLocalTrigger.h
Go to the documentation of this file.
1 #ifndef ALIMUONLOCALTRIGGER_H
2 #define ALIMUONLOCALTRIGGER_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 /* $Id$ */
8 // Revision of includes 07/05/2004
9 
13 // Author Ph. Crochet
14 
15 #include <TObject.h>
17 
18 class AliMUONLocalStruct;
19 class TArrayS;
20 
21 class AliMUONLocalTrigger : public TObject {
22  public:
24  AliMUONLocalTrigger(const AliMUONLocalTrigger& rhs); // copy constructor !
25  virtual ~AliMUONLocalTrigger();
27 
28  // getter methods
29  //
31  Int_t LoCircuit() const {return fLoCircuit;}
33  Int_t LoStripX() const {return fLoStripX;}
35  Int_t LoDev() const {return fLoDev;}
37  Int_t LoSdev() const {return fLoSdev;}
39  Int_t LoTrigY() const {return fLoTrigY;}
41  Int_t LoStripY() const {return fLoStripY;}
43  Int_t LoLpt() const {return fLoLpt;}
45  Int_t LoHpt() const {return fLoHpt;}
46 
48  UShort_t GetX1Pattern() const {return fX1Pattern;}
50  UShort_t GetX2Pattern() const {return fX2Pattern;}
52  UShort_t GetX3Pattern() const {return fX3Pattern;}
54  UShort_t GetX4Pattern() const {return fX4Pattern;}
56  void GetXPattern(TArrayS& array) const;
57 
58 
60  UShort_t GetY1Pattern() const {return fY1Pattern;}
62  UShort_t GetY2Pattern() const {return fY2Pattern;}
64  UShort_t GetY3Pattern() const {return fY3Pattern;}
66  UShort_t GetY4Pattern() const {return fY4Pattern;}
68  void GetYPattern(TArrayS& array) const;
69 
70  Char_t GetLoDecision() const;
71 
72  Int_t GetDeviation() const;
73  void SetDeviation(Int_t deviation);
74 
76  Bool_t IsTrigX() const;
78  Bool_t IsTrigY() const;
79 
82 
85 
86  // setter methods
87  //
89  void SetLoCircuit(Int_t loCir) {fLoCircuit = loCir;}
91  void SetLoStripX(Int_t loStrX) {fLoStripX = loStrX;}
93  void SetLoDev(Int_t loDev) {fLoDev = loDev;}
95  void SetLoSdev(Int_t loSdev) {fLoSdev = loSdev;}
97  void SetLoTrigY(Int_t loTrigY) {fLoTrigY = loTrigY;}
99  void SetLoStripY(Int_t loStrY) {fLoStripY = loStrY;}
101  void SetLoLpt(Int_t loLpt) {fLoLpt = loLpt;}
103  void SetLoHpt(Int_t loHpt) {fLoHpt = loHpt;}
104 
106  void SetX1Pattern(UShort_t pat) {fX1Pattern = pat;}
108  void SetX2Pattern(UShort_t pat) {fX2Pattern = pat;}
110  void SetX3Pattern(UShort_t pat) {fX3Pattern = pat;}
112  void SetX4Pattern(UShort_t pat) {fX4Pattern = pat;}
113 
115  void SetY1Pattern(UShort_t pat) {fY1Pattern = pat;}
117  void SetY2Pattern(UShort_t pat) {fY2Pattern = pat;}
119  void SetY3Pattern(UShort_t pat) {fY3Pattern = pat;}
121  void SetY4Pattern(UShort_t pat) {fY4Pattern = pat;}
122 
123  void SetLocalStruct(Int_t loCircuit, AliMUONLocalStruct& localStruct);
124  void SetLocalStruct(Int_t loCircuit, const AliMUONRawStreamTriggerHP::AliLocalStruct& localStruct);
125 
126  Bool_t IsNull() const;
127 
128  virtual void Print(Option_t* opt="") const;
129 
130  virtual const char* GetName() const;
131 
133  void SetTriggerWithoutChamber(Int_t ich){ fTriggerWithoutChamber |= 1 << (3 - ich); }
134 
136  void SetNoHitInPlane(Int_t icath, Int_t ich){ fHitPatternFromResponse &= ~(1 << (7 - 4*icath - ich)); }
137 
138 private:
139  Int_t fLoCircuit;
140  Int_t fLoStripX;
141  Int_t fLoDev;
142  Int_t fLoSdev;
143  Int_t fLoTrigY;
144  Int_t fLoStripY;
145  Int_t fLoLpt;
146  Int_t fLoHpt;
147 
148  UShort_t fX1Pattern;
149  UShort_t fX2Pattern;
150  UShort_t fX3Pattern;
151  UShort_t fX4Pattern;
152 
153  UShort_t fY1Pattern;
154  UShort_t fY2Pattern;
155  UShort_t fY3Pattern;
156  UShort_t fY4Pattern;
157 
160 
161  ClassDef(AliMUONLocalTrigger,5) // reconstructed Local Trigger object
162 };
163 #endif
164 
165 
166 
167 
168 
169 
void GetYPattern(TArrayS &array) const
return Y pattern array
UShort_t fY2Pattern
Y strip pattern for chamber 12.
Light weight interface class to the local trigger card data.
AliMUONLocalTrigger & operator=(const AliMUONLocalTrigger &rhs)
Rawdata local card structure for trigger.
void SetY3Pattern(UShort_t pat)
Set Y strip pattern for chamber 21.
Int_t fLoStripY
Y strip in MT11.
void SetLoTrigY(Int_t loTrigY)
Set Trig Y.
Bool_t IsTrigY() const
Trigger response Y strips.
void SetLoStripX(Int_t loStrX)
Set X strip in MT11.
UShort_t fX2Pattern
X strip pattern for chamber 12.
Int_t fLoCircuit
Circuit number.
void SetLocalStruct(Int_t loCircuit, AliMUONLocalStruct &localStruct)
void SetX1Pattern(UShort_t pat)
Set X strip pattern for chamber 11.
Int_t fLoDev
Deviation.
void GetXPattern(TArrayS &array) const
return X pattern array
Int_t fLoHpt
High pt 0 : nothing, 1 : Minus, 2 : Plus, 3 : Undef.
UShort_t fY1Pattern
Y strip pattern for chamber 11.
Int_t LoLpt() const
Return Low pt.
UChar_t fTriggerWithoutChamber
Pattern of triggers after chamber removal.
void SetDeviation(Int_t deviation)
Int_t LoHpt() const
Return High p.
UShort_t GetX3Pattern() const
Return X strip pattern for chamber 21.
Int_t LoStripY() const
Return Y strip in MT11.
UShort_t GetY4Pattern() const
Return Y strip pattern for chamber 22.
TObjArray * array
Definition: AnalyzeLaser.C:12
UShort_t GetX4Pattern() const
Return X strip pattern for chamber 22.
void SetTriggerWithoutChamber(Int_t ich)
The board would provide a trigger even after removing chamber ich [0,3].
Int_t LoStripX() const
Return X strip in MT11.
void SetY4Pattern(UShort_t pat)
Set Y strip pattern for chamber 22.
UShort_t GetX1Pattern() const
Return X strip pattern for chamber 11.
void SetLoLpt(Int_t loLpt)
Set Low pt.
void SetNoHitInPlane(Int_t icath, Int_t ich)
Trigger algorithm did NOT find hit in the specified chamber and cathode.
virtual void Print(Option_t *opt="") const
void SetLoStripY(Int_t loStrY)
Set Y strip in MT11.
Int_t fLoLpt
Low pt 0 : nothing, 1 : Minus, 2 : Plus, 3 : Undef.
Reconstructed Local Trigger object.
virtual const char * GetName() const
UShort_t GetY1Pattern() const
Return Y strip pattern for chamber 11.
UShort_t GetY3Pattern() const
Return Y strip pattern for chamber 21.
void SetX3Pattern(UShort_t pat)
Set X strip pattern for chamber 21.
Int_t LoSdev() const
Return Sign of Deviation.
UShort_t GetHitPatternFromResponse() const
Hit pattern from the re-calculated trigger response after removing chambers one-by-one.
UShort_t fY4Pattern
Y strip pattern for chamber 22.
UShort_t GetY2Pattern() const
Return Y strip pattern for chamber 12.
UShort_t fX1Pattern
X strip pattern for chamber 11.
Int_t fLoStripX
X strip in MT11.
Int_t LoDev() const
Return Deviation.
UShort_t fHitPatternFromResponse
Fired plane according to re-computed repsonse.
void SetX2Pattern(UShort_t pat)
Set X strip pattern for chamber 12.
UShort_t fX4Pattern
X strip pattern for chamber 22.
void SetY2Pattern(UShort_t pat)
Set Y strip pattern for chamber 12.
Char_t GetLoDecision() const
void SetLoSdev(Int_t loSdev)
Set Sign of Deviation.
UShort_t fX3Pattern
X strip pattern for chamber 21.
Bool_t IsTrigX() const
Trigger response X strips.
UChar_t GetTriggerWithoutChamber() const
Triggers from the re-calculated trigger response after removing chambers one-by-one.
Int_t LoTrigY() const
Return Trig Y.
UShort_t GetX2Pattern() const
Return X strip pattern for chamber 12.
void SetLoDev(Int_t loDev)
Set Deviation.
void SetLoHpt(Int_t loHpt)
Set High pt.
UShort_t fY3Pattern
Y strip pattern for chamber 21.
Int_t fLoSdev
Sign of Deviation.
void SetX4Pattern(UShort_t pat)
Set X strip pattern for chamber 22.
void SetY1Pattern(UShort_t pat)
Set Y strip pattern for chamber 11.
Int_t LoCircuit() const
Return Circuit number.
void SetLoCircuit(Int_t loCir)
Set Circuit number.