]>
Commit | Line | Data |
---|---|---|
a9e2aefa | 1 | #ifndef ALIMUONTRIGGERLUT_H |
2 | #define ALIMUONTRIGGERLUT_H | |
30178c30 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | // Revision of includes 07/05/2004 | |
8 | ||
1c29e5aa | 9 | /// \ingroup calib |
692de412 | 10 | /// \class AliMUONTriggerLut |
11 | /// \brief MUON trigger look up table class | |
6ae22475 | 12 | /// |
58e8f326 | 13 | // Author: Philippe Crochet |
692de412 | 14 | |
30178c30 | 15 | #include <TNamed.h> |
a9e2aefa | 16 | |
9afd2481 | 17 | class TH3; |
890cc210 | 18 | class TMap; |
a9e2aefa | 19 | |
20 | //---------------------------------------------- | |
30178c30 | 21 | class AliMUONTriggerLut : public TNamed |
22 | { | |
a9e2aefa | 23 | public: |
24 | AliMUONTriggerLut(); // constructor | |
9afd2481 | 25 | virtual ~AliMUONTriggerLut(); // destructor |
a9e2aefa | 26 | |
890cc210 | 27 | Int_t Compare(const TObject* object) const; |
a9e2aefa | 28 | |
29 | void GetLutOutput(Int_t circuit, Int_t xstrip, Int_t idev, Int_t ystrip, | |
890cc210 | 30 | Int_t lutLpt[2], Int_t lutHpt[2]) const; |
31 | ||
32 | void ReadFromFile(const char* filename); | |
33 | ||
34 | void SetContent(const char* hname, Int_t icirc, UChar_t istripX, | |
35 | UChar_t idev, Short_t value); | |
30178c30 | 36 | |
a9e2aefa | 37 | private: |
890cc210 | 38 | |
39 | /// Not implemented copy constructor | |
1657f946 | 40 | AliMUONTriggerLut (const AliMUONTriggerLut& AliMUONTriggerLut); |
71a2d3aa | 41 | /// Not implemented assignment operator |
42 | AliMUONTriggerLut& operator=(const AliMUONTriggerLut& AliMUONTriggerLut); | |
43 | ||
890cc210 | 44 | void Add(TH3* h); |
a9e2aefa | 45 | |
890cc210 | 46 | Int_t Compare(TH3* h1, TH3* h2) const; |
47 | ||
48 | Int_t GetMask(Int_t ystrip) const; | |
49 | ||
50 | void RegisterHistos(); | |
51 | ||
9afd2481 | 52 | private: |
18b6b8c7 | 53 | TH3 *fLptPlus; ///< 3-d histogram with 234x32x31 bins Low pt Plus |
54 | TH3 *fLptMinu; ///< 3-d histogram with 234x32x31 bins Low pt Minus | |
55 | TH3 *fLptUnde; ///< 3-d histogram with 234x32x31 bins Low pt Undefined | |
56 | TH3 *fHptPlus; ///< 3-d histogram with 234x32x31 bins High pt Plus | |
57 | TH3 *fHptMinu; ///< 3-d histogram with 234x32x31 bins High pt Minus | |
58 | TH3 *fHptUnde; ///< 3-d histogram with 234x32x31 bins High pt Undefined | |
59 | TH3 *fAptPlus; ///< 3-d histogram with 234x32x31 bins All pt Plus | |
60 | TH3 *fAptMinu; ///< 3-d histogram with 234x32x31 bins All pt Minus | |
61 | TH3 *fAptUnde; ///< 3-d histogram with 234x32x31 bins All pt Undefined | |
a9e2aefa | 62 | |
890cc210 | 63 | TMap* fMap; //!< from name to histo |
64 | ||
65 | ClassDef(AliMUONTriggerLut,2) // Trigger Look up Table class | |
a9e2aefa | 66 | |
67 | }; | |
68 | #endif | |
69 | ||
70 | ||
71 | ||
72 | ||
73 | ||
74 |