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"
25 const Int_t kNChannels = AliMpConstants::ManuNofChannels();
26 const Int_t kADCMax = 4095;
28 class AliMUONPedestal : public TObject
32 virtual ~AliMUONPedestal();
34 /// return the number of events
35 void SetAliNEvents(Int_t events) {fNEvents = events;}
36 /// return the Run number
37 void SetAliRunNumber(Int_t run) {fRunNumber = run;}
38 /// return the total number of channels (or pads)
39 void SetAliNChannel(Int_t nch) {fNChannel = nch;}
40 /// output .log file of DAs
41 void SetAlifilcout(ofstream* stream) {fFilcout = stream;}
42 /// return date and time
43 TTimeStamp* GetDate() {return fDate;}
44 /// Count parity errors per Buspatch
45 THashTable* GetErrorBuspatchTable() {return fErrorBuspatchTable;}
46 /// Occupancy rate per each couple (Buspatch, Manu)
47 THashTable* GetManuBuspatchTable() {return fManuBuspatchTable;}
48 /// return the name of DAPedestal .root file
49 Char_t* GetHistoFileName() {return fHistoFileName;}
50 void MakePed(Int_t bp,Int_t manu,Int_t ch,Int_t charge);
52 /// set specific DA prefixname
53 void SetprefixDA(char* folder) {sprintf(fprefixDA,"%s",folder);}
54 /// set the index of calibration runs
55 void SetAliIndex(Int_t ind) {fIndex = ind;}
56 /// Compute the pedestal data (mean, sigma)
58 /// Create String to be put into file or AMORE DB
59 void MakeASCIIoutput(ostream& out) const;
61 void MakeControlHistos();
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
69 THashTable* fErrorBuspatchTable; ///< Table for buspatches with parity errors
70 THashTable* fManuBuspatchTable; ///< Table for (buspatch, manu)
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
81 AliMUONPedestal(const AliMUONPedestal& rhs);
83 AliMUONPedestal& operator = (const AliMUONPedestal& rhs);
85 ClassDef(AliMUONPedestal,1) //