]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - MUON/AliMUONPedestal.h
Move all AMORE linked parts from AliMUONPedestal and AliMUONGain
[u/mrichter/AliRoot.git] / MUON / AliMUONPedestal.h
... / ...
CommitLineData
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
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);
51
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)
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();
62
63 protected:
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
69 THashTable* fErrorBuspatchTable; ///< Table for buspatches with parity errors
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
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