X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONTriggerLut.h;h=cfaeb9151490af35210083076de991acf7eaa1fe;hb=b8871e5adf0e3c12c593f03d9719dd1b488101ec;hp=c2ace1ab9e58c0cb5e5bdc9beebf3ae66eb84d52;hpb=18b6b8c74df2512725e952325ba59354d18c5d85;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONTriggerLut.h b/MUON/AliMUONTriggerLut.h index c2ace1ab9e5..cfaeb915149 100644 --- a/MUON/AliMUONTriggerLut.h +++ b/MUON/AliMUONTriggerLut.h @@ -6,13 +6,16 @@ /* $Id$ */ // Revision of includes 07/05/2004 -/// \ingroup base +/// \ingroup calib /// \class AliMUONTriggerLut /// \brief MUON trigger look up table class +/// +// Author: Philippe Crochet #include class TH3; +class TMap; //---------------------------------------------- class AliMUONTriggerLut : public TNamed @@ -21,20 +24,31 @@ class AliMUONTriggerLut : public TNamed AliMUONTriggerLut(); // constructor virtual ~AliMUONTriggerLut(); // destructor - void ReadFromFile(const char* filename); + Int_t Compare(const TObject* object) const; void GetLutOutput(Int_t circuit, Int_t xstrip, Int_t idev, Int_t ystrip, - Int_t lutLpt[2], Int_t lutHpt[2], Int_t lutApt[2]); + Int_t lutLpt[2], Int_t lutHpt[2]) const; + + void ReadFromFile(const char* filename); + + void SetContent(const char* hname, Int_t icirc, UChar_t istripX, + UChar_t idev, Short_t value); - protected: - // copy constructor - AliMUONTriggerLut (const AliMUONTriggerLut& AliMUONTriggerLut); - // assignment operator - AliMUONTriggerLut& operator=(const AliMUONTriggerLut& AliMUONTriggerLut); - private: - Int_t GetMask(Int_t ystrip); + + /// Not implemented copy constructor + AliMUONTriggerLut (const AliMUONTriggerLut& AliMUONTriggerLut); + /// Not implemented assignment operator + AliMUONTriggerLut& operator=(const AliMUONTriggerLut& AliMUONTriggerLut); + + void Add(TH3* h); + + Int_t Compare(TH3* h1, TH3* h2) const; + + Int_t GetMask(Int_t ystrip) const; + void RegisterHistos(); + private: TH3 *fLptPlus; ///< 3-d histogram with 234x32x31 bins Low pt Plus TH3 *fLptMinu; ///< 3-d histogram with 234x32x31 bins Low pt Minus @@ -46,7 +60,9 @@ private: TH3 *fAptMinu; ///< 3-d histogram with 234x32x31 bins All pt Minus TH3 *fAptUnde; ///< 3-d histogram with 234x32x31 bins All pt Undefined - ClassDef(AliMUONTriggerLut,1) // Trigger Look up Table class + TMap* fMap; //!< from name to histo + + ClassDef(AliMUONTriggerLut,2) // Trigger Look up Table class }; #endif