Corrected Doxygen warnings:
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerChamberEff.h
CommitLineData
f165a2d2 1#ifndef ALIMUONTRIGGERCHAMBEREFF_H
2#define ALIMUONTRIGGERCHAMBEREFF_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/// \ingroup base
7/// \class AliMUONTriggerChamberEff
8/// \brief trigger chamber efficiency from data
78649106 9///
10// Author Diego Stocco
f165a2d2 11
12#include <TObject.h>
13#include <TString.h>
14
15class AliRunLoader;
16class AliMUONData;
17class AliMUON;
18class AliMUONGlobalTrigger;
2227e936 19class TString;
f165a2d2 20
21class AliMUONTriggerChamberEff : public TObject
22{
23public:
24 AliMUONTriggerChamberEff(const char* galiceFile, Int_t firstEvent=0, Int_t lastEvent=-1);
25 AliMUONTriggerChamberEff(Int_t firstRun, Int_t lastRun, const char* galiceRunDir, Int_t firstEvent=0, Int_t lastEvent=-1);
26 virtual ~AliMUONTriggerChamberEff();
27
28 void SetReproduceTrigResponse(Bool_t reproduceTrigRes=kFALSE)
29 {fReproduceTrigResponse=reproduceTrigRes;}
30 void SetPrintInfo(Bool_t printInfo=kFALSE)
31 {fPrintInfo=printInfo;}
32 void SetDebugLevel(Int_t debugLevel)
33 {fDebugLevel=debugLevel;}
34
35 void PerformTriggerChamberEff(const char* outputDir);
36
37protected:
38 Bool_t PadMatchTrack(Float_t xPad, Float_t yPad, Float_t dpx, Float_t dpy,
39 Float_t xTrackAtPad, Float_t yTrackAtPad, Int_t chamber);
2227e936 40 Bool_t IsDiffLocalBoard(Int_t currDetElemId, Int_t iy, Int_t detElemIdP1, Int_t iyDigitP1) const;
f165a2d2 41 void PrintTrigger(AliMUONGlobalTrigger *globalTrig);
42 void InfoDigit();
43 void CalculateEfficiency(Int_t trigger44, Int_t trigger34, Float_t &efficiency, Float_t &error, Bool_t failuresAsInput);
44 Int_t DetElemIdFromPos(Float_t x, Float_t y, Int_t chamber, Int_t cathode);
45 void LocalBoardFromPos(Float_t x, Float_t y, Int_t detElemId, Int_t cathode, Int_t localBoard[4]);
46 void ResetArrays();
47 void WriteOutput(const char* outputDir, Int_t totNumOfTrig[4][2], Int_t atLeast1MuPerEv[4][2]);
48 void WriteEfficiencyMap(const char* outputDir);
49
50private:
2227e936 51 AliMUONTriggerChamberEff(const AliMUONTriggerChamberEff& other);
52 AliMUONTriggerChamberEff& operator=(const AliMUONTriggerChamberEff& other);
53
f165a2d2 54 void SetGaliceFile(const char* galiceFile);
55 void CleanGalice();
56
57 Int_t fFirstEvent; //!< First event to consider
58 Int_t fLastEvent; //!< Last event to consider
59 Int_t fFirstRun; //!< First run to consider
60 Int_t fLastRun; //!< Last run to consider
61 AliRunLoader* fRunLoader; //!< AliRunLoader pointer
62 AliMUONData* fData; //!< AliMUONData pointer (to access containers)
63 Bool_t fReproduceTrigResponse;//!< Reproduce trigger response
64 Bool_t fPrintInfo;//!< Print informations on event
65 AliMUON *fMUON; //!< AliMUON pointer
66 Int_t fDebugLevel; //!< Debug level
67 TString fGaliceDir; //!< base directory for many runs.
68
2227e936 69 static const Int_t fgkNchambers=4; //!< Number of trigger chambers
70 static const Int_t fgkNcathodes=2; //!< Number of cathodes per chamber
71 static const Int_t fgkNslats=18; //!< Number of slats per chamber
72 static const Int_t fgkNboards=234; //!< Number of trigger boards per chamber
f165a2d2 73
74 Int_t fTrigger34[fgkNchambers][fgkNcathodes];//!< Array counting # of times chamber was inefficient
75 Int_t fTrigger44[fgkNcathodes];//!< Array counting # of times all chambers were efficient
76 Int_t fInefficientSlat[fgkNchambers][fgkNcathodes][fgkNslats];//!< Array counting # of times slats were inefficient
77 Int_t fHitPerSlat[fgkNchambers][fgkNcathodes][fgkNslats];//!< Array counting # of times slats were efficient
78 Int_t fInefficientBoard[fgkNchambers][fgkNcathodes][fgkNboards];//!< Array counting # of times boards were inefficient
79 Int_t fHitPerBoard[fgkNchambers][fgkNcathodes][fgkNboards];//!< Array counting # of times boards were efficient
80
81 ClassDef(AliMUONTriggerChamberEff,0) // Dumper of MUON related data
82};
83#endif