]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONPedestal.h
Move all AMORE linked parts from AliMUONPedestal and AliMUONGain
[u/mrichter/AliRoot.git] / MUON / AliMUONPedestal.h
CommitLineData
5253c153 1#ifndef ALIMUONPEDESTAL_H
2#define ALIMUONPEDESTAL_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5* See cxx source for full Copyright notice */
6
7// $Id$
8
9/// \ingroup calib
10/// \class AliMUONPedestal
11/// \brief Implementation of the pedestal computing
12///
13// Author Alberto Baldisseri, JL Charvet
14
15#include <TObject.h>
16
17#include "AliMpConstants.h"
18
19class AliMUONVStore;
20
21class TTimeStamp;
22class THashTable;
23
24// global variables
25const Int_t kNChannels = AliMpConstants::ManuNofChannels();
26const Int_t kADCMax = 4095;
27
28class AliMUONPedestal : public TObject
29{
30 public:
31 AliMUONPedestal();
32 virtual ~AliMUONPedestal();
33
5431405e 34 /// return the number of events
5253c153 35 void SetAliNEvents(Int_t events) {fNEvents = events;}
5431405e 36 /// return the Run number
5253c153 37 void SetAliRunNumber(Int_t run) {fRunNumber = run;}
5431405e 38 /// return the total number of channels (or pads)
5253c153 39 void SetAliNChannel(Int_t nch) {fNChannel = nch;}
5431405e 40 /// output .log file of DAs
5253c153 41 void SetAlifilcout(ofstream* stream) {fFilcout = stream;}
5431405e 42 /// return date and time
5253c153 43 TTimeStamp* GetDate() {return fDate;}
5431405e 44 /// Count parity errors per Buspatch
5253c153 45 THashTable* GetErrorBuspatchTable() {return fErrorBuspatchTable;}
5431405e 46 /// Occupancy rate per each couple (Buspatch, Manu)
47 THashTable* GetManuBuspatchTable() {return fManuBuspatchTable;}
48 /// return the name of DAPedestal .root file
5253c153 49 Char_t* GetHistoFileName() {return fHistoFileName;}
50 void MakePed(Int_t bp,Int_t manu,Int_t ch,Int_t charge);
5253c153 51
5431405e 52 /// set specific DA prefixname
5253c153 53 void SetprefixDA(char* folder) {sprintf(fprefixDA,"%s",folder);}
5431405e 54 /// set the index of calibration runs
5253c153 55 void SetAliIndex(Int_t ind) {fIndex = ind;}
dbbb2c64 56 /// Compute the pedestal data (mean, sigma)
57 void Finalize();
58 /// Create String to be put into file or AMORE DB
59 void MakeASCIIoutput(ostream& out) const;
60 /// Fill Histograms
61 void MakeControlHistos();
5253c153 62
63 protected:
5431405e 64 Int_t fN; ///<
65 Int_t fNEvents; ///< Number of events
66 Int_t fRunNumber; ///< run number
67 Int_t fNChannel; ///< Nb of channels (pads)
68 Int_t fNManu; ///< Nb of Manu
5253c153 69 THashTable* fErrorBuspatchTable; ///< Table for buspatches with parity errors
5431405e 70 THashTable* fManuBuspatchTable; ///< Table for (buspatch, manu)
71
72 TTimeStamp* fDate; ///< date
73 ofstream* fFilcout; ///< .log output file
74 Char_t fHistoFileName[256]; ///< .root histo file
75 AliMUONVStore* fPedestalStore; ///<
76 Int_t fIndex; ///< calibration run index
77 Char_t fprefixDA[256]; ///< specific DA prefixname
5253c153 78
79 private:
80 /// Not implemented
81 AliMUONPedestal(const AliMUONPedestal& rhs);
82 /// Not implemented
83 AliMUONPedestal& operator = (const AliMUONPedestal& rhs);
84
85 ClassDef(AliMUONPedestal,1) //
86};
87
88#endif