]> git.uio.no Git - u/mrichter/AliRoot.git/blame - VZERO/AliVZEROQADataMakerRec.h
Correction to last commit in the QA. Apparently the calib objects are not available...
[u/mrichter/AliRoot.git] / VZERO / AliVZEROQADataMakerRec.h
CommitLineData
0b19d121 1#ifndef ALIVZEROQADATAMAKERREC_H
2#define ALIVZEROQADATAMAKERREC_H
508b9fc0 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
508b9fc0 6
0b19d121 7// Produces the data needed to calculate the quality assurance
8// All data must be mergeable objects
9// Handles ESDs and RAWs
10// Histos will be used for Raw Data control and monitoring
508b9fc0 11
12// --- ROOT system ---
3f563b2b 13class TH1F;
14class TH1I;
15class TObjArray;
508b9fc0 16
17// --- Standard library ---
18
19// --- AliRoot header files ---
20#include "AliQADataMakerRec.h"
21
23eb5160 22class AliCDBManager;
23class AliCDBStorage;
24class AliVZEROCalibData;
508b9fc0 25
26class AliVZEROQADataMakerRec: public AliQADataMakerRec {
27
9bd82f77 28public:
0b19d121 29 // Histograms for Raw data control
46e6c4f9 30 enum HRawType_t {kPedestalInt0,kPedestalInt1
31 ,kChargeEoI,kChargeEoIInt0,kChargeEoIInt1
0b19d121 32 ,kChargeEoIBBInt0,kChargeEoIBBInt1,kChargeEoIBGInt0,kChargeEoIBGInt1,kChargeVsClockInt0,kChargeVsClockInt1
33 ,kChargeMBBB0BG0Int0,kChargeMBBB0BG1Int0,kChargeMBBB1BG0Int0,kChargeMBBB1BG1Int0
34 ,kChargeMBBB0BG0Int1,kChargeMBBB0BG1Int1,kChargeMBBB1BG0Int1,kChargeMBBB1BG1Int1
35 ,kWidth,kWidthBB,kWidthBG,kHPTDCTime,kHPTDCTimeBB,kHPTDCTimeBG,kBBFlagVsClock,kBGFlagVsClock
36 ,kMultiV0A,kMultiV0C,kChargeV0A,kChargeV0C,kChargeV0
37 ,kV0ATime,kV0CTime,kDiffTime
a8e23456 38 ,kRawMIPV0A,kRawMIPV0C,kRawMIPV0,kRawMIPChannel
2563588b 39 ,kBBFlagsPerChannel, kTriggers,kTriggers2,kTimeV0AV0C} ;
9bd82f77 40
0b19d121 41 enum HESDType_t {kCellMultiV0A,kCellMultiV0C,kMIPMultiV0A,kMIPMultiV0C,kMIPMultiChannel
42 ,kBBFlag,kBGFlag,kChargeChannel,kTimeChannel
43 ,kESDV0ATime,kESDV0CTime,kESDDiffTime};
9bd82f77 44
508b9fc0 45public:
0b19d121 46 AliVZEROQADataMakerRec() ; // constructor
508b9fc0 47 AliVZEROQADataMakerRec(const AliVZEROQADataMakerRec& qadm) ;
48 AliVZEROQADataMakerRec& operator = (const AliVZEROQADataMakerRec& qadm) ;
49 virtual ~AliVZEROQADataMakerRec() {;} // destructor
23eb5160 50 AliVZEROCalibData *GetCalibData() const;
6252ceeb 51 virtual void InitRaws() ;
508b9fc0 52
23eb5160 53protected:
0b19d121 54 AliVZEROCalibData *fCalibData; //! calibration data
23eb5160 55
508b9fc0 56private:
57eead61 57 virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray ** list) ;
508b9fc0 58 virtual void InitESDs() ;
44ed7a66 59 virtual void InitDigits();
508b9fc0 60 virtual void MakeESDs(AliESDEvent * esd) ;
44ed7a66 61 virtual void MakeRaws(AliRawReader* rawReader) ;
6252ceeb 62 virtual void MakeDigits() ;
44ed7a66 63 virtual void MakeDigits(TTree* digitTree) ;
508b9fc0 64 virtual void StartOfDetectorCycle() ;
46e6c4f9 65 Float_t CorrectLeadingTime(Int_t i, Float_t time, Float_t adc) const;
66
67
57eead61 68 Int_t fEvent; // event index
69 Int_t fEven[64]; // even charge integrators
70 Int_t fOdd[64]; // odd charge intergators
71 Float_t fADCmean[128]; // mean adc per integrator
72 size_t fNTotEvents; // total number of events
73 size_t fNSubEvents; // number of events used in trending histos
74 size_t fTrendingUpdateEvent; // event index of last update of the trending histos
75 size_t fNTrendingUpdates; // number of updates in trending histos
76 size_t fTrendingUpdateTime; // trending histos update time
77 UInt_t fCycleStartTime; // timestamp of QA start-of-cycle
78 UInt_t fCycleStopTime; // timestamp of QA end-of-cycle
46e6c4f9 79 Float_t fTimeOffset[64]; //! HPTDC time offsets channel by channel
80 TF1* fTimeSlewing; //! Function for time slewing correction
23eb5160 81
3dc953e2 82 ClassDef(AliVZEROQADataMakerRec,2) // description
508b9fc0 83
84};
85
0b19d121 86#endif // AliVZEROQADATAMAKERREC_H