1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 /// \class AliMUONTriggerEfficiencyCells
6 /// \brief Store and give access to the trigger chamber efficiency.
8 // Author: Diego Stocco; INFN Torino
10 #ifndef ALIMUONTRIGGEREFFICIENCYCELLS_H
11 #define ALIMUONTRIGGEREFFICIENCYCELLS_H
18 class AliMUONTriggerEfficiencyCells : public TObject
21 AliMUONTriggerEfficiencyCells();
22 AliMUONTriggerEfficiencyCells(const char* filename);
24 virtual ~AliMUONTriggerEfficiencyCells();
26 Float_t GetCellEfficiency(Int_t detElemId, Int_t cathode, Float_t x, Float_t y);
27 void GetCellEfficiency(Int_t detElemId, Float_t x, Float_t y, Float_t &eff1, Float_t &eff2);
29 Bool_t IsTriggered(Int_t detElemId, Int_t cathode, Float_t x, Float_t y);
30 void IsTriggered(Int_t detElemId, Float_t x, Float_t y, Bool_t &trig1, Bool_t &trig2);
32 TVector2 ChangeReferenceFrame(Float_t x, Float_t y, Float_t x0, Float_t y0);
37 TArrayI CellByCoord(Int_t detElemId, Float_t x, Float_t y);
38 void ReadFile(const char* filename="$ALICE_ROOT/MUON/data/efficiencyCells.dat");
41 Int_t FindChamberIndex(Int_t detElemId);
42 Int_t FindSlatIndex(Int_t detElemId);
44 static const Int_t fgkNofCells=80; ///< Number of cells
46 /// Cell content [trig. chambers][RPCs][cathode][cellsX][cellsY]
47 Float_t fCellContent[4][18][2][fgkNofCells][fgkNofCells]; //[trig. chambers][RPCs][cathode][cellsX][cellsY]
49 Float_t fCellSize[4][18][2]; ///< the size of the cells
50 Int_t fCellNumber[4][18][2]; ///< id of the cells
52 ClassDef(AliMUONTriggerEfficiencyCells,1) // Trigger efficiency store