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();
35 void SetAliNEvents(Int_t events) {fNEvents = events;}
37 void SetAliRunNumber(Int_t run) {fRunNumber = run;}
39 void SetAliNChannel(Int_t nch) {fNChannel = nch;}
41 void SetAlifilcout(ofstream* stream) {fFilcout = stream;}
43 TTimeStamp* GetDate() {return fDate;}
45 THashTable* GetErrorBuspatchTable() {return fErrorBuspatchTable;}
47 Char_t* GetHistoFileName() {return fHistoFileName;}
48 void MakePed(Int_t bp,Int_t manu,Int_t ch,Int_t charge);
49 void MakePedStore(TString flatfile);
50 TString WritePedData(Int_t bp, Int_t manu, Int_t ch, Double_t mean, Double_t sigma);
51 TString WritePedHeader();
54 void SetprefixDA(char* folder) {sprintf(fprefixDA,"%s",folder);}
56 void SetAliIndex(Int_t ind) {fIndex = ind;}
60 Int_t fRunNumber; ///<
63 THashTable* fErrorBuspatchTable; ///< Table for buspatches with parity errors
64 TTimeStamp* fDate; ///<
65 ofstream* fFilcout; ///<
66 Char_t fHistoFileName[256]; ///<
67 AliMUONVStore* fPedestalStore; ///<
69 Char_t fprefixDA[256]; ///<
73 AliMUONPedestal(const AliMUONPedestal& rhs);
75 AliMUONPedestal& operator = (const AliMUONPedestal& rhs);
77 ClassDef(AliMUONPedestal,1) //