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