Implemented the TObject::GetName() method (Laurent)
[u/mrichter/AliRoot.git] / MUON / AliMUONLocalTrigger.h
CommitLineData
a9e2aefa 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
30178c30 7/* $Id$ */
8// Revision of includes 07/05/2004
a9e2aefa 9
c1975ba7 10/// \ingroup trigger
692de412 11/// \class AliMUONLocalTrigger
12/// \brief Reconstructed Local Trigger object
5398f946 13// Author Ph. Crochet
692de412 14
a9e2aefa 15#include <TObject.h>
9016450b 16#include <TArrayS.h>
a9e2aefa 17
8d7dfec2 18class AliMUONLocalStruct;
19
a9e2aefa 20class AliMUONLocalTrigger : public TObject {
21 public:
402fb06e 22 AliMUONLocalTrigger();
d694b6f6 23 AliMUONLocalTrigger(const AliMUONLocalTrigger& rhs); // copy constructor !
71a2d3aa 24 virtual ~AliMUONLocalTrigger();
d694b6f6 25 AliMUONLocalTrigger& operator=(const AliMUONLocalTrigger& rhs);
e9b63742 26
ce6a659c 27 // getter methods
5398f946 28 //
29 /// Return Circuit number
b8fdc4dd 30 Int_t LoCircuit() const {return fLoCircuit;}
5398f946 31 /// Return X strip in MT11
b8fdc4dd 32 Int_t LoStripX() const {return fLoStripX;}
5398f946 33 /// Return Deviation
b8fdc4dd 34 Int_t LoDev() const {return fLoDev;}
8aac6cce 35 /// Return Sign of Deviation
36 Int_t LoSdev() const {return fLoSdev;}
37 /// Return Trig Y
38 Int_t LoTrigY() const {return fLoTrigY;}
5398f946 39 /// Return Y strip in MT11
b8fdc4dd 40 Int_t LoStripY() const {return fLoStripY;}
5398f946 41 /// Return Low pt
b8fdc4dd 42 Int_t LoLpt() const {return fLoLpt;}
5398f946 43 /// Return High p
b8fdc4dd 44 Int_t LoHpt() const {return fLoHpt;}
4a69b40c 45
5398f946 46 /// Return X strip pattern for chamber 11
6dc7fcdf 47 UShort_t GetX1Pattern() const {return fX1Pattern;}
5398f946 48 /// Return X strip pattern for chamber 12
6dc7fcdf 49 UShort_t GetX2Pattern() const {return fX2Pattern;}
5398f946 50 /// Return X strip pattern for chamber 21
6dc7fcdf 51 UShort_t GetX3Pattern() const {return fX3Pattern;}
5398f946 52 /// Return X strip pattern for chamber 22
6dc7fcdf 53 UShort_t GetX4Pattern() const {return fX4Pattern;}
9016450b 54 /// return X pattern array
55 void GetXPattern(TArrayS& array) const;
56
6dc7fcdf 57
5398f946 58 /// Return Y strip pattern for chamber 11
6dc7fcdf 59 UShort_t GetY1Pattern() const {return fY1Pattern;}
5398f946 60 /// Return Y strip pattern for chamber 12
6dc7fcdf 61 UShort_t GetY2Pattern() const {return fY2Pattern;}
5398f946 62 /// Return Y strip pattern for chamber 21
6dc7fcdf 63 UShort_t GetY3Pattern() const {return fY3Pattern;}
5398f946 64 /// Return Y strip pattern for chamber 22
6dc7fcdf 65 UShort_t GetY4Pattern() const {return fY4Pattern;}
9016450b 66 /// return Y pattern array
67 void GetYPattern(TArrayS& array) const;
6dc7fcdf 68
69 Char_t GetLoDecision();
70
ce6a659c 71 // setter methods
5398f946 72 //
73 /// Set Circuit number
ce6a659c 74 void SetLoCircuit(Int_t loCir) {fLoCircuit = loCir;}
5398f946 75 /// Set X strip in MT11
ce6a659c 76 void SetLoStripX(Int_t loStrX) {fLoStripX = loStrX;}
5398f946 77 /// Set Deviation
ce6a659c 78 void SetLoDev(Int_t loDev) {fLoDev = loDev;}
8aac6cce 79 /// Set Sign of Deviation
80 void SetLoSdev(Int_t loSdev) {fLoSdev = loSdev;}
81 /// Set Trig Y
82 void SetLoTrigY(Int_t loTrigY) {fLoTrigY = loTrigY;}
5398f946 83 /// Set Y strip in MT11
ce6a659c 84 void SetLoStripY(Int_t loStrY) {fLoStripY = loStrY;}
5398f946 85 /// Set Low pt
ce6a659c 86 void SetLoLpt(Int_t loLpt) {fLoLpt = loLpt;}
5398f946 87 /// Set High pt
ce6a659c 88 void SetLoHpt(Int_t loHpt) {fLoHpt = loHpt;}
94d65ea1 89
5398f946 90 /// Set X strip pattern for chamber 11
ce6a659c 91 void SetX1Pattern(UShort_t pat) {fX1Pattern = pat;}
5398f946 92 /// Set X strip pattern for chamber 12
ce6a659c 93 void SetX2Pattern(UShort_t pat) {fX2Pattern = pat;}
5398f946 94 /// Set X strip pattern for chamber 21
ce6a659c 95 void SetX3Pattern(UShort_t pat) {fX3Pattern = pat;}
5398f946 96 /// Set X strip pattern for chamber 22
ce6a659c 97 void SetX4Pattern(UShort_t pat) {fX4Pattern = pat;}
98
5398f946 99 /// Set Y strip pattern for chamber 11
ce6a659c 100 void SetY1Pattern(UShort_t pat) {fY1Pattern = pat;}
5398f946 101 /// Set Y strip pattern for chamber 12
ce6a659c 102 void SetY2Pattern(UShort_t pat) {fY2Pattern = pat;}
5398f946 103 /// Set Y strip pattern for chamber 21
ce6a659c 104 void SetY3Pattern(UShort_t pat) {fY3Pattern = pat;}
5398f946 105 /// Set Y strip pattern for chamber 22
ce6a659c 106 void SetY4Pattern(UShort_t pat) {fY4Pattern = pat;}
107
8d7dfec2 108 void SetLocalStruct(Int_t loCircuit, AliMUONLocalStruct& localStruct);
109
1908473e 110
eba3379e 111 virtual void Print(Option_t* opt="") const;
112
402fb06e 113private:
18b6b8c7 114 Int_t fLoCircuit; ///< Circuit number
115 Int_t fLoStripX; ///< X strip in MT11
8aac6cce 116 Int_t fLoDev; ///< Deviation
117 Int_t fLoSdev; ///< Sign of Deviation
118 Int_t fLoTrigY; ///< Trig Y
18b6b8c7 119 Int_t fLoStripY; ///< Y strip in MT11
120 Int_t fLoLpt; ///< Low pt 0 : nothing, 1 : Minus, 2 : Plus, 3 : Undef
121 Int_t fLoHpt; ///< High pt 0 : nothing, 1 : Minus, 2 : Plus, 3 : Undef
94d65ea1 122
18b6b8c7 123 UShort_t fX1Pattern; ///< X strip pattern for chamber 11
124 UShort_t fX2Pattern; ///< X strip pattern for chamber 12
125 UShort_t fX3Pattern; ///< X strip pattern for chamber 21
126 UShort_t fX4Pattern; ///< X strip pattern for chamber 22
8d7dfec2 127
18b6b8c7 128 UShort_t fY1Pattern; ///< Y strip pattern for chamber 11
129 UShort_t fY2Pattern; ///< Y strip pattern for chamber 12
130 UShort_t fY3Pattern; ///< Y strip pattern for chamber 21
131 UShort_t fY4Pattern; ///< Y strip pattern for chamber 22
6dc7fcdf 132
8d7dfec2 133
18b6b8c7 134 Char_t fLoDecision; ///< Local decision word (4 bits)
2be06f1e 135
2f013ecd 136 ClassDef(AliMUONLocalTrigger,3) // reconstructed Local Trigger object
a9e2aefa 137};
138#endif
139
140
141
142
143
144