/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ // $Id$ /// \ingroup calib /// \class AliMUONTriggerEfficiencyCells /// \brief Store and give access to the trigger chamber efficiency. /// // Author: Diego Stocco; INFN Torino #ifndef ALIMUONTRIGGEREFFICIENCYCELLS_H #define ALIMUONTRIGGEREFFICIENCYCELLS_H #include "TObject.h" #include "TArrayI.h" #include "TH1F.h" #include "TList.h" class AliMUONTriggerEfficiencyCells : public TObject { public: AliMUONTriggerEfficiencyCells(); AliMUONTriggerEfficiencyCells(const Char_t* filename); AliMUONTriggerEfficiencyCells(TList *countHistoList, TList *noCountHistoList); AliMUONTriggerEfficiencyCells(const AliMUONTriggerEfficiencyCells& other); // copy constructor AliMUONTriggerEfficiencyCells& operator=(const AliMUONTriggerEfficiencyCells& other); // assignment operator virtual ~AliMUONTriggerEfficiencyCells(); void GetCellEfficiency(Int_t detElemId, Int_t localBoard, Float_t &eff1, Float_t &eff2) const; void IsTriggered(Int_t detElemId, Int_t localBoard, Bool_t &trig1, Bool_t &trig2) const; Bool_t SumRunEfficiency(const AliMUONTriggerEfficiencyCells &other); // Methods for display void DisplayEfficiency(Bool_t perSlat=kFALSE, const Char_t* cdbStorage = "local://$ALICE_ROOT/OCDB", Int_t runNumber=0); // Methods for efficiency check /// Set the list of fired strips void SetFiredStrips(TList *firedStrips){fFiredStrips = firedStrips;} void CheckFiredStrips(const Char_t* cdbStorage = "local://$ALICE_ROOT/OCDB", Int_t runNumber=0); // Check for strips with lower counts than others: // syntomatic of possible read-out problems in boards protected: void Reset(); void ReadFile(const Char_t* filename="$ALICE_ROOT/MUON/data/efficiencyCells.dat"); void CalculateEfficiency(Int_t trigger44, Int_t trigger34, Float_t &efficiency, Float_t &error, Bool_t failuresAsInput); private: void CheckConstants() const; Int_t FindChamberIndex(Int_t detElemId) const; void ReadFileBoards(ifstream &file); void ReadHistoBoards(const Char_t* filename="MUON.TriggerEfficiencyMap.root"); void InitHistos(); void FillHistosFromList(); Bool_t GetListsForCheck(const Char_t* cdbStorage, Int_t runNumber); static const Int_t fgkNcathodes=2; ///