In AliMUONTriggerQADataMakerRec:
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerQADataMakerRec.h
CommitLineData
ece56eb9 1#ifndef ALIMUONTRIGGERQADATAMAKERREC_H
2#define ALIMUONTRIGGERQADATAMAKERREC_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6// $Id$
7
8/// \ingroup rec
9/// \class AliMUONTriggerQADataMakerRec
10/// \brief MUON Quality assurance data maker for MTR
11///
12
13// --- AliRoot header files ---
14#include "AliMUONVQADataMakerRec.h"
15
16class AliMUONCalibrationData;
17class AliMUONDigitMaker;
18class AliMUONVClusterStore;
19class AliMUONTriggerElectronics;
20class AliMUONVDigitStore;
21class TObjectArray;
22class TMap;
23class AliMpDCSNamer;
a026ce9e 24class AliMUONVTriggerStore;
25class AliMUONGlobalTrigger;
c39cf12d 26class TH1F;
ece56eb9 27
28class AliMUONTriggerQADataMakerRec: public AliMUONVQADataMakerRec {
29
30public:
31 AliMUONTriggerQADataMakerRec(AliQADataMakerRec* master);
32 virtual ~AliMUONTriggerQADataMakerRec();
33
34 virtual void InitRaws();
35 virtual void InitRecPoints();
36 virtual void InitDigits();
37 virtual void InitESDs();
38
39 void EndOfDetectorCycleRaws(Int_t specie, TObjArray** list);
40 void EndOfDetectorCycleRecPoints(Int_t specie, TObjArray** list);
41 void EndOfDetectorCycleESDs(Int_t specie, TObjArray** list);
3e1866ad 42
43 /// Empty implementation
ece56eb9 44 void EndOfDetectorCycleDigits(Int_t , TObjArray** ) {}
45
46 virtual void MakeRaws(AliRawReader* rawReader);
47
48 virtual void MakeDigits(TTree* dig);
49 virtual void MakeRecPoints(TTree* recpo);
50 virtual void MakeESDs(AliESDEvent* esd) ;
51
ece56eb9 52private:
3e1866ad 53 /// Not implemented
ece56eb9 54 AliMUONTriggerQADataMakerRec(const AliMUONTriggerQADataMakerRec& qadm);
3e1866ad 55 /// Not implemented
ece56eb9 56 AliMUONTriggerQADataMakerRec& operator=(const AliMUONTriggerQADataMakerRec& qadm);
57
58 void DisplayTriggerInfo();
c39cf12d 59 void FillRatio4434Histos();
ece56eb9 60 Bool_t FillTriggerDCSHistos();
61 TObjArray* GetDCSValues(Int_t iMeas, Int_t detElemId,
62 TMap* triggerDcsMap, AliMpDCSNamer& triggerDcsNamer);
a026ce9e 63 UChar_t RawTriggerInGlobal2OutGlobal(UInt_t globalInput[4]);
64 void RawTriggerMatchOutLocal(AliMUONVTriggerStore& inputTriggerStore, AliMUONVTriggerStore& recoTriggerStore);
65 //void RawTriggerMatchOutLocalInRegional();
c39cf12d 66 void RawTriggerMatchOutGlobal(AliMUONGlobalTrigger& inputLocalTrigger,
67 AliMUONGlobalTrigger& recoGlobalTrigger,
68 Char_t histo);
a026ce9e 69
70 //Int_t fTriggerOutputRegionalData[16]; ///< Data Regional Trigger decision for each Regional Board (1R:0, 2R:1, ... , 1L:8, ...) -> 4 bits LPt, 4 bits HPt
71 //Int_t fTriggerInputRegionalRecLPt[2][16][16]; ///< Reconstructed Regional Input LPt for each Regional Board ([bit][reg][loc]) (reg -> 1R:0, 2R:1, ... , 1L:8, ...)
72 //Int_t fTriggerInputRegionalRecHPt[2][16][16]; ///< Reconstructed Regional Input HPt for each Regional Board ([bit][reg][loc]) (reg -> 1R:0, 2R:1, ... , 1L:8, ...)
73 //Int_t fTriggerOutputRegionalRec[16]; ///< Reconstructed Regional Trigger decision for each Regional Board (8 Bits)
74
75 //Int_t fTriggerInputGlobalDataLPt[16][4]; ///< Data Global inputs LPt (1R:0, 2R:1, ... , 1L:8, ...)
76 //Int_t fTriggerInputGlobalDataHPt[16][4]; ///< Data Global inputs HPt (1R:0, 2R:1, ... , 1L:8, ...)
77 //Int_t fTriggerOutputGlobalRecFromLocalInput[6]; //< Reconstructed Global outputs from Local inputs
78 //Int_t fTriggerOutputGlobalRecFromLocalOutput[6]; //< Reconstructed Global outputs from Local outputs
c39cf12d 79
80 static const Int_t fgkUpdateRatio4434=50; ///< Event interval between 2 update of the Ratio4434 histos
81 TH1F *fNumberOf34Dec; //!< Number of Decision in coincidence 3/4 vs Local Board (for the calculation of the Ratio4434)
82 TH1F *fNumberOf44Dec; //!< Number of Decision in coincidence 4/4 vs Local Board (for the calculation of the Ratio4434)
ece56eb9 83
84 AliMUONDigitMaker* fDigitMaker; //!< pointer to digit maker
85 AliMUONCalibrationData* fCalibrationData; //!< Used to load Local, Regional and Global masks
86 AliMUONTriggerElectronics* fTriggerProcessor; //!< trigger processore to re-compute response
87 AliMUONVDigitStore* fDigitStore; //!< pointer to digits store
88
89 ClassDef(AliMUONTriggerQADataMakerRec,1) // MUON Quality assurance data maker
90
91};
92
93#endif