]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONTriggerEfficiencyCells.h
Integrating dimuon HLT with AliSimulation framework via AliHLTSystem interfaces.
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerEfficiencyCells.h
CommitLineData
70b4a8d6 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
bf4d93eb 4// $Id$
5
be0c6f1f 6/// \ingroup calib
70b4a8d6 7/// \class AliMUONTriggerEfficiencyCells
8/// \brief Store and give access to the trigger chamber efficiency.
9///
5398f946 10// Author: Diego Stocco; INFN Torino
70b4a8d6 11
12#ifndef ALIMUONTRIGGEREFFICIENCYCELLS_H
13#define ALIMUONTRIGGEREFFICIENCYCELLS_H
14
15#include "TObject.h"
16#include "TArrayI.h"
311d0691 17#include "TH1F.h"
18#include "TList.h"
70b4a8d6 19
20class AliMUONTriggerEfficiencyCells : public TObject
21{
22public:
23 AliMUONTriggerEfficiencyCells();
96079e17 24 AliMUONTriggerEfficiencyCells(const Char_t* filename);
311d0691 25 AliMUONTriggerEfficiencyCells(TList *countHistoList, TList *noCountHistoList);
26
27 AliMUONTriggerEfficiencyCells(const AliMUONTriggerEfficiencyCells& other); // copy constructor
28 AliMUONTriggerEfficiencyCells& operator=(const AliMUONTriggerEfficiencyCells& other); // assignment operator
70b4a8d6 29
30 virtual ~AliMUONTriggerEfficiencyCells();
31
313c3f0c 32 void GetCellEfficiency(Int_t detElemId, Int_t localBoard, Float_t &eff1, Float_t &eff2) const;
70b4a8d6 33
313c3f0c 34 void IsTriggered(Int_t detElemId, Int_t localBoard, Bool_t &trig1, Bool_t &trig2) const;
70b4a8d6 35
311d0691 36 Bool_t SumRunEfficiency(const AliMUONTriggerEfficiencyCells &other);
70b4a8d6 37
683cb6c5 38
39 // Methods for display
40 void DisplayEfficiency(Bool_t perSlat=kFALSE,
41 const Char_t* geoFilename="geometry.root",
42 const Char_t* cdbStorage = "local://$ALICE_ROOT",
43 Int_t runNumber=0);
44
45 // Methods for efficiency check
3e0aa963 46 /// Set the list of fired strips
96079e17 47 void SetFiredStrips(TList *firedStrips){fFiredStrips = firedStrips;}
683cb6c5 48 void CheckFiredStrips(const Char_t *geoFilename="geometry.root",
49 const Char_t* cdbStorage = "local://$ALICE_ROOT",
50 Int_t runNumber=0);
96079e17 51 // Check for strips with lower counts than others:
52 // syntomatic of possible read-out problems in boards
70b4a8d6 53protected:
683cb6c5 54 void Reset();
96079e17 55 void ReadFile(const Char_t* filename="$ALICE_ROOT/MUON/data/efficiencyCells.dat");
311d0691 56 void CalculateEfficiency(Int_t trigger44, Int_t trigger34,
57 Float_t &efficiency, Float_t &error,
58 Bool_t failuresAsInput);
59
70b4a8d6 60
61private:
313c3f0c 62 void CheckConstants() const;
63 Int_t FindChamberIndex(Int_t detElemId) const;
081d3361 64 void ReadFileBoards(ifstream &file);
96079e17 65 void ReadHistoBoards(const Char_t* filename="MUON.TriggerEfficiencyMap.root");
311d0691 66 void InitHistos();
67 void FillHistosFromList();
683cb6c5 68 Bool_t GetListsForCheck(const Char_t* geoFilename,
69 const Char_t* cdbStorage, Int_t runNumber);
70b4a8d6 70
313c3f0c 71 static const Int_t fgkNcathodes=2; ///<Number of cathodes
72 static const Int_t fgkNchambers=4; ///<Number of chambers
73 static const Int_t fgkNplanes=8; ///<Number of planes
081d3361 74
70b4a8d6 75
311d0691 76 TH1F *fBoardEfficiency[fgkNplanes];///< the boards content
77 TH1F *fSlatEfficiency[fgkNplanes];///< the slats content
78
79 TList *fCountHistoList; ///<list of efficiency numerators
80 TList *fNoCountHistoList; ///<list of efficiency denominators
96079e17 81 TList *fFiredStrips; ///<list of fired strips for efficiency check
313c3f0c 82
3e0aa963 83 TList *fDisplayHistoList; //!< list of efficiency histograms for display
84 TList *fBoardLabelList; //!< list of board labels for display
85 TList *fFiredFitHistoList; //!< list of fired strips for checks
86 TList *fFiredDisplayHistoList; //!< list of fired strips for display
96079e17 87
683cb6c5 88 ClassDef(AliMUONTriggerEfficiencyCells,6) // Trigger efficiency store
70b4a8d6 89};
90#endif