Obsolete files removed.
[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
10#include <TObject.h>
2be06f1e 11#include <TArrayI.h>
a9e2aefa 12
13class AliMUONLocalTrigger : public TObject {
14 public:
402fb06e 15 AliMUONLocalTrigger();
d694b6f6 16 AliMUONLocalTrigger(const AliMUONLocalTrigger& rhs); // copy constructor !
2be06f1e 17 AliMUONLocalTrigger(const Int_t* localtr, const TArrayI& digits);
402fb06e 18 virtual ~AliMUONLocalTrigger(){;}
d694b6f6 19 AliMUONLocalTrigger& operator=(const AliMUONLocalTrigger& rhs);
e9b63742 20
3abb47c2 21 Int_t LoCircuit() const {return fLoCircuit;};
22 Int_t LoStripX() const {return fLoStripX;};
23 Int_t LoDev() const {return fLoDev;};
24 Int_t LoStripY() const {return fLoStripY;};
25 Int_t LoLpt() const {return fLoLpt;};
26 Int_t LoHpt() const {return fLoHpt;};
6dc7fcdf 27 Int_t LoApt() const {return fLoApt;};
402fb06e 28
6dc7fcdf 29
30 UShort_t GetX1Pattern() const {return fX1Pattern;}
31 UShort_t GetX2Pattern() const {return fX2Pattern;}
32 UShort_t GetX3Pattern() const {return fX3Pattern;}
33 UShort_t GetX4Pattern() const {return fX4Pattern;}
34
35 UShort_t GetY1Pattern() const {return fY1Pattern;}
36 UShort_t GetY2Pattern() const {return fY2Pattern;}
37 UShort_t GetY3Pattern() const {return fY3Pattern;}
38 UShort_t GetY4Pattern() const {return fY4Pattern;}
39
40 Char_t GetLoDecision();
41
2be06f1e 42 Int_t NumberOfDigits() const { return fDigits.GetSize(); };
43 Int_t GetDigitNumber(const Int_t i) const { return fDigits[i]; };
44 void GetDigit(const Int_t i, Int_t& chamber, Int_t& cathode, Int_t& digit) const;
45
46 static Int_t EncodeDigitNumber(const Int_t chamber, const Int_t cathode, const Int_t digit);
47 static void DecodeDigitNumber(const Int_t digitnumber, Int_t& chamber, Int_t& cathode, Int_t& digit);
48
6dc7fcdf 49 ClassDef(AliMUONLocalTrigger,2) // reconstructed Local Trigger object
402fb06e 50
51private:
a9e2aefa 52 Int_t fLoCircuit; // circuit number
53 Int_t fLoStripX; // X strip in MT11
54 Int_t fLoDev; // deviation
55 Int_t fLoStripY; // Y strip in MT11
56 Int_t fLoLpt; // Low pt 0 : nothing, 1 : Minus, 2 : Plus, 3 : Undef
57 Int_t fLoHpt; // High pt 0 : nothing, 1 : Minus, 2 : Plus, 3 : Undef
58 Int_t fLoApt; // All pt 0 : nothing, 1 : Minus, 2 : Plus, 3 : Undef
6dc7fcdf 59
60 UShort_t fX1Pattern; // X and Y strip pattern for each chamber
61 UShort_t fX2Pattern;
62 UShort_t fX3Pattern;
63 UShort_t fX4Pattern;
64
65 UShort_t fY1Pattern;
66 UShort_t fY2Pattern;
67 UShort_t fY3Pattern;
68 UShort_t fY4Pattern;
69
70 Char_t fLoDecision; // local decision word (4 bits)
2be06f1e 71
72 TArrayI fDigits; // List of digit numbers from which this object was created.
a9e2aefa 73};
74#endif
75
76
77
78
79
80