]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONPedestalEventGenerator.h
Correct function Compare() for "pixels" from MLEM cluster finder.
[u/mrichter/AliRoot.git] / MUON / AliMUONPedestalEventGenerator.h
1 #ifndef ALIMUONPEDESTALEVENTGENERATOR_H
2 #define ALIMUONPEDESTALEVENTGENERATOR_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 shuttle
10 /// \class AliMUONPedestalEventGenerator
11 /// \brief Generate pedestal events (only for tracker).
12 /// 
13 //  Author Laurent Aphecetche
14
15 #ifndef ROOT_TTask
16 #  include "TTask.h"
17 #endif
18 #ifndef ROOT_TString
19 #  include "TString.h"
20 #endif
21
22 class AliMUONCalibrationData;
23 class TList;
24 class AliRunLoader;
25 class AliMUONVDigitStore;
26 class AliLoader;
27 class AliMUONVStore;
28 class AliMUONStopwatchGroup;
29 class AliMUONRawWriter;
30
31 class AliMUONPedestalEventGenerator : public TTask
32 {
33 public:
34   AliMUONPedestalEventGenerator(Int_t runNumber, Int_t nevents, const char* dateFileName);
35   virtual ~AliMUONPedestalEventGenerator();
36   
37   void Exec(Option_t* option);
38   
39   /// Set option whether to generate DDL ascii files or not
40   void MakeDDL(Bool_t value) { fMakeDDL = value; }
41   
42 private:
43   /// Not implemented
44   AliMUONPedestalEventGenerator(const AliMUONPedestalEventGenerator&);
45   /// Not implemented
46   AliMUONPedestalEventGenerator& operator=(const AliMUONPedestalEventGenerator&);
47
48   Bool_t ConvertRawFilesToDate();
49   AliMUONVDigitStore* DigitStore();
50   void GenerateDigits(AliMUONVDigitStore& digitStore);
51   AliRunLoader* LoadRun(const char* mode);
52   void Digits2Raw(Int_t event);
53   
54 private:
55   AliMUONCalibrationData* fCalibrationData; //!< access to pedestal CDB
56   TString fDateFileName; //!< basefilename of the DATE output file
57   TString fGAliceFileName; //!< absolute path to galice.root file
58   Bool_t fMakeDDL; //!< whether to generate DDL ascii files or not
59   AliLoader* fLoader; //!< to access trees
60   AliMUONVStore* fPedestals; //!< pedestals
61   AliMUONStopwatchGroup* fTimers; //!< to time some methods
62   AliMUONVDigitStore* fDigitStore; //!< digit container
63   AliMUONRawWriter* fRawWriter; //!< to convert digits to raw data
64   static Int_t fgCounter; //!< counter 
65   
66   ClassDef(AliMUONPedestalEventGenerator,2) // Random generator of pedestal events for MUON TRK
67 };
68
69 #endif