1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
7 /// \class AliMUONTriggerEfficiencyCells
8 /// \brief Store and give access to the trigger chamber efficiency.
10 // Author: Diego Stocco; INFN Torino
12 #ifndef ALIMUONTRIGGEREFFICIENCYCELLS_H
13 #define ALIMUONTRIGGEREFFICIENCYCELLS_H
19 class AliMUONTriggerEfficiencyCells : public TObject
22 AliMUONTriggerEfficiencyCells();
23 AliMUONTriggerEfficiencyCells(const Char_t* filename, const Char_t* listname="triggerChamberEff");
24 AliMUONTriggerEfficiencyCells(TList *countHistoList);
26 AliMUONTriggerEfficiencyCells(const AliMUONTriggerEfficiencyCells& other); // copy constructor
27 AliMUONTriggerEfficiencyCells& operator=(const AliMUONTriggerEfficiencyCells& other); // assignment operator
29 virtual ~AliMUONTriggerEfficiencyCells();
32 kBendingEff, ///< Bending plane fired
33 kNonBendingEff, ///< Non-bending plane fired
34 kBothPlanesEff, ///< Both planes fired
35 kAllTracks, ///< tracks used for calculation
36 kNcounts ///< Number of count type
40 kHboardCount, ///< Counts per board index
41 kHslatCount, ///< Counts per slat index
42 kHchamberCount ///< Counts per chamber index
45 const Char_t* GetHistoName(Int_t histoType, Int_t countType,
48 /// Get list of histograms
49 TList* GetHistoList() { return fCountHistoList; }
51 TH1F* GetOldEffHisto(Int_t hType, Int_t ich, Int_t icath) const; // obsolete
54 void ResetHistos(Bool_t deleteObjects = kFALSE);
56 void ReadFile(const Char_t* filename,
57 const Char_t* listname);
60 void CheckConstants() const;
62 static const Int_t fgkNcathodes=2; ///<Number of cathodes
63 static const Int_t fgkNchambers=4; ///<Number of chambers
64 static const Int_t fgkNplanes=8; ///<Number of planes
66 TH1F *fBoardEfficiency[fgkNplanes];///< the boards content (obsolete)
67 TH1F *fSlatEfficiency[fgkNplanes];///< the slats content (obsolete)
69 TList *fCountHistoList; ///< list of histograms for efficiency calculation
70 TList *fNoCountHistoList; ///<list of efficiency denominators (obsolete)
71 TList *fFiredStrips; ///<list of fired strips for efficiency check (obsolete)
73 ClassDef(AliMUONTriggerEfficiencyCells,6) // Trigger efficiency store