1 #ifndef ALIMUONPEDESTAL_H
2 #define ALIMUONPEDESTAL_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONPedestal
11 /// \brief Implementation of the pedestal computing
13 // Author Alberto Baldisseri, JL Charvet
17 #include "AliMpConstants.h"
24 const Int_t kNChannels = AliMpConstants::ManuNofChannels();
25 const Int_t kADCMax = 4095;
27 class AliMUONPedestal : public TObject
31 virtual ~AliMUONPedestal();
33 /// return the number of events
34 void SetAliNEvents(Int_t events) {fNEvents = events;}
35 /// return the Run number
36 void SetAliRunNumber(Int_t run) {fRunNumber = run;}
37 /// return the total number of channels (or pads)
38 void SetAliNChannel(Int_t nch) {fNChannel = nch;}
39 /// output .log file of DAs
40 void SetAlifilcout(ofstream* stream) {fFilcout = stream;}
41 /// return date and time
42 TTimeStamp* GetDate() {return fDate;}
43 /// Count parity errors per Buspatch
44 AliMUONVStore* GetErrorBuspatchTable() {return fErrorBuspatchTable;}
45 /// return the name of DAPedestal .root file
46 Char_t* GetHistoFileName() {return fHistoFileName;}
47 /// load MuonTrk configuration from ascii dbfile
48 void Load_config(char* dbfile);
49 /// sum pedestal values for mean and sigma determination
50 void MakePed(Int_t bp,Int_t manu,Int_t ch,Int_t charge);
53 void SetconfigDA(Int_t ind) {fConfig = ind;}
54 /// set specific DA prefixname
55 void SetprefixDA(char* folder) {sprintf(fprefixDA,"%s",folder);}
56 /// set the index of calibration runs
57 void SetAliIndex(Int_t ind) {fIndex = ind;}
58 /// Compute the pedestal data (mean, sigma)
60 /// Create String to be put into file or AMORE DB
61 void MakeASCIIoutput(ostream& out) const;
63 void MakeControlHistos();
67 Int_t fNEvents; ///< Number of events
68 Int_t fRunNumber; ///< run number
69 Int_t fNChannel; ///< Nb of channels (pads)
70 Int_t fNManu; ///< Nb of Manu
71 Int_t fNManu_config; ///< Nb of Manu in the current detector configuration
72 Int_t fConfig; ///< flag 1(0) for reading(or not) configuration ascii file
73 AliMUONVStore* fErrorBuspatchTable; ///< Table for buspatches with parity errors
74 AliMUONVStore* fManuBuspatchTable; ///< Occupancy rate for each (buspatch, manu)
75 AliMUONVStore* fManuBPoutofconfigTable; ///< (buspatch, manu) out of config
77 TTimeStamp* fDate; ///< date
78 ofstream* fFilcout; ///< .log output file
79 Char_t fHistoFileName[256]; ///< .root histo file
80 AliMUONVStore* fPedestalStore; ///<
81 Int_t fIndex; ///< calibration run index
82 Char_t fprefixDA[256]; ///< specific DA prefixname
86 AliMUONPedestal(const AliMUONPedestal& rhs);
88 AliMUONPedestal& operator = (const AliMUONPedestal& rhs);
90 ClassDef(AliMUONPedestal,3) //