]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONPedestal.h
Moved AliLHCDipValT and AliLHCData to from STEERBase to STEER
[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
f3cfa63e 15#ifndef ROOT_TObject
16# include <TObject.h>
17#endif
18#ifndef ROOT_TString
19# include <TString.h>
20#endif
5253c153 21
22class AliMUONVStore;
23
24class TTimeStamp;
5253c153 25
5253c153 26class AliMUONPedestal : public TObject
27{
28 public:
29 AliMUONPedestal();
30 virtual ~AliMUONPedestal();
31
5431405e 32 /// return the number of events
5253c153 33 void SetAliNEvents(Int_t events) {fNEvents = events;}
5431405e 34 /// return the Run number
5253c153 35 void SetAliRunNumber(Int_t run) {fRunNumber = run;}
5431405e 36 /// return the total number of channels (or pads)
5253c153 37 void SetAliNChannel(Int_t nch) {fNChannel = nch;}
5431405e 38 /// output .log file of DAs
5253c153 39 void SetAlifilcout(ofstream* stream) {fFilcout = stream;}
5431405e 40 /// return date and time
f3cfa63e 41 TTimeStamp* GetDate() const {return fDate;}
5431405e 42 /// Count parity errors per Buspatch
f3cfa63e 43 AliMUONVStore* GetErrorBuspatchTable() const {return fErrorBuspatchTable;}
5431405e 44 /// return the name of DAPedestal .root file
f3cfa63e 45 const char* GetHistoFileName() const;
1b15b395 46 /// load MuonTrk configuration from ascii dbfile
f3cfa63e 47 void LoadConfig(const char* dbfile);
1b15b395 48 /// sum pedestal values for mean and sigma determination
5253c153 49 void MakePed(Int_t bp,Int_t manu,Int_t ch,Int_t charge);
5253c153 50
1b15b395 51 /// set config flag
52 void SetconfigDA(Int_t ind) {fConfig = ind;}
5431405e 53 /// set specific DA prefixname
f3cfa63e 54 void SetprefixDA(const char* folder) { fPrefixDA=folder;}
5431405e 55 /// set the index of calibration runs
5253c153 56 void SetAliIndex(Int_t ind) {fIndex = ind;}
dbbb2c64 57 /// Compute the pedestal data (mean, sigma)
58 void Finalize();
59 /// Create String to be put into file or AMORE DB
60 void MakeASCIIoutput(ostream& out) const;
61 /// Fill Histograms
62 void MakeControlHistos();
5253c153 63
f3cfa63e 64 Int_t ADCMax() const { return 4095; }
65
66protected:
67 // Int_t fN; ///<
5431405e 68 Int_t fNEvents; ///< Number of events
69 Int_t fRunNumber; ///< run number
70 Int_t fNChannel; ///< Nb of channels (pads)
71 Int_t fNManu; ///< Nb of Manu
f3cfa63e 72 Int_t fNManuConfig; ///< Nb of Manu in the current detector configuration
1b15b395 73 Int_t fConfig; ///< flag 1(0) for reading(or not) configuration ascii file
a54854fc 74 AliMUONVStore* fErrorBuspatchTable; ///< Table for buspatches with parity errors
75 AliMUONVStore* fManuBuspatchTable; ///< Occupancy rate for each (buspatch, manu)
1b15b395 76 AliMUONVStore* fManuBPoutofconfigTable; ///< (buspatch, manu) out of config
5431405e 77
78 TTimeStamp* fDate; ///< date
79 ofstream* fFilcout; ///< .log output file
f3cfa63e 80 TString fHistoFileName; ///< .root histo file
81 AliMUONVStore* fPedestalStore; ///< data container: (Pedmean,sigma) values for each (BP,manuId)
5431405e 82 Int_t fIndex; ///< calibration run index
f3cfa63e 83 TString fPrefixDA; ///< specific DA prefixname
5253c153 84
f3cfa63e 85 static const Int_t fgkADCMax; ///< max channel count
86
5253c153 87 private:
88 /// Not implemented
89 AliMUONPedestal(const AliMUONPedestal& rhs);
90 /// Not implemented
91 AliMUONPedestal& operator = (const AliMUONPedestal& rhs);
92
f3cfa63e 93 ClassDef(AliMUONPedestal,4) // Pedestal computing for DA
5253c153 94};
95
96#endif