Coding conventions
[u/mrichter/AliRoot.git] / MUON / AliMUONQADataMakerRec.h
CommitLineData
7d5d0cc5 1#ifndef ALIMUONQADATAMAKERREC_H
2#define ALIMUONQADATAMAKERREC_H
04236e67 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
bf4d93eb 6// $Id$
7
04236e67 8/// \ingroup rec
9/// \class AliMUONQADataMakerRec
10/// \brief MUON Quality assurance data maker
11///
04236e67 12
04236e67 13// --- AliRoot header files ---
c92a8c85 14#include "AliQADataMakerRec.h"
15#include "AliMUONRecoParam.h"
16
7035694f 17class AliMUONDigitMaker;
18class AliMUONVDigitStore;
19class AliMUONVTriggerStore;
f587a77d 20class AliMUONVClusterStore;
f587a77d 21class AliMUONVTrackerDataMaker;
22
04236e67 23class AliMUONQADataMakerRec: public AliQADataMakerRec {
24
25public:
b8bd1ab8 26 AliMUONQADataMakerRec();
04236e67 27 AliMUONQADataMakerRec(const AliMUONQADataMakerRec& qadm);
28 AliMUONQADataMakerRec& operator=(const AliMUONQADataMakerRec& qadm);
29 virtual ~AliMUONQADataMakerRec();
30
7d5d0cc5 31protected:
32
33 virtual void StartOfDetectorCycle();
34
35 virtual void InitRaws();
36 virtual void InitRecPoints();
37 virtual void InitESDs();
38
39 virtual void MakeRaws(AliRawReader* rawReader);
40 virtual void MakeRecPoints(TTree* recpo);
41 virtual void MakeESDs(AliESDEvent* esd) ;
42
43 virtual void DefaultEndOfDetectorCycle(AliQA::TASKINDEX_t) {}
44
45 virtual void EndOfDetectorCycle(AliQA::TASKINDEX_t task, TObjArray** list);
46
04236e67 47private:
b62881f2 48 /// Raw histograms indices
49 enum ERaw {
c92a8c85 50 kTrackerData = 3, ///< Accumulated data
5bb54f70 51 kTrackerBusPatchOccupancy = 4, ///< Bus patch occupancies
c92a8c85 52 kTriggerScalersBP = 22, ///< Trigger scalers on BP histogram per chamber index
53 kTriggerScalersNBP = 23, ///< Trigger scalers on NBP histogram per chamber index
54 kTriggerScalersDisplay = 24 ///< Trigger scalers display histogram per chamber index
b62881f2 55 };
56
57 /// Rec points histograms indices
58 enum ERecPoints {
c92a8c85 59 kTriggerDigitsBendPlane = 0, ///< Trigger digits on BP histogram index
2346e1ad 60 kTriggerDigitsNonBendPlane = 1, ///< Trigger digits on NBP histogram index
61 kTriggeredBoards = 2, ///< Triggered boards histogram index
62 kTriggerDigitsDisplay = 3, ///< Trigger digits display histogram per plane index
c92a8c85 63 kTriggerBoardsDisplay = 11, ///< Triggered boards display histogram index
49e110ec 64 kTriggerRPCi = 12, ///< Trigger chamber currents index
65 kTriggerRPChv = 13, ///< Trigger chamber HV index
66 kTriggerIDisplay = 14, ///< Trigger chamber currents display histogram index
67 kTriggerHVDisplay = 18, ///< Trigger chamber HV display histogram index
c92a8c85 68
69 kTrackerNumberOfClustersPerChamber = 100, ///< Tracker: # of clusters per chamber
70 kTrackerClusterMultiplicityPerChamber = 200, ///< Tracker: cluster multiplicity per chamber
71 kTrackerClusterChargePerChamber = 300, ///< Tracker: cluster charge per chamber
f587a77d 72
c92a8c85 73 kTrackerNumberOfClustersPerDE = 1000, ///< Tracker : number of clusters per DE
74 kTrackerClusterMultiplicityPerDE = 3000, ///< Tracker : cluster multiplicity per DE
75 kTrackerClusterChargePerDE = 5000 ///< Tracker : cluster charge per DE
b62881f2 76 };
c92a8c85 77
b62881f2 78 /// ESD histograms indices
79 enum EESD {
c92a8c85 80 kESDnTracks = 0, ///< number of tracks
81 kESDMatchTrig = 1, ///< number of tracks matched with trigger
82 kESDMomentum = 2, ///< P distribution
83 kESDPt = 3, ///< Pt distribution
84 kESDRapidity = 4, ///< rapidity distribution
85 kESDChi2 = 5, ///< normalized chi2 distribution
86
87 kESDClusterHitMap = 6, ///< cluster position distribution in chamber i
88 kESDnClustersPerTrack = 16, ///< number of clusters per track
89 kESDnClustersPerCh = 17, ///< number of clusters per chamber
90 kESDnClustersPerDE = 18, ///< number of clusters per DE
91 kESDClusterCharge = 19, ///< cluster charge distribution
92 kESDClusterChargeInCh = 20, ///< cluster charge distribution in chamber i
93 kESDClusterChargePerDE = 30, ///< cluster charge per DE: mean +- dispersion
94 kESDClusterMult = 31, ///< cluster multiplicity distribution
95 kESDClusterMultInCh = 32, ///< cluster multiplicity distribution in chamber i
96 kESDClusterMultPerDE = 42, ///< cluster multiplicity per DE: mean +- dispersion
97
98 kESDResidualX = 43, ///< cluster-track residual-X distribution
99 kESDResidualY = 44, ///< cluster-track residual-Y distribution
100 kESDResidualXInCh = 45, ///< cluster-track residual-X distribution in chamber i
101 kESDResidualYInCh = 55, ///< cluster-track residual-Y distribution in chamber i
102 kESDResidualXPerDEMean = 65, ///< cluster-track residual-X per DE: mean
103 kESDResidualYPerDEMean = 66, ///< cluster-track residual-Y per DE: mean
104 kESDResidualXPerDESigma = 67, ///< cluster-track residual-X per DE: sigma
105 kESDResidualYPerDESigma = 68 ///< cluster-track residual-Y per DE: sigma
b62881f2 106 };
107
f587a77d 108private:
109
110 void Ctor();
2346e1ad 111 void DisplayTriggerInfo(AliQA::TASKINDEX_t task);
49e110ec 112 Bool_t FillTriggerDCSHistos();
f587a77d 113 void InitRecPointsTracker();
114 void InitRecPointsTrigger();
115 void MakeRawsTracker(AliRawReader* rawReader);
116 void MakeRawsTrigger(AliRawReader* rawReader);
117 void MakeRecPointsTracker(TTree* treeR);
118 void MakeRecPointsTrigger(TTree* treeR);
119
b8bd1ab8 120 const AliMUONRecoParam* GetRecoParam() const { return dynamic_cast<const AliMUONRecoParam *>(fRecoParam); }
a0dc65b4 121
b1341ab0 122 Bool_t fIsInitRaws; //!< info if InitRaws() went ok
f587a77d 123 Bool_t fIsInitRecPointsTracker; //!< info if InitRecPoints() went ok
124 Bool_t fIsInitRecPointsTrigger; //!< info if InitRecPoints() went ok
b1341ab0 125 Bool_t fIsInitESDs; //!< info if InitESDs() went ok
126
127 AliMUONVDigitStore* fDigitStore; //!< pointer to digits store
7035694f 128 AliMUONVTriggerStore* fTriggerStore; //!< pointer to trigger store
b1341ab0 129 AliMUONDigitMaker* fDigitMaker; //!< pointer to digit maker
f587a77d 130 AliMUONVClusterStore* fClusterStore; //!< pointer to cluster store
131
b8bd1ab8 132 AliMUONVTrackerDataMaker* fTrackerDataMaker; //!< tracker data accumulation
f587a77d 133
b8bd1ab8 134 ClassDef(AliMUONQADataMakerRec,4) // MUON Quality assurance data maker
04236e67 135
136};
137#endif